‎2008 Jan 18 5:47 AM
HI gurus!
In Sale Order BDC , my bdc works in A mode , as i have press enter, But in 'N' mode , its not creating order and its showing this msg at last in BDCMSG - ' S- No batch input data for screen SAPLRHRD 0100 ' .
When run in 'E' its getting stopped on this popup , which is not error, information - 'DEALER REGISTRATION NUMBER EXPIRES IN*7- DAYS .'.
********************************************
perform bdc_dynpro using 'SAPMV45A' '0101'.
perform bdc_field using 'BDC_CURSOR'
'VBAK-VKGRP'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'VBAK-AUART'
SDTYPE. " 'ZFDS'.
perform bdc_field using 'VBAK-VKORG'
SDORG. " 'fr00'.
perform bdc_field using 'VBAK-VTWEG'
DISTCHANNEL. " 'de'.
perform bdc_field using 'VBAK-SPART'
DIVISION. " 'cd'.
perform bdc_field using 'VBAK-VKBUR'
SALESOFF. " 'PU01'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'VBKD-BSTKD'
PO_NO. " '32211'.
perform bdc_field using 'VBKD-BSTDK'
PO_DATE. " '15.01.2007'.
perform bdc_field using 'KUAGV-KUNNR'
SOLDTOPARTY. " '700209'.
perform bdc_field using 'KUWEV-KUNNR'
SHPTOPARTY. " '702037'.
perform bdc_field using 'RV45A-KETDAT'
DELDATE. " '15.01.2008'.
*perform bdc_field using 'RV45A-KPRGBZ'
'D'.
perform bdc_field using 'VBKD-PRSDT'
PRICEDATE. " '15.01.2008'.
perform bdc_field using 'VBKD-ZTERM'
PAYTERM. " 'X009'.
perform bdc_field using 'VBKD-INCO1'
INCOTERMS. " 'FOL'.
perform bdc_field using 'VBKD-INCO2'
INCOTERMS1. " 'ASURLE PORLE'.
move 1 to I.
loop at it_item.
CONCATENATE 'RV45A-MABNR(' I ')' INTO FNAM.
perform bdc_field using FNAM
it_item-MATERIAL.
CONCATENATE 'RV45A-KWMENG(' I ')' INTO FNAM.
perform bdc_field using FNAM
it_item-QTY.
CONCATENATE 'VBAP-VRKME(' I ')' INTO FNAM.
perform bdc_field using FNAM
it_item-UNIT.
I = I + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=PDE2'.
perform bdc_field using 'BDC_CURSOR'
'VBAP-POSNR(01)'.
perform bdc_field using 'RV45A-VBAP_SELKZ(01)'
'X'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
perform bdc_field using 'BDC_CURSOR'
'VBAP-LGORT'.
perform bdc_field using 'VBAP-WERKS'
PLANT. " 'DFTP'.
perform bdc_field using 'VBAP-LGORT'
SLOC. " 'npgd'.
perform bdc_dynpro using 'SAPLSPO2' '0101'.
perform bdc_field using 'BDC_OKCODE'
'=OPT1'.
perform bdc_dynpro using 'SAPLRHRD' '0100'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'SPOP-TEXTLINE1'.
after this problem , i have added this line
perform bdc_field using 'BDC_OKCODE'
'/00'.
but it didnt worked.
whats ok-code for Continue button in information popup?
‎2008 Jan 18 6:32 AM
Hi,
try to add this piece of code after the message u get
perform bdc_field using 'BDC_OKCODE'
'/00'.
generally the information message won't come in no screen mode
Regards,
Nagaraj
‎2008 Jan 23 7:51 AM
HI Nagaraj!
i had put perform bdc_field using 'BDC_OKCODE'
'/00', but still its giving the sme problem , actually in N mode it shud supress Informations and warmings , but its not happening in this case.. plz any other suggestion.
‎2008 Jan 23 7:59 AM
Hi,
yes you are right in no screen mode it shud supress Informations and warmings.one more thing u can do is try to pass correct data without any messages and check..take the help of ur functional guy to test perfectly..
Regards,
nagaraj
‎2008 Jan 23 7:56 AM
Hi Rahul,
You can go to SHDB transaction and edit your BDC recording runs there and find the reason according t your requirement.
Ankur
‎2008 Jan 23 8:00 AM
‎2008 Jan 23 8:03 AM
Hi nagaraj!
it will come for right data, but this is not right way , in production , if this kind of data occurs then , it will be struck.
‎2008 Jan 23 8:15 AM
Hi rahul,
it is also stopping in 'E' mode also right..that means there is some problem with the data....that means it is an error....some thing starnge to note that the information messages not supressed during 'N' mode....
Regards,
nagaraj