Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tcode F-63 is not getting updated in BDC program

Former Member
0 Likes
1,379

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

6 REPLIES 6
Read only

former_member188827
Active Contributor
0 Likes
1,260

Are you getting any error message when recording is run?

Regards

Read only

hemanth_kumar21
Contributor
0 Likes
1,260

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.

Read only

former_member188282
Active Participant
0 Likes
1,260

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.


Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,260

Please run your recording in SHDB again. Make sure your BDCDATA struture is filled in same way as u see in recording

Read only

former_member188282
Active Participant
0 Likes
1,260

Hi Saravanan,

Try with BAPI  "BAPI_ACC_DOCUMENT_POST" for FI Posting.

Regards,

Rajesh

Read only

jeet_bhattacharjee
Participant
0 Likes
1,260

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!!