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

Former Member
0 Likes
709

Hi All,

Im just facing an issue regarding call transaction, its like this

My output is alv display, Im using Set pf status..in my output i should display vendor number & vendor name, when i double click on vendor number it should get into the transaction MK03 with the same vendor number clicked on the screen.

& at the same time when i click on the vendor name it should skip the first screen ( for that i used call transaction 'mk03' and skip first screeen) and display the name.. its not working in this case as when i use call transaction 'MK03' and skip first screen its giving an error 'SELECT ATLEAST ONE PROCESSING OPTION' on the first screen (the checkbox address has to be checked on the screen to go further and skip the screen)

how can i do that for automatically checking the address

checkbox and going into the next screen?

Regards

Prashanth

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
588

Hello,

You need to use the BDC table, just map the fields in transaction SHDB. And then fill and pass the table in the call transaction command.

Here an example:


DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'. 

DATA: bdcdata_wa  TYPE bdcdata, 
      bdcdata_tab TYPE TABLE OF bdcdata. 

DATA opt TYPE ctu_params. 

CLEAR bdcdata_wa. 
bdcdata_wa-program  = 'SAPLSEOD'. 
bdcdata_wa-dynpro   = '1000'. 
bdcdata_wa-dynbegin = 'X'. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'BDC_CURSOR'. 
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'. 
bdcdata_wa-fval = class_name. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'BDC_OKCODE'. 
bdcdata_wa-fval = '=CIDI'. 
APPEND bdcdata_wa TO bdcdata_tab. 

opt-dismode = 'E'. 
opt-defsize = 'X'. 

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt. 

Regards,

4 REPLIES 4
Read only

Former Member
0 Likes
589

Hello,

You need to use the BDC table, just map the fields in transaction SHDB. And then fill and pass the table in the call transaction command.

Here an example:


DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'. 

DATA: bdcdata_wa  TYPE bdcdata, 
      bdcdata_tab TYPE TABLE OF bdcdata. 

DATA opt TYPE ctu_params. 

CLEAR bdcdata_wa. 
bdcdata_wa-program  = 'SAPLSEOD'. 
bdcdata_wa-dynpro   = '1000'. 
bdcdata_wa-dynbegin = 'X'. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'BDC_CURSOR'. 
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'. 
bdcdata_wa-fval = class_name. 
APPEND bdcdata_wa TO bdcdata_tab. 

CLEAR bdcdata_wa. 
bdcdata_wa-fnam = 'BDC_OKCODE'. 
bdcdata_wa-fval = '=CIDI'. 
APPEND bdcdata_wa TO bdcdata_tab. 

opt-dismode = 'E'. 
opt-defsize = 'X'. 

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt. 

Regards,

Read only

0 Likes
588

Hi,

we are using set parameter id for calling that particular transaction, we cannot use recording for our requirement.

Do you have any idea regarding set parameter id..?

Regards

Prashanth

Read only

0 Likes
588

hi,

i'm sorry I gave you the wrong value for the parameter id KDY

try this :


DATA : chk_address(50) TYPE c VALUE '/111'.

SET PARAMETER ID 'KDY' FIELD chk_address.
SET PARAMETER ID 'LIF' FIELD (your vendor number here ).

CALL TRANSACTION 'MK03' AND SKIP FIRST SCREEN.

it worked for me

Read only

Former Member
0 Likes
588

Hi Prashanth,

You can set this check box by setting value 'X' in the Parameter ID 'KDY'

Try this before you code the call transaction


data : chk_address like KRED-AUSWL.
chk_addres = 'X'.
SET PARAMETER ID 'KDY' FIELD chk_address.

also set the vendor number, assuming u are doing this already

then


call transaction 'MK03' and skip first screen

Please reward points if the answer is helpful.

regards,

Advait