cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module Get Conf by PO number

0 Kudos

Dear Expert,

I would like to get Confirmation number by PO Number. Please let me know what the Function module should I use in SRM

example : I have a PO number, I want to know the confirmations number related for these PO number

Many Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

See if this works out for you:

FM: BBP_PD_CONF_GETLIST

Parameter: I_FOR_PO_ID = <your PO ID>

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

please find the code below:

DATA : lv_po TYPE CRMD_ORDERADM_H-OBJECT_ID,

lv_conf TYPE CRMD_ORDERADM_H-OBJECT_ID,

lt_pdlist TYPE TABLE OF BBP_PDS_PDLIST,

ls_pdlist TYPE BBP_PDS_PDLIST,

lt_messages TYPE TABLE OF BBP_PDS_MESSAGES,

lv_po = po num ber

*Get the confirmation number for given po number

CALL FUNCTION 'BBP_PD_CONF_GETLIST'

EXPORTING

I_FOR_PO_ID = lv_po

TABLES

E_PDLIST = lt_pdlist

E_MESSAGES = lt_messages.

LOOP AT lt_pdlist into ls_pdlist WHERE OBJECT_TYPE = 'BUS2203'.

lv_conf = ls_pdlist-object_id

ENDLOOP.

Regards,

Neelima

0 Kudos

Hi All.

thanks a lot for your information.

it's very help for me.

regards,

Dwi Setyono