on 2010 Feb 16 2:02 PM
Hi,
we have a requirement where we need to create a shopping cart programmatically . For this we are using a FM
BBP_PD_SC_CREATE.
now I'm able to create the shopping cart but the shopping cart is getting into "awaiting approval" status.
Our requirement is to make the shopping cart automatically approved and follow on documents created like PO's,
Can you please let me know what is the config needs to be done to get the shopping cart approved automatilly.
Please give me a step by step approach as I'm new to SRM.
quick help is much appreciated.
Request clarification before answering.
After it creates SC , execute this 2 method .... it should solve your problem BBP_PD_SC_STATUS_CHANGE_WF - To set status release and BBP_REQREQ_TRANSFER - To transfer
BR
Padhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried using the same FM But its still the status is "awaiting approval".
DATA : STATUS TYPE sy-subrc VALUE '1'.
DATA : LV_VORGANG TYPE J_VORGANG.
CALL FUNCTION 'BBP_PD_SC_STATUS_CHANGE_WF'
EXPORTING
iv_guid = ls_sc_header_detail-guid
iv_status = status
IV_CHANGER = SY-UNAME
IMPORTING
EV_OBJECT_STATUS = LV_VORGANG
TABLES
ET_MESSAGES = lt_po_create_messages
EXCEPTIONS
INVALID_VALUE_FOR_STATUS = 1
ERROR_IN_STATUS_CHANGE = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK AND WAIT.
once the FM is run, the object status is "RELS" , but still internally its not approved, can you let me know where am i going wrong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.