Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SUBMIT statement not working with PPIO_ENTRY.

Hello Experts,

I have a scenario where i need to call PPIO_ENTRY in a custom program using the entries from a Z-table ( which has 2 fields plant and material).

I have tried SUBMIT With selection-table.

the problem here is that the selection criteria is populated to PPIO_ENTRY partially. It populates the material and plant just fine. but i have an additional field which are not populated.

my code goes as follows:

if  z-table[] is not initial.

wa_tab-SELNAME = 'PPIO_LISTTYP'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = ' PPIOH000'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'P_ALV'.

wa_tab-KIND    = 'P'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = '000000000001'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'FLG_PRODORD'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'X'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'S_WERKS'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = P_WERKS .

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

LOOP AT z-table INTO wa_ztable.

   wa_tab-SELNAME = 'S_MATNR'.

   wa_tab-SIGN    = 'I'.

   wa_tab-OPTION  = 'EQ'.

   wa_tab-LOW     = wa_ztable-MATNR .

   APPEND wa_tab TO it_TAB.

   CLEAR wa_tab.

ENDLOOP.

wa_tab-SELNAME = 'P_SELID'.

wa_tab-KIND    = 'P'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'ZAPP010'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'P_SYOP1'.

wa_tab-KIND    = 'P'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'REL'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'P_SYOP2'.

wa_tab-KIND    = 'P'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'MSPT'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

"" in second tab of the selection screen we have these fields...

wa_tab-SELNAME = 'FUNCT'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = '160'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'PROCESS_TYPE'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'E'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'MAX_WORKPROC'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = '99'.

APPEND wa_tab TO iT_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'AV_CHECK_TYPE'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'A'.

APPEND wa_tab TO iT_TAB.

CLEAR wa_tab.

wa_tab-SELNAME = 'AV_PROTOCOL'.

wa_tab-SIGN    = 'I'.

wa_tab-OPTION  = 'EQ'.

wa_tab-LOW     = 'E'.

APPEND wa_tab TO it_TAB.

CLEAR wa_tab.

                      SUBMIT ppio_entry VIA SELECTION-SCREEN

          WITH SELECTION-TABLE lt_tab[]

                    AND RETURN.

Endif.


The reason for using selection table is we had multiple values for material. We have also tried to pass the values as parameters (single entries) and variants, even then only the material and plant get populated.

Now, except the Highlighted fields in this code. Rest of the fields are not populated in the selection screen.


Could anyone help me understand why is this happening.

Please refer to the images attached so that you can a better visualization of the issue.

Thank You so much for all your help.

scn3.JPG (56286 B)
SCN2.JPG (38009 B)
SCN1.JPG (75029 B)
Former Member
Not what you were looking for? View more on this topic or Ask a question