on 2007 Jul 19 12:27 PM
Hi All,
My scenario is proxy to file it is working fine i am getting material related data from R/3 and passing it to file, what my doubt is whether can i send only one record at a time or can i send multiple records at a time. Today i have created two materials, i am fetching material data based on system date, but when i check at destination only the record which is created recently is appearing. please find the code which i have written in abap editor in R/3. And provide some solution.
REPORT ZABAP_PROXY.
DATA : Proxy TYPE REF TO ZDEV1CO_MI_MATERIAL_OB.
DATA : It TYPE ZDEV1MT_MATERIAL.
DATA : It_mara like mara occurs 0 with header line.
CREATE OBJECT proxy.
TRY.
SELECT * from MARA into table It_mara where ersda eq sy-datum."Wa where ersda eq sy-datum.
loop at it_mara.
move-corresponding : it_mara to it-Mt_Material.
CALL METHOD PROXY->EXECUTE_ASYNCHRONOUS
EXPORTING
OUTPUT = It.
COMMIT WORK.
ENDLOOP.
CATCH cx_ai_system_fault.
DATA fault TYPE REF TO cx_ai_system_fault.
CREATE OBJECT fault.
WRITE:/ fault->errortext.
ENDTRY.
Thanks in advance.
Regards,
Prem.S
hi prem,
I think problem lies in the mapping side...
as prabhu said first check whether u given mt_material data type a t the source side is given as 0..unbounded..
also at the receiver side corresponding data type u mapped should be unbounded..
in graphical mapping editor .. give multiple input at source side,execute it ..check whether its coming at the receiver side...
If its working in graphical editor then it should work while executing report program..
u can send multiple records at a time by passing internal table...
hope this helpfyul..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and to anwser ur first question, yes u can send more that one data at the same time if the MT for sender is 0..unbounded
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to send multiple records at a time instead of passing them indivdually.
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check ur file CC setting. is it append or create only in recv CC
Message was edited by:
Prabhu S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.