‎2008 May 16 1:47 PM
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
‎2008 May 16 2:02 PM
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,
‎2008 May 16 2:02 PM
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,
‎2008 May 16 2:10 PM
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
‎2008 May 16 2:22 PM
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
‎2008 May 16 2:09 PM
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