on 2009 Dec 11 2:34 PM
Expert's.
I'm using BBP_PD_PO_UPDATE to update custom fields in shooping cart. This is working fine.
My problem is when i modify a "held" purchase order the approval workflow starts. I used the following code:
MOVE-CORRESPONDING is_po_header TO ls_po_header_u.
CALL FUNCTION 'BBP_PD_PO_UPDATE'
EXPORTING
i_header = ls_po_header_u
i_save = c_on
iv_with_change_approval = c_off
TABLES
i_item = lt_item_u
e_messages = lt_messages.
the parameter iv_with_change_approval should control this ? How can i stop the approval process to start in this cases?
Thanks in advance,
Mário Ricardo.
Request clarification before answering.
You don't want to save , but put it back into held status? Set the iv_park parameter = c_on as well. That should skip the approval workflow I think.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you not take care of this in start condition of approval workflow?
Regards
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello
i have a similar issue.
I need to update the PO in
BADI - BBP_DOC_SAVE, which is used in our process.
the PO ends in Approved status automatically after the SC is ordered.
after my changes added to the BADI:
-
CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
EXPORTING
i_guid = lv_doc_guid
IMPORTING
e_header = is_header
TABLES
e_partner = it_partner
e_orgdata = it_orgdata.
LOOP AT it_orgdata INTO is_orgdata.
CONCATENATE is_orgdata-proc_org_ot '*' is_orgdata-proc_org_id INTO gv_purch_org.
gv_purch_org_string = gv_purch_org.
TRANSLATE gv_purch_org_string USING '* '.
gv_purch_org = gv_purch_org_string.
ENDLOOP.
READ TABLE it_partner
WITH KEY partner_fct = '00000019'
INTO is_partner.
SELECT * INTO wa_frg0061
FROM bbpm_but_frg0061
WHERE partner_guid EQ is_partner-partner_guid
AND purchase_org EQ gv_purch_org.
ENDSELECT.
is_header-currency = wa_frg0061-po_currency.
is_header-pmnttrms = wa_frg0061-payment_terms.
is_header-incoterm_key = wa_frg0061-incoterm1.
is_header-incoterm_loc = wa_frg0061-incoterm2.
MOVE-CORRESPONDING is_header TO lls_header.
CALL FUNCTION 'BBP_PD_PO_UPDATE'
EXPORTING
I_PARK = 'X'
i_header = lls_header
i_save = 'X'
IV_WITH_CHANGE_APPROVAL = ' '.
ENDIF.
-
it end in status Awaiting approval.
PO header shows no change in BBP_PD.
Any idea how how to simply update the PO's header fields??
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.