Stock transport order with BAPI_PO_CREATE1

Hi,
can anybody give me an advice how to use the function BAPI_PO_CREATE1
to create stock transport orders?
I´m getting some errors when I run it. Here is my test data I have used:
poheader-comp_code: NO10
poheader-doc_type: UB
poheader-langu: EN
poheader-purch_org: NO10
poheader-pur_group: 999
poheader-suppl_plnt: 2041
in poheaderx I have set a flag for the filled fields.
poitem-po_item: 00010
poitem-short_text: test
poitem-material: 100230
poitem-plant: 2001
poitem-quantity: 1
poitem-po_unit: CYL
poitem-conv_num1: 1
poitem-conv_den1: 1
poitem-prnt_price: X
poitem-unlimited_dlv: X
poitem-item_cat: U
poitem-acctasscat: K
poitem-gr_ind: X
poitem-ir_ind: X
poitem-gr_basediv: X
poitem-preq_name: TEST
I´m getting the following errors in the return table:
       ID                Num: 000 PO could not be creating using Enjoy-BAPI
E     ID MEPO     Num: 002 PO header still faulty
E     ID 06           Num: 098 Please enter supplying plant
E     ID ME         Num: 018 Item category U can only be used with material
W    ID ME         Num: 040 Can delivery date be met?
E     ID ME         Num: 083 Please enter G/L account no.
Any ideas how I can create one successfully?
Cheers

Hi,
poitem-po_item: 00010
poitem-short_text: test
poitem-material: 100230
poitem-plant: 2001
poitem-quantity: 1
poitem-po_unit: CYL
poitem-conv_num1: 1
poitem-conv_den1: 1
poitem-prnt_price: X
poitem-unlimited_dlv: X
poitem-item_cat: U
poitem-acctasscat: K
poitem-gr_ind: X
poitem-ir_ind: X
poitem-gr_basediv: X
poitem-preq_name: TEST
fill the corresponding fields in POITEMX  table also with 'X'!
Regards,
Sooness.

