‎2010 Jun 06 3:49 PM
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
‎2010 Jun 06 4:10 PM
After a quick search in F1 help I found out that I should use the "in" phrase:
with so_docnr in l_so_docnr