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: 

SUBMIT a report passing a selopt

matteo_montalto
Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

Correct call:

SUBMIT ZREPORT_B WITH so_docs IN so_objid
    AND RETURN.

Thomas

2 REPLIES 2

ThomasZloch
Active Contributor
0 Kudos

Correct call:

SUBMIT ZREPORT_B WITH so_docs IN so_objid
    AND RETURN.

Thomas

0 Kudos

Thanks Thomas, I missed that syntax detail.