cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Confirmation of PO

Former Member
0 Kudos

Hi Friends,

I have requirement to create auto GR.

I have PO no with me and I am using

BBP_PD_CONF_CREATE

BBP_PD_CONF_UPDATE

BBP_PD_CONF_SAVE

Function modules to confirm PO. But while debugging BBP_PD_CONF_UPDATE

I am getting error messages

1. <b>Workflow approval not found, contact system administrator</b>

2. <b>Confirmation for PO not allowed</b>.

Can you please tell me solution and is there any specific parameters to pass function modules.

My code is

          • CREATE PO CONFIRMATION *********

CALL FUNCTION 'BBP_PD_CONF_CREATE'

EXPORTING

i_ref_guid = vf_doc_guid

i_save = 'X'

IMPORTING

e_header = wf_header

TABLES

i_item = if_item

  • i_partner = if_partner

  • i_orgdata = if_orgdata

  • I_TAX =

  • I_PRIDOC =

e_item = ef_item

  • E_ACCOUNT =

  • E_PARTNER =

  • E_LONGTEXT =

  • E_ORGDATA =

e_messages = if_messages.

MOVE-CORRESPONDING wf_header TO wf_header1.

CHECK NOT wf_header1 IS INITIAL.

CALL FUNCTION 'BBP_PD_CONF_UPDATE'

EXPORTING

  • I_PARK =

i_save = 'X'

  • IV_REJECT =

i_header = wf_header1

  • IT_ATTACH =

  • IV_MSG_SCENARIO =

IMPORTING

e_changed = v_change

TABLES

i_item = if_item1

  • I_ACCOUNT =

  • I_PARTNER =

  • I_LONGTEXT =

  • I_TAX =

  • I_PRIDOC =

e_messages = if_messages1

  • I_HCF =

  • I_ICF =

.

CALL FUNCTION 'BBP_PD_CONF_SAVE'

EXPORTING

  • IV_WORKITEM_ID =

  • IV_USERTYPE =

iv_header_guid = wf_header1-guid.

  • IV_KEEP_OLD_CHANGER =

  • IV_NEW_CHANGED_BY =

Thanks,

Ramana.

Message was edited by:

VenkataRamanaRao Gorrepati

Accepted Solutions (1)

Accepted Solutions (1)

former_member195032
Active Contributor
0 Kudos

Hi Venkata,

What is technical scenario in which you are in.

I feel that you are in Classic scenario and that is the reason you are getting this error.Let me know your technical implementation,i should be in position to help you then.

For Technical scenario,you can see

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/technical+scenarios&;

If you have auto creation of GR required in backend system only (R/3) ,you can use available BAPI which is fairly simple to implement.

regards,Nishant

Former Member
0 Kudos

Hi Nishant,

I am working on standalone SRM 5.0. even we have not implemented SUS.

and we don't have R/3 also.

Here Advance shipment notification (ASN) coming from external system.

there is one function module which can collect ASN data form Business Connector and it will store ASN in SRM.once it is stored in SRM, My enhancement should collect that PO and should check ASN qty and PO qty, if it is valid qty then it should confirm PO. this is requirement.

If you need any details let me know.

if somebody gives me solution, that will be helpful for me

Thanks,

Ramana.

Former Member
0 Kudos

Hi Nishanth,

I am working on Standalone Scenario, which you can see in the same link sent by you.

Thanks,

Ramana.

former_member195032
Active Contributor
0 Kudos

Hi Venkata,

I feel that you should look at FM BBP_CF_AUTOMATIC

where it's implementation is given using all the three mentioned FM's.

you should have commit work after BBP_PD_CONF_SAVE FM.

CALL FUNCTION 'BBP_PD_CONF_SAVE'

EXPORTING

iv_usertype = lv_usertype

iv_workitem_id = lv_workitem_id

iv_header_guid = gs_header-guid.

<b>

COMMIT WORK.</b>

Also see if there is any workflow customzing missing in this case.

http://help.sap.com/saphelp_srm30/helpdata/en/8b/ac05387ce5fd3ce10000009b38f8cf/content.htm

http://help.sap.com/saphelp_srm30/helpdata/en/8b/4fa9585db211d2b404006094b92d37/content.htm

regards,Nishant

Please reward if this helps

Former Member
0 Kudos

Hi Nishant,

Thanks for you quick reply. I am working on your solution

and can I have your contact no.

Because this is very urgent. If I need something from you, that will help me.

I will not distrub you unnecessarily.

Thanks,

Ramana.

Former Member
0 Kudos

you can send your contact no. to my personal e-mail ramana2004@gmail.com

Former Member
0 Kudos

Hi Nishanth,

Thankyou very much. It helped me a lot.

I have given you points.

I have used BBP_CF_AUTOMATIC fm. It works for me.

once again thankyou very much.

Thanks&Regards,

Ramana Gorrepati.

Former Member
0 Kudos

Hello Ramana,

Were you able to do auto-GR using FM BBP_CF_AUTOMATIC. We are also thinking of using this FM in a custom program to run in background daily pick up open PO and post GRs. Pls share the inputs to this FM.

Thanks,

Raj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Refer to this link which might help .

Regards

- Atul