cancel
Showing results for 
Search instead for 
Did you mean: 

SUS PO Confirmation function module

0 Kudos

Hi Experts,

I have got a situation where the requirement is that the user will upload a file through the portal. This file will contain PO confirmation details(PO number, qty, date, etc) where in I have to write a program in SAP SUS to take each of the records from this file and create a PO confirmation. PO confirmation can be 'Accept' or 'Reject' which will also be present in the file as one of the columns.

My question is how do I go about posting a PO confirmation for an existing PO in SUS.

I know that I can get details of the PO by using function module BBP_PD_SUSPO_GETDETAIL. What do I do after that? Is there any function module for posting PO Confirmation.

Can you please let me know the steps that I need to do to achieve this. I would really appreciate if I can get some examples as well.

Many thanks for your time.

Best Regards,

Afzal Shaikh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

These are the FMs which are tied to Purchase order Confirmation in SUS

BBP_PD_SUSPCO_CHECK

BBP_PD_SUSPCO_CREATE

BBP_PD_SUSPCO_SAVE

BBP_PD_SUSPCO_STATUS_CHANGE

BBP_PD_SUSPCO_STATUS_CHANGE_WF

BBP_PD_SUSPCO_UPDATE

Regards

Virender Singh

0 Kudos

Hi Virender,

Thanks for your reply.

I am not sure how to add the PO confirmation item details, which strucure to fill in the function module BBP_PD_SUSPCO_CREATE.

Do you have any example that I can see? Or if you can explain which tables or structures should be filled in so that when this function module is executed it will create a PO confirmation.

Any help is much appreciated.

Thanks.

Afzal

Former Member
0 Kudos

Hi Afzal

I am not sure what structures need to be filled up. Do one thing, process your XML message for PCO in debug mode in SUS and follow the path taken by SAP Programs for creating a POR...

Regards

Virender Singh

Answers (1)

Answers (1)

0 Kudos

Hi Experts,

I have managed to write a program with the following function modules in sequence and all of them execute successfully providing the proper GUIDs, reference documents numbers and things like that, but the strange thing is that it does not write anything to the database. I am not sure if I am missing something but I would assume that the SAVE function modules should take care of it.

Has anybody come across this before?

The function modules that I use in my program are:

BBP_PD_SUSPCO_CREATE_UI

BBP_PD_SUSPCO_GETDETAIL_UI

BBP_PD_SUSPCO_UPDATE_UI

BBP_PD_SUSPO_UPDATE

BBP_PD_SUSPCO_SAVE

BBP_PD_SUSPO_UPDATE_UI

BBP_PD_SUSPO_SAVE

All the above function modules work properly returning all the parameters and correct values in the internal tables but at the end of the program nothing gets saved onto the database.

I am not sure if I am missing something. Please help.

Thanks.

Afzal