05-29-2007 4:05 AM
Hi Experts,
i am doing a mass transfer action for the employees and for that i am uploading the data from file and then using PA30 , call transaction method.... updates are done to infotypes 0000, 0001,0006, 0007,0008... My problem is infotype 0000 is updating correctly but for rest of infotypes i am getting error as No batch data input for screen MP000100 2000 for 0001 , MP000600 2010 . Below is the code i am writing for 0000, 0001. Any help is appreciated .
Infotype 0000
PERFORM fill_bdcdata USING:
'X' 'SAPMP50A' '1000',
' ' 'BDC_OKCODE' '=INS',
' ' 'RP50G-PERNR' it_itab-pernr,
' ' 'RP50G-TIMR6' 'X'.
PERFORM fill_bdcdata USING:
' ' 'RP50G-BEGDA' l_date,
' ' 'BDC_CURSOR' 'RP50G-CHOIC',
' ' 'RP50G-CHOIC' c_0000,
' ' 'RP50G-SUBTY' p_massn,
'X' 'MP000000' '2000',
' ' 'BDC_OKCODE' '/00',
' ' 'P0000-MASSG' p_massg,
' ' 'P0000-BEGDA' l_date,
' ' 'PSPAR-PLANS' '99999999',
'X' 'MP000000' '2000',
' ' 'PSPAR-PLANS' it_itab-plans,
' ' 'BDC_OKCODE' '/00',
'X' 'MP000000' '2000',
' ' 'BDC_OKCODE' '=UPD'.
****************
INFOTYPE 0001
****************
PERFORM fill_bdcdata USING:
'X' 'MP000100' '2010',
' ' 'P0001-BEGDA' l_date,
' ' 'P0001-PLANS' it_itab-plans,
' ' 'BDC_OKCODE' '/00',
'X' 'MP000100' '2010',
' ' 'BDC_OKCODE' '=UPD'.
Thanks,
Latha.
05-29-2007 4:20 AM
Hi Latha,
Do the recording again for PA30 and this time make sure you record for filling the data for all infotypes.
Reward points if useful.
Regards,
Atish
05-29-2007 4:31 AM
when it gives you the error @ that point please go to the system and status see the screen no and screen Prgram name ..... then replace with exsisting one ....becuause now i had seen in my PA30 for 2010 infotype create screen it was
Program (screen) MP200000
Screen number 2450
and 0001 infotype ...
Program (screen) MP000100
Screen number 2000
Regards ,
Girish
05-29-2007 4:32 AM
Looks like bdcdata does not have data for second record,,i mean ur first record is repeating for second item,so use after call transaction or bdc_insert ,use refresh bdcdata,then you will not get this type of error.
reward points if it is helpful
Thanks
Seshu
05-29-2007 4:37 AM
05-29-2007 4:49 AM
Hi Latha,
Have you simulate manually by using PA30 with the data that hits the error in the program. FYI, different kind of data may lead to system behave differently. For eg, an additional popup screen will come out that required you to key in data where this popup is not appear during your BDC recording.
Hence, this additional popup was not catered into your BDC coding and will lead to the problem that you mentioned.
My suggestion is simulate manually on PA30 with the data that hits error. For sure it will give you a clearly picture on what is going on.
Hope it helps.