‎2008 Jan 18 5:48 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 8:45 AM
Do the recording of the Sales Order in transaction SHDB.
Copy the Screen names and numbers as is in the recording to your code. Or use generate program option after your recording is done.
You have missed the code for screen SAPLRHRD 0100.
You can chk the screen details/look in SE80->program name(SAPLRHRD)->screen 100.
The CONTINUE button does not show any function code set right now. Check if any Function code is displayed in SHDB.
Last option is solve the Dealer Registration number issue in master data. The information message will not be displayed.
Edited by: S Rao on Jan 18, 2008 10:47 AM
‎2008 Jan 23 7:52 AM
hi S. Rao!
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 11:32 AM
Hi,
Please try if the BDC_OKCODE "=YES" works out for you.
Regards,
Bhavin
‎2008 Jan 24 6:07 AM
Hi Bhavin , I tried BDC_OKCODE "=YES" but it didnt work. Can u tell me whats OKCODE for cancelling POP-UP. If I cancell that Information , then Order gets Created.
‎2008 Jan 24 6:33 AM
For Cacelling you can try out OK code of "=CANC".
Regards,
Bhavin
‎2008 Jan 24 7:15 AM
‎2008 Jan 24 7:41 AM
Hi rahul,
I think recording is not error free. First do the recording for error free records other wise u will get these type problems.
First ask functional guys for giving an error free record then only it will work.
Regards,
ravi shankar reddy