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

CALL TRANSACTION - Matchcode 'BDC_OKCODE' '/04'

clayton_barbosa
Participant
0 Likes
2,744

Hi!

   | am making a abap using CALL TRANSACTION and I need to execute a matchcode.

   When i run the SHDB the matchcode did not show in the step.

    Then I found out that the 'BDC_OKCODE'   '/04'  open  the matchcode but it did not show the field, program and the screen.

   I need to kown where i shoud put the data.

   Could Anybody help me?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,508

Hello,

You can manually acess the transaction and press F1 on the field that has the match-code. Look up the Screen Field name. That's the field name you want.

The screen number should be at F1 too.

If it's not showing in SHDB, and not showing in F1 technical info. Can you send us a screenshot ?

Regards,

Thales Schmidt

11 REPLIES 11
Read only

Former Member
0 Likes
2,508

Hi

But why do you need to simulate a matchcode?

The value can't be placed in bdc table?

Max

Read only

0 Likes
2,508

The  BDC table structure

                                                                               

PROGRAM           BDC module pool                     ??

DYNPRO               BDC Screen number               ??

DYNBEGIN          BDC screen start                        ??    

FNAM                    Field name                                  ??

FVAL                        BDC field value                         Ok

These Datas are not in the Techinical Information.

Thank you.

Read only

0 Likes
2,508

Sorry but I can't still understand what you need to do

It seems you need to simulate a transaction by CALL TRANSACTION, but it can't understand why you want to call a search help in this simulation

Read only

Former Member
0 Likes
2,509

Hello,

You can manually acess the transaction and press F1 on the field that has the match-code. Look up the Screen Field name. That's the field name you want.

The screen number should be at F1 too.

If it's not showing in SHDB, and not showing in F1 technical info. Can you send us a screenshot ?

Regards,

Thales Schmidt

Read only

0 Likes
2,508

After executing "/04" open the matchcode and i preessed F1.

Read only

0 Likes
2,508

This is not a dynpro, so BDC won't work.

Read only

0 Likes
2,508

Clayon,

She is right, you will not be able to map these fields.

Is this a real scenario you are working, or are you training/studying ?

Because you will have to think a way around to fill the country key, selecting the data via abap code before filling the bdc structures.

Regards,

Thales Schmidt

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,508

I think Max is right, why do you need to execute the match code? it'd be very surprising that your really need it. Are you sure there is no other solution?

Read only

0 Likes
2,508

Yes, i have another solution.

Thanks!l

Read only

0 Likes
2,508

Great. Please, close the thread/provide a more detailed answer for other people like you, seeking for answers to similar questions. (if you don't know how to do, cf http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why )

Thanks.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,508

Just for reference: The Transaction Recorder


F1 - F4- and self-programmed F1- and F4 help (PROCESS ON HELP-REQUEST,PROCESS ON VALUE-REQUEST) are not recorded. The same applies to all commands in the System and Help menus.

So no hope in full background mode, for a BDC with user inteaction use the OPTIONS FROM opt of call transaction statement to deactivate flag sy-binpt.


Regard,

Raymond