• No results found

NOTE PAD FILE FORMAT:

In document SAP ABAP MATERIAL (Page 188-194)

CROSS APPLICATIONS

NOTE PAD FILE FORMAT:

8579 JACK1 HYD1 J1 333444 8580 JACK2 HYD2 J2 333445 8581 JACK3 HYD3 J3 333446

LSMW

LSMW: - (LEGACY SYSTEM MIGRATION WORK BENCH)

It is a data transfer tool which is used to upload the data into sap form legacy systems. They are four methods to upload the data.

1. Direct input 2. Batch input (BDC) 3. BAPI

4. IDOC

As per the industry standards it is normally used by functional consultant. Go to LSMW

Project = (ex: - ZCUST_P) Subproject = (ex: - ZCUST_S) Object = (ex: - ZCUST_O) Press enter

Click on create

Description = (ex: - customer upload) Press enter

Description = (ex: - customer upload) Press enter

Description = (ex: - customer upload) Press enter

Click on execute (F8) It consist of process steps STEP1: - Maintain object attributes Click on execute (ctrl+F8)

Batch input recording

Click on button

Create a recording for VD01 Click on create

Recording = ZNSR_CUST

Description = (ex: - VD01 recording) Press enter

Transaction code = VD01

And continue with the recording steps. Press enter

Click on default all buttons Click on Save

Back

Recording = ZNSR_CUST Click on save

Back

STEP2: - Maintain source structures Click on execute (ctrl+F8) Click on create

Source structure = ZCUST_T

Description = (ex: - ITAB for flat file – customer data) Press enter

Click on save Back

STEP3: - Maintain source fields Click on execute (ctrl+F8)

Place the cursor on structure ZCUST_LT Click on create

Field name = KUNNR

Field description = CUSTOMER Field length = 10

Field type = c Press enter

Place a cursor on KUNNR field Click on create

Add the remaining five fields (NAME1, ORT01, SORTL, PSTLZ) Click on save

Back

STEP4: - Maintain structure relations Click on execute (ctrl+F8) Relationship

Click on save Back

STEP5: - Maintain field mapping and conversion rules Click on execute (ctrl+F8)

Extras → auto-field mapping Press enter

System will propose the proposal Click on accept proposal

Till it complete For hard coded fields

Click on constant button Sales org = 1000 Press enter

Place the cursor on the VTWEG Click on constant button

Jjgjhgkhsjgh = 0

Place a cursor on the SPARK Click on constant button

Fskfhskghjksg= 00 Place a cursor on the LAND1 Click on constant button

Country = IN

Place a cursor on the SPRAS Click on constant button

Jjfdsajkafk = 00000000001 Place a cursor on the TAXAD Click on constant button

Jjsijlksjglja = 0

Place a cursor on the KTOKD Click on constant button

SjfljaJKLJA = 0001 Click on save

Back

STEP6: - Maintain fixed values, translations, user-defined routines. (Skip this step need not Necessary)

STEP7: - Specify fields

Click on execute (ctrl+F8)

Place a cursor of legacy data on the PC (Frontend) Click on create File = Name = Customer Tabulator Press enter Click on save Back

SREP8: - Assign files

Click on execute (ctrl+F8) Click on save

Back STEP9: - Read data

Click on execute (ctrl+F8)

Transaction number to Click on execute (ctrl+F8)

Back Back

STEP10: - Display read data

Click on execute (ctrl+F8) From line

To line Press enter Back

STEP11: - Convert data

Click on execute (ctrl+F8) Click on execute (ctrl+F8) Back

Back

STEP12: - Display converted data Click on execute (ctrl+F8) Press enter

Please verify the data correct or not Clicking on a row

Back.

STEP13: - Create both input sessions Click on execute (ctrl+F8)

Name of batch input folder (s) = ZCUST_SESS Keep batch input folder (s)?

Click on execute (ctrl+F8) Press enter.

STEP14: - Run batch input session Click on execute (ctrl+F8)

Session = ZCUST_SESS Press enter

Select the session Click on process

Process/foreground Press enter/process

Continue with ok-code box.

USER EXITS: - For a every given transaction their will be proposed user exits and it is used for system modifications.

User exits are associated with form routines and we require access key to modify the code.

The impacts are global, while performing modifications using user exits. DISADVANTAGES: -

• These are not upgrade compatible

• The code put in a user exits will be wiped out during upgrades and applying patches. Q) What are the differences between customer exits and user exits?

ANS: - Customer exits can be identified by package or call customer function. Whereas user exits are associated with form….endform (from routines). SEARCHING FOR USER EXITS FOR A GIVEN TRANSACTION: -

Go to the transaction VA01 System → status

Double click on the program name SAPMV45A Double click on the include MV45AFZZ. SALES ORDER IMPORTANT USER EXITS: -

FORM USEREXITS_SAVE_DOCUMENT_PREPARE

This user exit can be used for changes or checks before document is saved. FORM USEREXIT_SAVE_DOCUMENT

This user exit can be used to save data in additional when a document is saved. ENHANCEMENTS FRAME WORK: -

It was introduced in ECC6.0 where we can modify the sap standard code with out taking an access key.

ADVANTAGES: -

Upgrade compatible. IMPLICIT ENHANCEMENTS: -

For a given transaction they are predefined implicit enhancements points by making use of it, we can modify the standard code without taking an a access key.

Technically we can create an implementation on it.

OBJECTIVE: - If a sales order net value is more than 1000 raise an error message. STEP1: - Go to SE38

Program = SAPMV45A Go to SAPMV45A

Double click on the MV45AFZZ include

Edit → enhancement operations → shoe implicit enhancement options Every form routine we get a coated line.

FROM……

“ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ ENDFORM……

STEP2: - Go to form USEREXIT_SAVE_DOCUMENT Place a cursor on the coated lines

Mouse right button → enhancement implementation → create implementation Click on code button

Click on create

Enhancement implementation = ZGS_NETVALUE Short text = net value restriction

Press enter

Put it in local object

Select the implementation you created (ZGS_NETVALUE) Press enter

If VBAK-NETWR GT ‘1000.00’.

Message ‘net value can be greater than 1000’ type ‘E’. Endif.

Click on save

Click on activate enhancement button

If you want to change the code place a cursor on the form

Mouse right button → enhancement implementation → change implementation STEP3: - Test the transaction

Go to VA01

Try to save the net value greater than 1000 To check it is working or not.

In document SAP ABAP MATERIAL (Page 188-194)

Related documents