on 02-26-2007 6:23 AM
Hi experts,
I want to create STO from a Shopping cart, for some vendors which is maintained in Z table,how do i do that?
i am using badi create_po_back and changing the doc type from ECPO to UB,then populate supplying plant in po_items and defaulting the item category to U
Hi
Please elaborate with details.
Do you need the code ?
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
oke the scenario is this,
in my place they have extended the standard STO,they have configured in such a way that STO gets created only if we give 'issuing storage location' and 'delivery priority',
as of i know the function module bapi_po_create which creates the po at the backend from s.c does not have the fields issuing storage location and delivery priority,
now how do i create STO, as of now i have used the badi bbp_create_po_back and have changed the doc type to 'UB',how do i proceed further..
we are using srm 4.0 and ecc 5.0
Hi
<b>Inside BBP_CREATE_PO_BACK BADI for the method -</b>
<u>METHOD if_ex_bbp_create_po_back~fill_po_interface</u>
Inside PO_HEADER table, the
BBPS_BAPIEKKOC Structure
BBPS_BAPIEKKOC-DOC_TYPE (Document Type) can be changed to your requirement.
Similarly, we can change the data for the fields
Inside ITEM Level data in table PO_ITEMS for the table type - BBP_PO_ITEM_SPOOL ( Transfer Structure: Create/List - PO Item )
BBPS_BAPIEKPOC-STORE_LOC (storage Location)
*-----------------------------------------------* Delivery Field *-----------------------------------*
At item level inside PO_ITEMS table
BBPS_BAPIEKPOC-PLAN_DEL
*-----------------------------------------------* Delivery Field *-----------------------------------*
*-----------------------* PO_ITEMS_ADD_DATA table contains a field
BBP_BAPIEKPOA structure contains delivery fields
BBP_BAPIEKPOA-OVERDELTOL
BBP_BAPIEKPOA-UNLIMITED
BBP_BAPIEKPOA-UNDER_TOL
BBP_BAPIEKPOA-DEL_COMPL
*----- Inside table PO_ITEM_SCHEDULES
BBPS_BAPIEKET structure
BBPS_BAPIEKET-SERIAL_NO
BBPS_BAPIEKET-DELIV_DATE
BBPS_BAPIEKET-DELIV_TIME
BBPS_BAPIEKET-DEL_DATCAT_EXT
<b>You need to modify the contents, based on your requirement in this BADI, before the BAPI_PO_CREATE is invoked from SRM side</b>
Hope this will help.
Please reward suitable points.
Any queries, do let me know.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.