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

Wrong type passing between 2 programs

Former Member
0 Likes
1,726

Hi experts

I am not an ABAP expert, so I need a little help:

I have a program with selection screen:

REPORT  zload_sl.
SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_docnr FOR /BI0/SAC_DOC_NO-AC_DOC_NO NO INTERVALS.
SELECTION-SCREEN END OF BLOCK b0.

Also, I have a second program that calls the first program using submit:

REPORT ZCALL_LOAD_SL.
data: l_so_docnr like range of  /BI0/SAC_DOC_NO-AC_DOC_NO.
submit ZLOAD_SL using selection-screen '1000'
                               with so_docnr = l_so_docnr 
                               and return.

However, the second program fails (no dump) with message type 'A' that says:

Wrong type passing parameters to "SO_DOCNR".

Do you have any idea what I do wrong??

Thanks,

Yaniv

1 REPLY 1
Read only

Former Member
0 Likes
792

After a quick search in F1 help I found out that I should use the "in" phrase:

with so_docnr in l_so_docnr