2009 Mar 21 11:15 AM
Hi ppl,
I have a requirement wherein I need to find out the different message numbers which can be generated while using BDC to create production orders from planned orders (tcode CO41).
The standard program for this is PPBICO40.
I am writing a wrapper program and have to implement the above mentioned functionality in it.
Please let me know if it is possible to find out the different message numbers which will be returned in the process.
Thanks,
David.
Hi ppl,
I have a requirement wherein I need to find out the different message numbers which can be generated while using BDC to create production orders from planned orders (tcode CO41).
The standard program for this is PPBICO40.
I am writing a wrapper program and have to implement the above mentioned functionality in it.
Please let me know if it is possible to find out the different message numbers which will be returned in the process.
Thanks,
David.
2009 Mar 21 12:14 PM
If you are calling the program using SUBMIT:
Use addition : EXPORTING LIST TO MEMORY
Function module :LIST_FROM_MEMORY will load the list of the messages in the call program to the internal table.
Regards,
Gurpreet
2009 Mar 22 7:13 AM
Hi David,
you can get message numbers and their types in BDC when you create a session for that.After executing the session,goto log,in this you can find message numbers with their type also.
If you donot get then rewert back.
Thanks & Regards,
Rock.
2009 Mar 22 7:43 AM
David,
i dont know exactly if this can be done but just a hint: With the help of functional consultent try to find all the exceptions which are maintined for Plan order to production order conversion in cutomizing.
i woul;d suggest do not go for a BDC for this, we have a FM which can do this task:
ALL FUNCTION 'CO_SD_PLANNED_ORDER_CONVERT'
EXPORTING
afpod_imp = afpod
caufvd_imp = caufvd
plaf_imp = i_plaf_wa
t003o_imp = t003o
t001w_imp = l_t001w
t399x_imp = l_t399x
IMPORTING
afpod_exp = afpod
caufvd_exp = caufvd
convert_suc = convert_suc
TABLES
plaf_tab = p_lineup
caufvd_tab = c_lineup
sfc_pocot = s_lineup
afpod_tab = a_lineup
EXCEPTIONS
error_message = 01.