Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HELP ME WITH THIS SPEC VERY URGENT

Former Member
0 Kudos

Program: For a set of selected material Read MARA-prdha and update mvke-prodh and write out a success/fail report. All error materials downloaded to a file.

Selection Screen:

Material (mvke-matnr)

Sales Org (mvke-vkorg)

Dis.Cha (mvke-vtweg)

I NEED TO KNOW WHAT FUNCTION MODULE USED IN BAPI .

SEND ME SOME SAMPLE PROGRAM.

2 REPLIES 2

Former Member
0 Kudos

your question is not clear.

Function module in BAPI ?? could you please clarify what exactly you are looking for...

as far as i can understand...

read mara-prdha....

Select prdha from mara into table itab_mara_prdha where matnr eq p_matnr.

(where p_matnr is the selection screen parameter).

then to update mvke-prodh. (with what value do you have to update it).

download to file could be done with cl_gui_frontend_services-> gui_download method.

please give more details about your requirement for a detailed reply.

Former Member
0 Kudos

Hi Vikram,

Pass the below information to bapi for updating MVKE table

Pass production hierachy to salesdata table of bapi BAPI_MATERIAL_SAVEDATA

salesdata-prod_hier = MARA-prdha

salesdatax-prod_hier = U (for updating in mvke U-update,I-insert,D-delete)

Reward if useful

Balaji