‎2007 Mar 08 3:46 PM
hI
i am working BDC.Here iam getting one problem.when i checking in 'A'It showing error msges also.but when it is in ' N'.Iam not finding the error msges.how can i obtain those error msgs in 'N' Mode also.
plz help me out
‎2007 Mar 08 3:51 PM
When in MODE 'N', all message will be passed back via the MESSAGES into MESSTAB extenstion.
data: MESSTAB type table of bdcmsgcoll with header line.
call transaction tcode using BDCDATA
mode 'N'
MESSAGES INTO MESSTAB.
You can then simply read this internal table for the message ids and numbers and use the function module MESSAGE_PREPARE to build the message text.
Regards,
Rich Heilman
Message was edited by:
Rich Heilman
‎2007 Mar 08 3:51 PM
When in MODE 'N', all message will be passed back via the MESSAGES into MESSTAB extenstion.
data: MESSTAB type table of bdcmsgcoll with header line.
call transaction tcode using BDCDATA
mode 'N'
MESSAGES INTO MESSTAB.
You can then simply read this internal table for the message ids and numbers and use the function module MESSAGE_PREPARE to build the message text.
Regards,
Rich Heilman
Message was edited by:
Rich Heilman
‎2007 Mar 08 3:57 PM
Hi Rich,
i am also write same logic but in this case also iam getting the same problem. here is the logic
DATA :messtab TYPE TABLE OF bdcmsgcoll.
data: bdcdata TYPE TABLE OF bdcdata
ctumode = 'N'.
cupdate = 'L'.
CALL TRANSACTION 'MB11' USING bdcdata MODE ctumode
UPDATE cupdate MESSAGES INTO messtab.
plz help me out from this problem.
Thnaks
‎2007 Mar 08 4:00 PM
‎2007 Mar 08 4:03 PM
iam getting the success messges only.but not error messeges.i want to show that error msgs which are came in ' A ' Mode also.
Thanks
‎2007 Mar 08 4:07 PM
If there are no error message in MESSTAB, then the transaction simply is not issue them using the MESSAGE statement. When you run in "A" mode, do you see the error messages in the status bar at the bottom, or are they being shown to you in a different way, maybe in a dialog box showing a message log?
Regards
Rich Heilman
‎2007 Mar 08 4:14 PM
Let me hear my case.iam passing the values to BDC call transaction MB11, which are coming from delivery.if suppose in delivery there is not given the field storege location then that value is not populete on MB11.Then disply an error message.
but here when iam checking in 'A' mode the messtab is showing that ENTER STOREGE LOCATION.But in 'N' Mode it showing all sucess mesgs only.
Thanks
‎2007 Mar 08 4:34 PM
Hi rich,
this is the reqirement in error handling plz tell me ur valuble advice to achive to solve the problem.
I calling BDC MB11 from Delivery.so,with ref to delivery document the delivery items will placed in MB11.but in case of an error i.e insufficient stock of the components,no special error handliong has to be in place.the error message of the MB11 transaction should be passedback to the screen.how can i achieve it.
thanks
‎2007 Mar 08 4:42 PM
‎2007 Mar 08 4:48 PM
Hi Rich,
Here is my code plz look a glance.and advice me whr iam wrong.
Thanks.
Message was edited by:
skk