‎2008 Jul 11 4:32 AM
HI ,
when i am using call transaction method if i select Mode A(Display All screens ) the data updating properly , but if i select N ( background processing ) that data is not updating properly , can any one pls give me solution for this .
THX
‎2008 Jul 11 4:42 AM
Hi,
This is the problem with your BDC code. SOme of the OK code is missing in your program.
When you run your BDC in foreground ( Mode A ) then you might be hitting some extra enter while processing. To make sure this click all the ok code ( which comes as poped up screen ) by clicking thru mouse. You will come to know on which screen Ok code is missing.
To overcome this problem, check your BDC recording once again or do a new recording and write all the code coming in your recording ( e.g include Cursor as well ).
This should solve your problem...
Hope it helps!!!
regards,
Lalit Kabra
‎2008 Jul 11 5:28 AM
hi thx ,
this is my code can u check and tell me whats wrong ?
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'=AUSW'.
perform bdc_field using 'RMMG1-MATNR'
it_data-matnr.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(15)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(15)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '0080'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-WERKS'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'RMMG1-WERKS'
it_data-werks.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'=PB12'.
perform bdc_field using 'MAKT-MAKTX'
'Test Mat 1- Unit Test'.
perform bdc_field using 'MARA-MEINS'
'EA'.
perform bdc_field using 'MPOP-PRMOD'
'N'.
perform bdc_field using 'MARC-PERKZ'
'M'.
perform bdc_field using 'BDC_CURSOR'
'MPOP-ANZPR'.
perform bdc_field using 'MPOP-PERAN'
'24'.
perform bdc_field using 'MPOP-ANZPR'
it_data-per01.
perform bdc_field using 'MPOP-KZINI'
'X'.
perform bdc_field using 'MPOP-SIGGR'
'4,000'.
perform bdc_field using 'MARC-AUTRU'
'X'.
perform bdc_field using 'MPOP-MODAV'
'2'.
perform bdc_dynpro using 'SAPLPROM' '0360'.
perform bdc_field using 'BDC_CURSOR'
'RMCP2-KPWRT(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMCP2-KPWRT(01)'
it_data-kpwrt1.
perform bdc_field using 'RMCP2-KPWRT(02)'
it_data-kpwrt2.
perform bdc_field using 'RMCP2-KPWRT(03)'
it_data-kpwrt3.
perform bdc_field using 'RMCP2-KPWRT(04)'
it_data-kpwrt4.
perform bdc_field using 'RMCP2-KPWRT(05)'
it_data-kpwrt5.
perform bdc_field using 'RMCP2-KPWRT(06)'
it_data-kpwrt6.
perform bdc_field using 'RMCP2-KPWRT(07)'
it_data-kpwrt7.
PERFORM bdc_dynpro USING 'SAPLPROM' '0360'.
PERFORM bdc_field USING 'BDC_CURSOR' C_7.
PERFORM bdc_field USING 'BDC_OKCODE' '=P+'.
perform bdc_dynpro using 'SAPLPROM' '0360'.
perform bdc_field using 'BDC_CURSOR'
'RMCP2-KPWRT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=UBER'.
perform bdc_field using 'RMCP2-KPWRT(01)'
it_data-kpwrt8.
perform bdc_field using 'RMCP2-KPWRT(02)'
it_data-kpwrt9.
perform bdc_field using 'RMCP2-KPWRT(03)'
it_data-kpwrt10.
perform bdc_field using 'RMCP2-KPWRT(04)'
it_data-kpwrt11.
perform bdc_field using 'RMCP2-KPWRT(05)'
it_data-kpwrt12.
perform bdc_dynpro using 'SAPLMGMM' '4000'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'MAKT-MAKTX'.
perform bdc_field using 'MAKT-MAKTX'
'Test Mat 1- Unit Test'.
perform bdc_field using 'MARA-MEINS'
'EA'.
perform bdc_field using 'MPOP-PRMOD'
'N'.
perform bdc_field using 'MARC-PERKZ'
'M'.
perform bdc_field using 'MPOP-PERAN'
'24'.
perform bdc_field using 'MPOP-ANZPR'
'12'.
perform bdc_field using 'MPOP-KZINI'
'X'.
perform bdc_field using 'MPOP-SIGGR'
'4,000'.
perform bdc_field using 'MARC-AUTRU'
'X'.
perform bdc_field using 'MPOP-MODAV'
'2'.
perform bdc_transaction using 'MM02'.
thx
‎2008 Jul 11 4:53 AM
hi,
This is a genral problem in case of running ur BDC in background. its because ur recording is not perfectas you have missed some steps or some mouse clicks. In forefround it will work but for running into background u have to do recording once again or add fields or okcode which u have missed at the time of recording.