on 02-19-2018 7:21 PM
SAP Function Module has two input parameters but only one shows up when mapped to Crystal Reports. Both prompts are defined as optional and checked as 'Pass by Value' in SE37. Need help tracing why one parameter is missing from CR. FM works fine when executed from se37.
One potential cause:
Symptom
Not all parameter fields are available in Crystal Reports (CR)
Environment
Reproducing the Issue
VALUE(IV_DATE) TYPE SY-DATUM
Cause
System fields such as 'SY-*' are supported using the ‘LIKE’ clause instead of the ‘TYPE’ clause
Resolution
VALUE(IV_DATE) LIKE SY-DATUM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2607221 - ABAP Function import values does not appear as parameters in Crystal Reports
Symptom
Environment
Reproducing the Issue
FUNCTION MYTEST
IMPORTING
VALUE(NAME) TYPE C
VALUE(DEPARTMENT) TYPE C
EXPORTING
VALUE(Years_of_service) TYPE I
VALUE(Employee_ID) TYPE I
Cause
Resolution
For example:
If you have an ABAP function like:
FUNCTION MYTEST
IMPORTING
VALUE(NAME) TYPE C
VALUE(DEPARTMENT) TYPE C
EXPORTING
VALUE(Years_of_service) TYPE I
VALUE(Employee_ID) TYPE I
Then in Crystal Reports, you will see the following database fields:
- Name
- Department
- Years_of_service
- Employee_ID
To pass values to the fields used in the IMPORTING part of the function:
- Name
- Department
You need to add he fields to the Record Selection Formula like:
{Name} = "Smith" and {Department} = "Support"
Once this is done, then the report will return the information for Mr. Smith in Support, which is the year of service and Employee ID in this case.
Also, note that you can manually create Crystal Reports parameters, and substitute those values in the Record Selection Formula, so every time the report is refresh, you can enter different values without having to manually modify the Record Selection Formula every time.
( Document available in the Attachments section below )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.