Skip to Content

Steps involved in creation of HAWA material and vendor info record

Scenario: When the user does not want to use IDOC’s for the creation of the material and would want to use Java or ABAP Web dyn pro , then we have to create the material in SAP using only BAPI’s and function modules. The below document has the detailed steps of what BAPI’s and function modules to be used and the values that needs to be populated into it.

Creation of HAWA material: BAPI_MATERIAL_SAVEDATA can be used to create the material.

For the creation of the material , material number is mandatory. Hence first create the material using BAPI : ‘BAPI_MATERIAL_GETINTNUMBER’

bapi.JPG

Then , fill into data for the material creation Bapi and call it .

/wp-content/uploads/2012/12/savebapi_165079.jpg

Once the material is created we can create the text using SAVE_TEXT function module .

Creation of vendor info record using function modules

In order to create the vendor info record we need to execute 5 function modules in sequence.

The sequence is as shown below

1. ME_INITIALIZE_INFORECORD

2. RV_CONDITION_RESET

3. ME_MAINTAIN_INFORECORD

4. ME_POST_INFORECORD

5. BAPI_TRASACTION_COMMIT

Parameters to be passed to the function module ME_MAINTAIN_INFORECORD

1. Activity = ‘V’

2. Values to EINA and EINE tables

3. If you want to change an existing value make sure you give in info record number and also maintain the tables’ o_eina and o_eine

4. Values i_vorga will be A and i_skip_nr_check should be ‘X’

After the execution if the values are returned to the importing parameters EINA and EINE then info record values are valid.

Further to the function module ME_POST_INFORECORD pass the material number for which the info record needs to be created and execute it. You will receive the values created in the EINA table of this function module which will have a new info record number of the created info record.

Screen shot of the material created:

/wp-content/uploads/2012/12/material1_165092.png

Creation of the Vendor Info Record

/wp-content/uploads/2012/12/mat2_165093.jpg


/wp-content/uploads/2012/12/mat3_165094.jpg

/wp-content/uploads/2012/12/mat4_165095.jpg

/wp-content/uploads/2012/12/mat5_165096.jpg

/wp-content/uploads/2012/12/mat6_165097.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply