2006 Nov 29 4:02 PM
Hi all,
Hi all,
I have to read the edids-statxt.
for a record it says Item &2 has been deleted from document &1
but when i check the same idoc in we05 ,
it says
Item 0001 has been deleted from document 987687766
can any one tell me where does the value for &1 and &2 comes from.
if i read the value for &1 and &2 then how shouild replace those value so that my o/p matches with the one in idoc
Thanks
Hi all,
Hi all,
I have to read the edids-statxt.
for a record it says Item &2 has been deleted from document &1
but when i check the same idoc in we05 ,
it says
Item 0001 has been deleted from document 987687766
can any one tell me where does the value for &1 and &2 comes from.
if i read the value for &1 and &2 then how shouild replace those value so that my o/p matches with the one in idoc
Thanks
2006 Nov 29 4:03 PM
Hi,
The value comes from EDIDS-STAPA1, STAPA2, STAPA3 and STAPA4..
Use FM MESSAGE_PREPARE to get the full text by passing the message id, no, v1, v2 ..
Thanks,
Naren
2006 Nov 29 4:12 PM
Hi NARENDRAN ,
CAN YOU TELL ME WHAT ID , NO , VI1 AND V2 REFER TO.
THANKS
2006 Nov 29 4:15 PM
Hi,
This is the way usually the messages are prepared.
You will have place holders defined in the message and these places holders are replaced by the paramerters values V1, V2 at runtime.
Regards,
Ravi
Note - Please mark all the helpful answers
2006 Nov 29 4:03 PM
Look at the other fields of EDIDS record. Other fields like MSGV1 ... will have those values which will &1 and &2 at run time.
Regards,
Ravi
Note - Please mark all the helpful answers
2006 Nov 29 4:06 PM
the values which ever ur looking will be stored in the edids
stapa1 stapa2 stapa3 stapa4
try this code to get
IF it_out-statxt CA '&'.
REPLACE '&' WITH it_edids-stapa1 INTO l_statxt.
REPLACE '&' WITH it_edids-stapa2 INTO l_statxt.
REPLACE '&' WITH it_edids-stapa3 INTO l_statxt.
REPLACE '&' WITH it_edids-stapa4 INTO l_statxt.
CONDENSE l_statxt
2006 Nov 29 4:34 PM
Hi,
iam trying this method
SELECT SINGLE * FROM EDIDS INTO WA_EDIDS WHERE DOCNUM = ITAB-IDOC
AND COUNTR = ITAB-STATUS_COUNTER.
IF WA_EDIDS-STATXT CA '&'.
REPLACE '&' WITH WA_edids-stapa1 INTO WA_EDIDS-statxt.
REPLACE '&' WITH WA_edids-stapa2 INTO WA_EDIDS-statxt.
REPLACE '&' WITH wa_edids-stapa3 INTO WA_EDIDS-statxt.
REPLACE '&' WITH WA_edids-stapa4 INTO WA_EDIDS-statxt.
CONDENSE WA_EDIDS-statxt.
ENDIF.
ENDLOOP.
i am not gettin the complete message in wa_edids-statxt at the end.
pls let me know.
Thanks
2006 Nov 29 4:58 PM
Hi,
Pl check the length of u r message in debug mode . statxt can hold upto 70 char.
Cheers.
2006 Nov 29 4:12 PM
Hi,
The values are stored in table EDIDS under fields STAPA1, STAPA2, STAPA3 and STAPA4.
You can use FM EDI_DISPLAY_STATUS_LIST to display them based on IDoc status and number.
Regards,
Ferry Lianto
2006 Nov 29 4:15 PM
Hi,
ID is the message id which will be given in SE91 - The corresponding field is EDIDS -STAMID
No is the message no ..The corresponding field is EDIDS -STAMNO..
V1 is the parameter variable - The corresponding field is EDIDS -STAPA1..
V2 is the parameter variable - The corresponding field is EDIDS -STAPA2..
V3 is the parameter variable - The corresponding field is EDIDS -STAPA3..
V4 is the parameter variable - The corresponding field is EDIDS -STAPA4..
Pass these to the FM MESSAGE_PREPARE you will get the full text as you are seeing in WE02..
Thanks,
Naren
2006 Nov 29 5:03 PM
hi,
Check this code for formatting the message....
DATA: V_MSGNO LIKE T100-MSGNR.
DATA: V_TEXT(50).
V_MSGNO = EDIDS-STAMNO.
CALL FUNCTION 'MESSAGE_PREPARE'
EXPORTING
msg_id = EDIDS-STAMID
msg_no = V_MSGNO
MSG_VAR1 = EDIDS-STAPA1
MSG_VAR2 = EDIDS-STAPA2
MSG_VAR3 = EDIDS-STAPA3
MSG_VAR4 = EDIDS-STAPA4
IMPORTING
MSG_TEXT = V_TEXT.
WRITE: / V_TEXT.
Thanks,
Naren
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |