cancel
Showing results for 
Search instead for 
Did you mean: 

release po in duet enterprise 1.0

Former Member
0 Kudos

Hi all,

I have developed a Purchase Order query and read operations for my customer. I need to release PO once a user approves the PO.

Can we develop the PO release process using the BAPI BAPI_PO_RELEASE?

please suggest

Thanks,

Kris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

Does it comes under update operation in duet? If so, please suggest how to go about.

BAPI_PO_RELEASE prompts for PO Number and Release Code.

Please guide me how to develop the process of releasing the POs in duet enterprise 1.0

Thanks,

Kris

avishek_gorai2
Participant
0 Kudos

Hi Murali,

You can do this in two ways

1. Using a Duet Enterprise Workflow

2. Using the update method of Duet Enterprise business object integration

For using WF you need to create a SAP WF in the SAP backend system and follow the steps for integration of WF using Duet Enterprise (SDN guide 1 and guide 2).

For the second approach you can include the Release code and other necessary fields in the business object definiton and use them as input fields for the update operation, the PO number can be picked from the SCL key (like you do in Read operation).

Hope this helps.

Regards,

Avishek.

Former Member
0 Kudos

Hi Avishek,

Sorry for the delayed response.

Thanks for your valuable suggestion. But as per the duet enterprise developer guide point number 7.2.1,There is a dependency in SharePoint Designer between the Read response structure and the Create request structure and the Update request structure.

But in my scenario, the Update request structure is entirely different from Read Response structure.

The Update Request structure (BAPI_PO_RELEASE) is having purchaseorder and po_rel_code parameters as inputs. But my Read Response structure is having lot more other fields also.

Please suggest/help me out.

Thanks & Regards

Kris.

Former Member
0 Kudos

Hi Kris,

As you discovered already SharePoint Designer ensures that certain dependencies are met between each of the operations. Example: The Updater view must be equal to, or a subset of, the SpecificFinder view.

(More details here: http://msdn.microsoft.com/en-us/library/ff464437.aspx.)

In your case you could try creating a wrapper RFC for the update operation. The wrapper should have a signature that satisfies the dependencies for an update operation. Inside the wrapper you can then trigger the actual BAPI_PO_RELEASE call.

Cheers, Alex

Former Member
0 Kudos

Hi Alex,

As you told that the Updater view must be equal to, or a subset of, the SpecificFinder view. The update standard BAPI BAPI_PO_RELEASE is having the field PO_REL_CODE which does not exist in my Read Operation BAPI. How to go about?

My approach:

Since my only concern is to update the release flag only, can I create normal webservice using SOAMANAGER in backend and update the release status to released using sharepoint?

I mean without using duet, can I make use of this BAPI(BAPI_PO_RELEASE) with backend webservice into sharepoint?

please suggest.

Thanks,

Kris


Former Member
0 Kudos

Can anybody suggest?

thanks,

Kris.

Former Member
0 Kudos

Hi Krishna,

I would suggest not to create yet another web service for UPDATE.

Is the PO_REL_CODE field something that needs to be filled in SharePoint or can it be determined programmatically (e.g. set a fixed value)? If so, then create a operation for UPDATE that complies with the prerequisites (e.g. input should be same or similar to output of READ) and return should basically only have a fault message container. When firing the update from SP you should set the key and could ignore all the other fields. With the help of the key field and the constant PO_REL_CODE you can now trigger the RFC BAPI_PO_RELEASE.

If you need to enter the PO_REL_CODE in SP, then you should extend the attribute structure and add this it as an optional attribute (e.g. add it to the output of the READ operation). For READ and QUERY you can basically keep it empty. For the UPDATE operation now you can use it to pass a value (together with the key) to finally fire the RFC.

Hope this helps. Cheers, Alex

Former Member
0 Kudos

Hi Alex,

Thank you very much for the solution provided. My problem solved.

Regards,

Kris

Answers (0)