08-03-2007 8:20 AM
Hi Friends,
I have a problem with bdc ok_code.
could u tell me that where the all the bdc okcode are stored in a table.
clearly ia want all the bdc okcodes and their meanings.
kindly help me .
thanks,
venkat.
08-03-2007 8:23 AM
08-03-2007 8:26 AM
Hi Venktesh,
U do Recording on any Trascation for Example:Xk01 , and u will be able and tranfer that pgm afterrecording , and in that program u will able some of the Ok codes .
Thanks&Regards
Bhaskar Rao.M
08-03-2007 8:27 AM
08-03-2007 8:28 AM
hi
when you creat the recording at that time it will store all the information regarding that ok_code wil be stored there it self
after recoring select that record
and click on generate program which is exits on application tool bar
u will get program like this
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MTART'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MBRSH'
'B'.
perform bdc_field using 'RMMG1-MTART'
'KMAT'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
perform bdc_field using 'MAKT-MAKTX'
'nnnnnnnnn'.
perform bdc_field using 'MARA-MEINS'
'CHG'.
perform bdc_field using 'MARA-MTPOS_MARA'
'0002'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=NO'.
perform bdc_transaction using 'MM01'.
reward if usefull