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

BDC F-02 Save Ok-code

Former Member
0 Likes
1,938

HI,

I have done recording for F-02. At the time of recording when i tried to save the data, system forced me to come out of that session. As a result of that i could not able to capture processing for SAVE in F-02. Noiw when i transferred that recording to program, the thing is that when i tried to execute it it stops with the error message "Select valid function " and here i need to manually save the document . The program is using CALL TRANSACTION METHOD . i want to automate that SAVE processing using BDC please guide me.

Thanks

Parag

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
964

Before clicking the SAVE button, you may use menu System and Status bar to determine the GUI status, display it, and see what okcode corresponds to this button (may be "BUCH" for example). Then, add BDC_OKCODE "BUCH" line at the end of your internal table before the CALL TRANSACTION (I guess you know what I mean).

HI,

I have done recording for F-02. At the time of recording when i tried to save the data, system forced me to come out of that session. As a result of that i could not able to capture processing for SAVE in F-02. Noiw when i transferred that recording to program, the thing is that when i tried to execute it it stops with the error message "Select valid function " and here i need to manually save the document . The program is using CALL TRANSACTION METHOD . i want to automate that SAVE processing using BDC please guide me.

Thanks

Parag

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
965

Before clicking the SAVE button, you may use menu System and Status bar to determine the GUI status, display it, and see what okcode corresponds to this button (may be "BUCH" for example). Then, add BDC_OKCODE "BUCH" line at the end of your internal table before the CALL TRANSACTION (I guess you know what I mean).