2012 Sep 14 9:42 AM
Hi,
I have used Call Transaction method for a BDC as given below
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
The Message table MESSTAB is of the type BDCMSGCOLL and I can get the message type, message id and message number in this table.
But when I check in table T100 for the message description I cannot find any entry corresponding to the messag id. The Message ID is 'PQ'. I dont find this in T100A table also. The BDC tcode is PA40. Is there any settings required for T100 table or is there any problem with the Transaction being used in the BDC.
Please guide.
Thanks,
Anu.
Hi,
I have used Call Transaction method for a BDC as given below
CALL TRANSACTION tcode USING bdcdata
MODE ctumode
UPDATE cupdate
MESSAGES INTO messtab.
The Message table MESSTAB is of the type BDCMSGCOLL and I can get the message type, message id and message number in this table.
But when I check in table T100 for the message description I cannot find any entry corresponding to the messag id. The Message ID is 'PQ'. I dont find this in T100A table also. The BDC tcode is PA40. Is there any settings required for T100 table or is there any problem with the Transaction being used in the BDC.
Please guide.
Thanks,
Anu.
2012 Sep 14 9:53 AM
Use the FM -- FORMAT_MESSAGE to get the message description.Pass the id,lang,no,v1,v2,v3,v4 parameters. Hope this helps you.
2012 Sep 14 10:08 AM
Pass
T100 table fields BDCMSGCOLL
SPRSL(Language Key) = 'EN' <---- messtab-MSGSPRA
ARBGB(Application Area) = 'PQ' <---messtab-MSGID
MSGNR(Message number) = 'xxx' <--- messtab-MSGNR
2012 Sep 14 10:13 AM
hello,
t100 is the table for messages.
it contains only the fields
sprsl->language key,
arbgb->application area
msgnr->message number
text->message text.
here sprsl,arbgb,msgnr are the key fields,
Regards,
2012 Sep 14 10:18 AM
Try to code a
MESSAGE ID bdcmsgcoll-MSGID NUMBER bdcmsgcoll-MSGNR
WITH bdcmsgcoll-MSGV1 bdcmsgcoll-MSGV2
bdcmsgcoll-MSGV3 bdcmsgcoll-MSGV4
INTO wa_message.
in your calling report.
Also execute transaction SE91 to look for message class definition, you could also execute the BDC in display-all or error-display mode., so check if you get an error like "unknown message class".
Regards,
Raymond
2012 Sep 14 3:53 PM
Hi Anu,
For what reason are you trying to read the message from T100? If you're just trying to see what the message is, you can look in transaction SE91 for message class PQ. If you want to get the message text into a variable in your program, you can read MESSTAB and do the following:
MESSAGE ID messtab-msgid TYPE messtab-msgtyp NUMBER messtab-msgnr
WITH messtab-msgv1 messtab-msgv2 messtab-msgv3 messtab-msgv4
INTO lv_message_text.
Then variable lv_message_text will contain the full message.
Cheers,
Amy