Skip to Content

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

SUBMIT a report passing a selopt

Hi all gurus,

I'm facing this strange issue:

Report A, a.k.a. the caller, has a select-option as input parameter, defined in this way:

SELECT-OPTIONS: so_objid FOR crmd_orderadm_h-object_id.

This report performs a sequence of SUBMIT statements on other reports.

Suppose the sel-opt has been populated in this way:

SIGN : I

OPTION: EQ

LOW : 123456789

HIGH: (blank)

Consider now report B, a.k.a. the called one, which has an identical input parameter:

SELECT-OPTIONS :  so_docs   FOR crmd_orderadm_h-object_id.

Report A calls report B in the following way:

SUBMIT ZREPORT_B WITH so_docs = so_objid
    AND RETURN.

Debugging this call, I see that in ZREPORT_B the select option described above becomes:

SIGN: I

OPTION: EQ

LOW: IEQ123456

HIGH: (blank)

Does anyone know what's the point on this strange problem? I can modify everything in Report A (the caller one) but cannot touch anything of the called ones.

Thanks in advance.

replied

Correct call:

SUBMIT ZREPORT_B WITH so_docs IN so_objid
    AND RETURN.

Thomas

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question