Application Development 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: 

Error in SUBMIT RKAEP000 WITH p_tcode EQ 'KKFB'

fashfaq
Explorer
0 Kudos

Hello guys,

I am facing problem when i use submit programming in SAP ABAP.

when below program is executing, new window is open to enter Material # and Plant # manually,

however i gave both parameter in submit function as parameter.

Below is my code

SUBMIT RKAEP000
WITH p_tcode EQ 'KKFB'
WITH P_KOKRS EQ '1100'
WITH I_MATNR-LOW EQ '3100000141'
WITH I_WERKS-LOW EQ '1100'

WITH I_PROCNR-LOW EQ ''
WITH R_BUDAT1-LOW EQ '20230801'
WITH R_BUDAT1-HIGH EQ '20230831'
WITH R_AWVRS-LOW EQ '0'
WITH P_DISVAR EQ '1SAP'
AND RETURN .

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Remove the low/high subfields of selection criterion for select-options, try something like

SUBMIT RKAEP000
  WITH p_tcode EQ 'KKFB'
  WITH P_KOKRS EQ '1100'
  WITH I_MATNR EQ '3100000141'
  WITH I_WERKS EQ '1100'
  WITH I_PROCNR EQ ''
  WITH R_BUDAT BETWEEN  '20230801' AND '20230831'
  WITH R_AWVRS EQ '0'
  WITH P_DISVAR EQ '1SAP'
  AND RETURN.

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Remove the low/high subfields of selection criterion for select-options, try something like

SUBMIT RKAEP000
  WITH p_tcode EQ 'KKFB'
  WITH P_KOKRS EQ '1100'
  WITH I_MATNR EQ '3100000141'
  WITH I_WERKS EQ '1100'
  WITH I_PROCNR EQ ''
  WITH R_BUDAT BETWEEN  '20230801' AND '20230831'
  WITH R_AWVRS EQ '0'
  WITH P_DISVAR EQ '1SAP'
  AND RETURN.

0 Kudos

Thanks a LOT

Sandra_Rossi
Active Contributor
0 Kudos

Please read the ABAP documentation ABAP Keyword Documentation (sap.com) - WITH expr_syntax1 WITH expr_syntax2.

The question has been asked lots of times too.