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 for dynamic ok codes

Ashutosht09
Participant
0 Likes
3,130

While recording the BDC the find button is trigerred by the ok code =%_GC 628 1 which is dynamic and changes in every recoding. how can I use the find button then. can I find the dynamically created ok code or use some other method to trigger the find button in BDC. Please Help...

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,000

You might want to try to find a BAPI or API for your requriement.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,001

You might want to try to find a BAPI or API for your requriement.

Regards,

Rich Heilman

Read only

0 Likes
2,000

Can any one tell me the BAPI to create Tours for Shipment routes done by transaction /DSD/RP_TOUR

Read only

0 Likes
2,000

I faced similar issue and was able to resolve it.

'%_GC N N' is a dummy okcode dynamically generated and assigned during screen generation. SAP determines the actual okcode once PAI event has been triggered.

To determine actual okcode, switch on debugger and navigate to method OKCODE_DISPATCH. Corresponding okcode can be determined from static variable mt_registered_okcodes  or through method GET_EVENT_PARAMETER.

Once the FCODE (such as 'SAVE' , 'OIP_CHECK' etc.) is determined, replace '%_GC okcode' with corresponding 'FCODE' in the BDC recording.