2013 Oct 20 8:02 AM
Hi ,
Please assist me , when i m trying to save the BDC program for tcode F-63 , itw not getting saved. The function code 'BP' for Save button is not working.
.
perform bdc_dynpro using 'SAPLKACB' '0002'.
perform bdc_field using 'BDC_CURSOR'
'COBL-KOSTL'.
perform bdc_field using 'BDC_OKCODE'
'=ENTE'.
perform bdc_field using 'COBL-KOSTL'
AB0200'.
perform bdc_field using 'BDC_OKCODE'
'=BP'.
perform bdc_field using 'BDC_OKCODE'
'=PBBP'.
both the above function code which is in bold is not working. Please help me on this issue.
Thanks,
saravanan
Are you getting any error message when recording is run?
Regards
2013 Oct 20 8:20 AM
Are you getting any error message when recording is run?
Regards
2013 Oct 20 9:07 AM
Hi saravanan,
Again you do the recording(SHDB) for Tcode F-63 and compare both ok-codes with your program and SHDB recording.
Thanks & Regards,
Hemanth K M.
2013 Oct 20 3:07 PM
Hi Saravanan,
Check the Function code of SAVE button in GUI PF-STATUS.
Run the BDC in fore ground mode and check any other screen are comming in between.
Check the below screen shot. Here for post button BDC code is "BU".
Regards,
Rajesh.
2013 Oct 20 5:21 PM
Please run your recording in SHDB again. Make sure your BDCDATA struture is filled in same way as u see in recording
2013 Oct 21 6:46 AM
Hi Saravanan,
Try with BAPI "BAPI_ACC_DOCUMENT_POST" for FI Posting.
Regards,
Rajesh
2013 Oct 21 7:53 AM
Hi Saravanan,
As already suggested by others try to record the transaction using SHDB and compare the generated code with your's. Secondly, always prefer BAPI over BDC if the required functionality can be achieved using an available BAPI, in this case BAPI_ACC_DOCUMENT_POST can be used I think.
Also, I think as pointed out above by someone, the function code you have used in the code for SAVE/POST button might not be the correct one. Just try to manually trace out the steps which you are trying to automate using BDC for any one record and when you are finally going to post the data you can check the function code associated with the SAVE/POST button (this can be done using a simple trick, just left click on the button and press F1 simultaneously before releasing the left click press, now release the left click and you will get a popup showing the screen program name and the function code for the button)
Hope this helps.
Please reward points if you found this usefull!!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |