on 04-19-2010 3:34 PM
I have an RFC Lookup in my PID system that i had to change due to a test defect.
the FM i wrote was working on a single value and returning the correct entry... however it now needs to return multliple entries and map 0..unbounded....
i have made the changes, the FM works in ECD, however when i call the FM from the mapping, it does not return any values... now, i am asking my basis team to change the PIAPPLUSER to dialog user so i can throw a breakpoint for an external user...
has anyone done a single to multi value mapping on lookup? i am not sure that it is the FM that is incorrect as it is very simple code..
DATA: lt_jobtype TYPE zhr_lkupjobtype_t.
CLEAR lt_jobtype.
REFRESH lt_jobtype.
SELECT * FROM zhr_lkupjobtype
INTO TABLE lt_jobtype
WHERE zinterface_id = import-zinterface_id
AND zsap_jobtype = import-zsap_jobtype.
MOVE lt_jobtype TO export.
is there a way of checking the RFC part of an message mapping? i checked the full trace within graphical mapping but this shows no return....
I guess progress is progress no matter how slow....
the FM is returning the values now...
however, the field is only populated once... despite pulling back the 7 items... i can see them in the display queue after running the test.....
i added a split by value... but still only the single record is populated.....
any thoughts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for my previous options as they are not required... Just check the below things..
Move it_jobtype[] to export[].
I hope the export is of table type. (I mean export is the name of internal table which you declared under tables parameters in RFC)
>
> is there a way of checking the RFC part of an message mapping? i checked the full trace within graphical mapping but this shows no return....
You can check the RFC results in you message mapping. Since your coding is not ok (as per my understanding) therefore your mapping is not getting any data from RFC.
Regards,
Sarvesh
Edited by: Sarvesh Singh on Apr 19, 2010 8:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using a MOVE instead of APPEND.
according to the keyword help if the tables are identical, you can use MOVE.
it works when i test in SE37.
i have tested it both ways and i get the same result each time.
i even tried it this way:
SELECT * FROM zhr_lkupjobtype
INTO TABLE export
WHERE zinterface_id = import-zinterface_id
AND zsap_jobtype = import-zsap_jobtype.
and that works too to get the target values into the export table! that's what made me think it was not the code as i have tried three different ways of writing the same code... the Function Module works perfectly anyway! but when it is called from PI i cannot see if any values are returned....
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.