Similar Messages

  • HELP for all 5 TYPES of  STO  Stock Transport Orders with detailed scenario

    PLEASE help me understanding the detailed scenarios for all 5 TYPES of STO s
    as in my day to day job activities , i frequently handles issues related to STO s
    PLEASE HELP WITH DETAILED STEP BY STEP SCENARIOS

    Hi Jagatram,
    Standard SAP has the following methods For Stock transport order:
    1) One Step Transfer stock without using purchasing documents; Use movement type 301.
    2) Two Step Transfer stock without using purchasing documents; Use movement type 303 in Supplying plant and movement type 305 in receiving plant.
    3) Using Standard Transport Order (STO) without delivery in two steps. STO created in T-Code ME27, receiving plant posts goods issue (for returns), movement type 351 and supplying plant post goods receipt from using movement type 101.
    4) Using Standard Transport Order (STO) with delivery in one step. STO created in T-Code ME27, Receiving plant creates shipment and Goods issue document (for materials to be returned) with movement type 647 and goods receipt document with movement type 101 both created in one step.
    5) Using Standard Transport Order (STO) with delivery in two steps. STO created in T-Code ME27, Receiving plant creates shipment and Goods issue posted (for materials to be returned) with movement type 641.Goods receipt is posted in the supplying plant, movement type 101.
    6) Using Transportation scheduling agreement (TSA) with delivery in two steps. TSA created in T-Code ME37. Receiving plant creates shipment and Goods issue document (for materials to be returned) with movement type 641. Goods receipt is posted in the supplying plant, movement type 101.
    To achieve it, necessary configurations has to be done in Tcode- OMGN.
    SPRO>> Materials management>> Purchasing>> Purchase Order>> Set up Stock transport Order:
    1. Plant: For the receiving plant, maintain customer No-Plant (If using STO with delivery), for the Sales Org, Dist channel and Division.
    2. Checking Rule: Create checking rule.
    3. Define checking rule : Usually no change required here.
    4. Assign delivery type/checking rule: Assign the document type(UB) - Supplying plant- Delivery type(NL).
    5. Purchasing document type: Maintain the supplying plant- Receiving plant relationships for the doc type-UB, either 1-step or 2-step, as per business.
    Hope this helps!
    Regards,
    Shilpa

  • Stock Transport Order with Delivery via Shipping

    Hai
    I created stock transport order Intra process. within company two plants .. i configured supplying plant i assigned sal.org,dis.channel,division and receiving plant i assigned customer number also. in po its automatically picked the shipping data details. but in delivery VL10B with ref po , it show the error log error message as: An item with no delievery quantity is not permitted.Item will be deleted. but i checked all the setting in STO.. how to solve the error message in delivery?

    Is committed qty showing in the delivery schedule tab of item details(STO)?
    And also check the delivery creation date in the shipping tab.While creating the O/b delivery you should give the date as it's given in the Shipping tab.
    And Also maintain the Stock in the Supplying plant.
    Otherwise Give the Message no.
    Edited by: John Boeckle on May 23, 2008 2:24 PM

  • Intra company stock transport order with delivery to subcontracting vendor

    Hi Friends,
    We have an issue with Intra company stock transport scheduling agreement with delivery to subcontracting vendor.
    We have a scenario where the component is provided by another plant (Plant A -Intra company) directly to subcontracting vendor and the subcontracting vendor processes the component and sends us(
    Plant B) the finished good.
    We have a subcontracting scheduling agreement created with the subcontracting vendor with Item category u201CLu201D for plant B .(Document type LPA)
    And we created the stock transport scheduling agreement with document type LU (Between Plant A to Plant B) by entering the subcontracting vendor number to the "EMLIF- Vendor to be supplied/who is to receive delivery" field but the check box "LBLKZ-Subcontracting vendor" is hidden in the delivery address tab.
    Field selection with document type (LU) and Field selection with transaction code (ME37) did not help to bring the field to the delivery address tab.
    As a result, when we do PGI from the supplying plant, the stock is posted to "in transit" (Movement type 641) instead of "Component provided to vendor" (Movement type 641 u2013 O)
    The same behavior for purchase order with document type UB as well/
    Is the movement type u201C641-O u201C supported by standard SAP or do we have any other workaround to address the requirement. ?
    Now we are in ECC 6.0 EHP3.
    Your inputs will be highly appreciated.
    Regards
    Gobinathan G

    Hello,
    This EhP4 feature addresses only the one step Stock Transport Order to subcontracting vendor for intra company.
    Does anybody know how to do a two steps Stock Transport Order to subcontracting vendor for intra company?
    By "two steps" I mean:
    1- Goods Issue from supplying plant A to in-transit stock of the subcontracting vendor at receiving plant B.
    2- Inbound Delivery Notification (IDN) at receiving plant B + Goods receipt against this IDN into the subcontracting stock at receiving plant B.
    Thanks and regards,
    Stéphane

  • STOCK TRANSPORT ORDER  With in One company code

    Dear Laksmipathi,
    While RP delivery in stock transfer order  With in One company code, the sym will pick movement tyoe 641 and which ic configrued in SL .But  in STO  there is no sale order creation  that  i mean  SL  will pick only in sale order.
    Here  order type UB and plant combination  sym will pick the Delivery type NL
    NL -NORM -V sym will pick Item category  NLN  of Delivery not  of  sale order.
    NLN-NN(Schedule line)
    Generally we know the SL which is determined by  item category  and MRP  type , here  item category is coming only in RP  delivery document.
    So my question is
    Question  1.how  this  641  which  has  determined  while RP Delivery  document?
                                   if it is  determining from schedule line NN , how  it can be consider since  sale      order is not  in the picture?
    Question 2. In 641  the cost has been updating /Accounting document is getting generatiing  where as in VF01 billing doc  not relevent for Accounting  doc  .so  how we can settle or balance the  cost  of this material  while occured in 641  or  PGI?
    Question 3.What  are the business benifits while  doing  STO?
    i am new in this  and Pls  advice  how to give the  point  to  you .
    Regards
    ISHI

    Dear Thakkar,
    Pls  compare  my question and ur answer
    Question 1.how this 641 which has determined while RP Delivery document?
    if it is determining from schedule line NN , how it can be consider since sale order is not in the picture?
    What is   I am not clearu2014that  if i641 is determining from schedule line NN , how it can be consider since sale order is not in the picture?
    Ur Ans:
    A1. In case if STO the item category is assign to Delivery typeitem category groupusages+ Item category of the higher-level item Tocde (ZERO)0VLK Taking the item category and and checking the schdeline assign to the same. In schedule line you will find 641.
    Query
    OVLK  which is  delivery header  and taking the item category of Delivery through  Delivery typeitem category groupusages+ Item category of the higher-leveL.
    Can we determine the SL  with  delivery  type  and delivery  item category since sale order is not in the picture?
    How we can take the sale  order item category  for  find SL since sale order is not in the picture?
    Question 2. In 641 the cost has been updating /Accounting document is getting generating where as in VF01 billing doc not relevant for Accounting doc .so how we can settle or balance the cost of this material while occured in 641 or PGI?
    What is   I am not clear-How settle cost  of this  material ?
    Ur Ans : The accounting is happening for material value.
    Are  you  think Is  it  correct  this  answer  yourself?
    Question 3.What are the business benifits while doing STO?
    I  am cleared in third answer which you   given   and I am appreciating to  you ur  response, but  the answer should be  according to my question.
    Thanks
    Ishi

  • Stock Transport order with Freight Charges- Payable to an external vendor

    Hello
    we are implementing the stock transport order between two plants in SAP 4.7. The document type is UB and it has to be a two step process. We need to post the Freight Charges as well. The freight Provider is external vendor.
    What is the best way of configuring this scenario for freight cost?
    I did put the freight forearder vendor code on the conditiond tab detail of condition tyep FRA1 but  can't do the invoice verification for the same.
    Any tips are appreciated.

    Hello,
    This EhP4 feature addresses only the one step Stock Transport Order to subcontracting vendor for intra company.
    Does anybody know how to do a two steps Stock Transport Order to subcontracting vendor for intra company?
    By "two steps" I mean:
    1- Goods Issue from supplying plant A to in-transit stock of the subcontracting vendor at receiving plant B.
    2- Inbound Delivery Notification (IDN) at receiving plant B + Goods receipt against this IDN into the subcontracting stock at receiving plant B.
    Thanks and regards,
    Stéphane

  • Stock transport order with movement type 643 - post to COPA

    Hello SAP gurus,
    We use movement type 643 to post good issues for stock transport order (intercompany process). The delivery type is NLCC. We recently implemented account-based COPA. At the time of post goods issue, cost of goods sold should be posted to COPA, but it didn't. Could someone help me figuring out how to push PGI to COPA for stock transport order? Thanks in advance.
    Regards,
    Cassandra Wong

    The reason that PA segment is not populated in the good issue for STO is because the cost element of the COGS account was set to "01" instead of "12". I changed the cost element category and the PA segment is populated correctly.

  • Creating Stock Transport Order with Delivery

    Hi All,
    I am trying to create an STO with delivery option.
    I have been able to complete STO cycle without Delivery - both one step and two step.
    However, after choosing Delivery Type NL in SPRO, the ME21n for STO creation gives error - Unable to determine shipping data for Material 427.
    Sales org structure has been defined and assignments are complete.
    Shipping Point has been defined & assigned to the Supplying Plant.
    Recivering Plant has been given a Customer Number and both Receving & Supplying Plants are assigned sales area data. (MM->Purchase Order->Set Up STO)
    In Material Master, Loading & Transport groups have been assigned, and all views have been maintained.
    Any ideas on the possible cause of error??
    Thanks.

    Hi,
    Please check these links:
    ERROR"Not possible to determine shipping data for material XXX"
    Not possible to determine shipping data for material

  • Stock Transport Order with Delivery and Billing

    Dear all,
    I've manage to perform STO process for supplying plant -> delivery (VL10B) until post goods issue (VL02N).
    Now, when I attempt to perform standard SD billing (VF01) using the delivery number, the system proposes "IV" billing type (Interco Billing).
    My problem is there no net price for the billing document (VF01). Question: normally the pricing is carried over from Sales Order in a normal SD process. Since this is STO crossover from MM process into SD process, do I need to maintain the pricing condition manually in the billing document before saving?
    Thanks.
    Steven

    In the copy control (delivery --> billing document) you can define what the source of the price is, from where system should copy, determine it.
    Basically you have two options: determine the price based on sales condition records or copy the price from purchase order (see pasted link). If you use shipment, you can set that shipment cost should be copied as well (see OSS note 574850).
    You can find copy control settings under:
    SPRO > Sales and Distribution > Billing > Billing Documents > Maintain Copying Control For Billing Documents
    As for details please have a look at:
    Intercompany Billing Process
    (see Raghavendra's answer)
    if you are not familiar with SD, please contact your SD consultant to carry out the settings.
    Edited by: Csaba Szommer on Jan 14, 2011 12:38 PM

  • Stock Transport Orders with Location Substitution or Determination

    Hi All,
    Is it possible to configure STO location substitution or determination in ECC 6 and SCM 5.0 environment? I have already gone through SCM 5.0 release restrictions note and it says STO's cannot be used with location substitution. Just wanted to make sure that there is no other way to implement this functionality.
    Thanks,
    Harish

    Hi Harish,
    Rules Based ATP has not be developed for STO's for the reason that STO's do not support sub items. And sub items are mandatorily created by RBATP.
    Regards
    Sanjeev

  • Stock Transport Order with Delivery and Billing Document/Invoice

    Dear Experts,
    We have implement the process in our system as required on SAP document:
    http://help.sap.com/saphelp_47x200/HELPDATA/EN/4d/2b911d43ad11d189410000e829fbbd/frameset.htm
    The problem is that when creation the PO the Shipping tab does not exist in the PO , and no  delivery can be created .
    We are using NB PO doc type,
    Delivery type implemented as  NLCC
    Please advise where is the problem ?
    Regards,
    Moshe

    >
    Moshe Stein wrote:
    > Hi Afshad Irani
    > Thanks for your prompt reply,
    > I have looked to all your pages , but could not find the problem why there is no Shipping Tab?
    >
    > Moshe
    Shipping tab is related to shipping points. You need to maintain shipping points, then shipping points are linked to storage location, and once you enter storage location your shipping point is picked. One of the above links tell you how its done.
    T-code OVL2
    Path logisitc excution-->shipping>basic shipping function--->assing shipingpoint s
    Shipping point
    Edited by: Afshad Irani on May 30, 2010 7:44 PM

  • Create blocked purchase order with BAPI_PO_CREATE1

    Hi,
    I´m creating stock transport orders with BAPI_PO_CREATE1. At first, I need to
    set them to the release status 'S' for blocked. After some checks, I want be able
    to relase it and create the delivery.
    I have found some fields like rel_status inside of the header structure of
    BAPI_PO_CREATE1. But when I set this to 'S', the purchase order is created
    with status 'released'.
    How can I create a purchase order with BAPI_PO_CREATE1 and set it to 'blocked'
    first?
    Thanks, Arne

    No ideas about that?

  • Problem in creation of STO(stock transport order)

    hi all SAP gurus,
    i am facing the problem in creation of stock transport order with ME21N code. i m getting the error msg of "Not possible to determine shipping data for material in STO "
    i have checked the stock transport order setup in customization. but not getting the clear idea to come out from this problem.
    if anybody have the idea of " how to do the customization of stock transport order setup, pls. let me explain.
    thnx in advance.
    rgrds,
    rajesh

    Hi Rajesh,
    when ur creating STO with UB doc type, then you have to maintain material in both the plants.
    Regarding the error which is comming for you, you have to check the settings at
    SPRO- IMG- MM-Purchasing-Set up stock transport order- Assign delivery type & Checking rule
    here for document type UB and your supplying plant-XXXX select nothing for Dlv type(delivery type) and chr - 01 and after this save.
    After this you create STO as you are doing and see what the system is prompting.
    For any further clarification let me know.
    Regards,
    NJ

  • Minimum order qty for Stock transport orders

    Hello
    I wonder if there is any way to make the following fields from the Sales org 1 view in the material master to apply on Stock transport orders (ME21N, with subsequent delivery created in VL10B):
    Minimum order qty
    Minimum delivery qty
    Delivery unit
    As of now in our system, it only works for Sales orders and related deliveries. But not for Stock transport orders with a supplying plant.
    Also, if there is any other way to implement minimum order qty funcitonality and delivery for Stock transport orders, pls advice.
    Thanks,
    OT

    Hello
    We are in an intracompany business case. The supplying and recieving plant are in the same company.
    The situation is as follows: we are planning all replenishment manually without any involvement of MRP.
    What we would like to achieve is the same functionality as of the minimum order/delivery quantities material master fields in the material master.
    So when the planner creates the stock transfer order, he keys in supplying plant, material and quantity manually, then the warning message about the minimum order qty should appear.
    So far I have not found any way to do this. Any ideas are greatfully received.
    BR,
    OT

  • Inter - Company Stock Transport Order Issue

    MM SAP Gurus,
    When I try working on "inter company stock transport order between two company codes."
    I found the errors while creating PO(using document type UB)
    ie.
    *1st Error -Material 1 not maintained in Plant 2.
    2nd Error - Customer 1 does not exist (please check entry in plant 1)
    3rd Error - Not possible to determine shipping data for material1)*
    i couldnt find out the error................................
    Here is the configuration done by me......
    Company codes:c1,c2
    Plant for c1:p1
    Plant for c2:p2
    I m going to create and transfer stock from p2 to p1.
    Here i m using stock transport order with billing(SD)
    Purchase org for c1:porg1
    Vendor for c1,porg1:v1
    I assigned plant p2 in additional purchase data of vendor v1.
    Sales area for c2:sorg2,ds2,d2
    Customer for sales area(sorg1,ds1,d1):cust1
    Now i go to mm->purchasing->purchase order->setup for stock transport order
    > for receiving plant p1 i assign cust1,sales area(sorg1,ds1,d1)
    > delivery type for supplying plant:NLCC
    >checking rule RP.
    i assigned doc.type UB into receiving plant p1 and supplying plant p2.
    Then, in ME21N used doc type UB, these r the errors::::::::::::::::::::::::::::::
    *1st Error -Material 1 not maintained in Plant 2.
    2nd Error - Customer 1 does not exist (please check entry in plant 1)
    3rd Error - Not possible to determine shipping data for material1)*
    I already maintained all this.
    The doc type NB also I tried ,,,,,,,but same errors r being shown.
    Also where to create the inter company a/cs for billing?
    Please check the attached file for the error and let me know.
    Thanks & Regards
    Keerthi ...

    Business partner
    ●     Vendor master u2013 supplying plant
    Create the vendor for the purchasing organization of the receiving plant.
    Assign the vendor to the supplying plant in the vendor master record.
    From the menu, choose Logistics ® Materials Management ® Purchasing ® Master Data ® Vendor ® Purchasing ® Change (Current). Go to the Purchasing View and choose Extras ® Additional Purchasing Data.
    ●     Customer master u2013 receiving plant
    Create a customer master record for the receiving plant. From this, both the address and the data that is relevant for shipping point determination, such as transportation zone and shipping condition are taken.
    From the menu, choose Logistics ® Sales and Distribution ® Master Data ® Business Partner ® Customer ® Create.
    The above is from help.SAP:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/frameset.htm
    Plz check this link for tht information.
    So, basing on this: I have customer 1 and vendor 1 for CC1......
    --> Customer 1 is assigned to the receiving plant with sales area1 in setup STO configuration.
    --> Vendor 1 is assigned to the supplying plant in the vendor master.
    --> My question for u is:
      1)  In ME21N, in the vendor field u assign the vendor from CC1 or CC2 (Because it says the vendor - external supplier if u read in F1 in tht vendor filed)
      Company code , Purc Org, plant all this will be from CC1 in ME21N, right?????????
    Material exists in both the plants P1 and P2.......right?????
    2) How to configure the inter - company accounts for the billing in sd for this STO scenario.???
    Please clarify these things.....
    You will be appreciated and rewarded too.
    Thanks
    Keerthi

Maybe you are looking for

  • I am locked out of my phone. Asking for a google user name and password?  I don't know what it is!

    I am locked out of my phone. Asking for a google user name and password?  I don't know what it is!

  • How EOIO processing works with FILE to RFC dapter? Pls help!

    Hi Experts,     I have a FILE to RFC scenario.     FILE ---> XI ---> RFC(R/3 System)     In the sender FILE communication channel I have setup QOS as EOIO. After reading the file, XI sends the file data to RFC function module in another R/3 system. T

  • No unique identifier in FCC

    Hi Experts, We have a requirement in SAP PI (7.31) where the flat file is picked from source and sent to Target. FCC is used for conversion in the sender channel. Incoming files has two header, with each header multiple line items under that. The lin

  • Changing camera model in metadata

    I have a series of scans of slides. One of the disadvantage of being, blessed with years, is that I took a LOT of slides. And one of the advantages of same blessing is that most photos were taken with one camera... back when cameras were expensive wa

  • Image scaling issues

    I am using a 1280x720 PNG for the background in my Flash movie, but when I play it in fullscreen the image looks like crap. What's the best way to make images still look good when the movie is scaled up? Should I use a 1920x1080 PNG and scale it down