Skip to Content

Transfer of selection screen parameters

Hi,

I have a program in classic ABAP which is actually 2 programs:

Program 1:

This program is the program that contains the selection-screen and it calls the related program by SUBMIT, see below:

SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.

SELECTION-SCREEN SKIP 2.

SELECTION-SCREEN COMMENT 1(40) text-s01 MODIF ID hdr.

SELECT-OPTIONS: s_werks FOR plko-werks,

s_plnnr FOR plko-plnnr.

PARAMETERS: p_write AS CHECKBOX,

p_update AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK bl1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'HDR'.

screen-intensified = '1'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDLOOP.

EXPORT p_write to memory id cst_mem_id.

EXPORT p_update to memory id cst_mem_id.

SUBMIT zzpp_inspchar_update

VIA SELECTION-SCREEN

AND RETURN.

Program 2 contains the selection of data like this:

SELECT fwerks fplnty fplnnr fzaehl fverwe fstatu psteus pvornr

INTO CORRESPONDING FIELDS OF TABLE gt_tasks

FROM plko AS f INNER JOIN plpo AS p

ON fplnnr = pplnnr

AND fplnty = pplnty

WHERE f~werks IN s_werks "

AND f~statu = '4'

AND f~plnty = 'N'

AND p~plnnr IN s_plnnr

AND p~steus = 'ZP04'

*****************************

The 2 select-option, s_werks and s_plnnr has to come from program 1 and I have tried to use SET/GET parameter for this, but without luck.

How can I get these values filled ? EXPORT / IMPORT or ....?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 14, 2008 at 12:31 PM

    Hello,

    If s_werks and s_plnnr are part of the selection screen of the second program, you can change the SUBMIT :

    SUBMIT zzpp_inspchar_update WITH s_werks IN s_werks
                                AND  s_plnnr IN s_plnnr
    VIA SELECTION-SCREEN
    AND RETURN.

    For your problem using EXPORT/IMPORT, you do not show us the code you use so it is difficult to help you.

    Cordialement,

    Chaouki.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 14, 2008 at 12:34 PM

    Why do you want to use Export / Import?

    You can create a selection screen in Program 2 with the fields that are required from Program 1 and in the SUBMIT statement you can pass the parameters/select-Option of Program 1 to Program 2.

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm

    Regards,

    Aj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.