Stock Transfer Order: Delivery date issue BAPI_PO_CREATE1

Hi,
I am creating STO using Inbound Delivery data from BAPI_PO_CREATE1
inbound shipping date is 30 may 2014.
Passing below data
HeaderData:
doc_type = 'UB'.     "STO
suppl_plnt     =     '101'
doc_date     =     inbound shipping date.
comp_code     =     '1000'
purch_org = '20'
pur_group     =     '200'
Headerx Data:
doc_type = X
suppl_plnt     =     X
doc_date     =     X.
comp_code     =    X
purch_org = X
pur_group     =   x
Item Data:
Po_item = tabix of loop
Material = material from Inbound delivery item
plant = '101'
strge_loc = W.
Qunatity = from Inbound item only.
ItemX Data:
Po_item = X
Material = X
plant = 'x
strge_loc = X.
Qunatity = X.
Schedule Line Data:
po_item = tabix of loop
schedule_line = '001'
delivery_date = shipping date
del_datcat_ext = 'D'.
Quantity     =     quantity from Inbound item.
call function 'bapi_po_create1'.
     exporting   
          poheader = header data
          poheaderx = headerx data
      importing
          exppurchaseorder = po
      table
          return = return
          poitem = item data
          poitemx = itemx data
          poschedule = schedule data
          poschedulex = schedulex data.
when i am creating STO with above method STO is getting created and all data in it also correct but delivery date is 20th june 2014
instead of 30 may 2014.
it is coming as there is planned delivery time that is 21 so it is showing 20th june 2014.
but i need this value as 30th may 2014 only.
please help me on that.
thanks in advance.
Regards,
Gaurav

Hello,
You have to populate internal tables pocond and pocondx with values for itm_number,cond_st_no,cond_count,cond_value,cond_type, currency and change_id. Then call BAPI_PO_CREATE1.
Thanks,
Venu

Similar Messages

  • Intercompany Stock Transfer order - Shipping data

    We are in the process of implementing intercompany PO/STO process and we have hit a roadblock.
    Taking the example of one of our sites - Plants in Ireland supply material to plants in UK. Although they are part of difefrent company codes they are treated as INTRA-COMPANY transfers so we need to use the distribution channel IN
    But some plants in northern Europe (Finland/ netherlands) also supplys material to UK and they are INTER-COMPANY transfers so we have to use distribution channel IC
    Issue : IN SPRO, When you define shipping points for plants, you can assign only on distribution channel for a plant but as per the example above We need two distribution channels.
    Has anyone else come across any similar issue? Is there any work around or user exit that we can use for this please?
    Cheers,
    KB

    SPRO > MM > Purchasing > Purchase Order > Set up Stock Transport Order > Set up sTock Transport Order Between Storage Locations > Define Shipping Data for Stock Transport Orders Between Storage Locations (V_T001W_L) - here you can define different sales area / customer master for Plant / SLoc combinations.
    SAP will recognize the proper sales area when you input the issue SLoc during creation of STO (issue SLoc is the last field in the line of the PO item, it appears after hitting enter key).
    Regards,
    Csaba

  • Stock Transfer Order & Post Goods Issue

    Hi Friends,
    Can any one explain me what is Stock Ttransfer Order why we need it? and
    What is Post Goods Issue and why we need it?
    Can any body explain me  in eloberate.
    Regards,
    DVNS.

    Hello,
    Stock Transport Order (STO) is a Purchase Order of type 'UB' created for trasnferring stock between two plants (which can belong to same or different company codes). In STO pricing schema, you can set up different conditions such as freight, surcharge etc. to charge the receiving site.
    A delivery document is created for the sending site which needs to be posted through Post Goods issue step in order to deduct stock from the site. Then the stock will be in transit until it is received by the Receiving site. The receiving is normally carried out with reference to the delivery document.
    Thanks,
    Venu

  • Delivery Date Re-Calculation in Stock Transfer Order PO

    Hi All,
    We have Transportation scheduling activated and maintain 'Transit Duration Times' in our Routes (Populated 'TransitDur' field in Route <0VTC>) R/3 46c
    When we create a stock transfer order the 'Delivery Date' in the STO PO is determined by the 'TransitDur' (Transit Duration) value maintained in the route between the 'Supplying and 'Receiving' plants.
    After creating the STO PO, if the delivery is delayed and we need to reflect this change in the STO, when we attempt to change the delivery date - the system re-calculates the delivery date using the date on which the changes are made as the starting point and extending out the full length of time based on the value in the 'TransitDur' field in the Route.
    This means we are not able to change the delivery date in the STO PO to a date that is later than the original delivery date but still earlier than the date re-calculated by the system using the date on which the changes are made as the starting point.
    Is anyone aware of any functionality/config which allows you to manually change the delivery date in the STO PO - but not be restricted to changing the date by the value in the 'TransitDur' field of the Route, when it is a subsequent change to the PO and greater than the original date determined by the system?
    Thanks,
    Ravelle

    A solution has not been identified for this issue...query closed.

  • Re-calculate delivery date in Stock transfer order ( STO UB ), V_V2

    Hi, running the transaction v_v2 only Sto (Stock Transfer Order) At item level.
    Scenario:
             Sales order in Plant 2.
             Sto ,  Plant 1 to Plant 2.
             Purchase Order To Vendor in Plant 1.
    When I run V_V2 in Plant 1, the First execute transaction V_V2 is OK, This system availavility check the STO and confirm the delivery date and the quantity.
    Now I change the delivery date in Purchase Order but the transaction V_v2 in plant 1 don´t  make any change in the STOCK TRANSFER ORDER (STO) in the Delivery Date field.
    Why the systen don´t change the delivery date in STO automaticaly, Becuase I can change manualy in ME22N transaction, and the sytem confirm the quantity and  the confirm date.
    Other Example.
    I have good issu the Purchae Order in Plant 1 and execute V_V2, the sytem do not re-calculate the delivery date in STO, Why ?.
    Thanks.

    A solution has not been identified for this issue...query closed.

  • Combine stock transfer orders with different delivery dates into 1 delivery

    Hello,
    In transaction VL10B, the system normally combines stock transfer orders that have the same ship-to-party and same delivery date (if the combination indicator in the customer master specific to sales and distribution is checked). My business requirement is to combine stock transfer orders that have the same ship-to-party but different delivery dates. Is this possible through standard configuration? Is there a user exit that can allow this?
    At the moment the system is creating different outbound deliveries according to the delivery dates specified in the stock transfer orders.
    Please advice a solution.
    Regards,
    Felipe

    Felipe, please have a look at OSS note 386340, it may help to solve your problem about combining STO items with different delivery dates to one delivery (as I understand the code correction overwrites the delivery dates...).
    Edited by: Csaba Szommer on Jan 21, 2011 5:06 PM

  • Problem on creation of Outbond Delivery for Stock Transfer Order

    Hi all,
    We have problem on the creation of Outbond delivery for stock transfer order because the system doesn't group in a unique delivery for different items of a STO order.
    We used VL10B or VL10D but the behaviour is the same. Even if we have to handle few items of the Stock Transfer order already scheduled, the scope is to create a delivery which group everything while the system split in several delivery notes.
    Could you advice me the way to set in customizing , master data I don't know where else , the rules in order to avoid to split deliveries for STO.
    Secondly if we have already created a delivery note is it possible to add a further purchase order item as in sales order processing?
    Thank you for any suggestion you will give
    Andrea

    Dear Kripa,
    the first point has been solved. We have checked a SAP Note 386340 which is appropriate to this case.
    The second point, the one referred to the additional items to an existing delivery note, is not yet closed and I would like to know further advices  from you and the other guys connected to the forum in order to help us to solve the problem.
    Thanks for your help
    Andrea

  • Stock transfer order (STO) Without delivery and With delivery?

    Hi experts,
    Could any body explain step by step procedure
    Stock transfer order (STO) Without delivery and With delivery?
    Thanks
    Reddy

    Hi
    Stock Transport Order Without SD Delivery.
    U dont have to maintian sales view for the materials.
    1. Extend the material to those 2 plants.
    2. Create UB purch document.
    3. Goods issue wrt to the STO in the supplying plant ( 351 mvt type).
    4. Good Receipt in the receiving plant ( 101 mvt type ).
    5. Invoice verified (MIRO).
    U should have specific pricing procedure for STO. In MEK0 u have to choose the appropriate pricing procedure with the accrual key linked for freight charges.
    Vishal...

  • Delivery Split in Stock transfer Order

    Hello gurus,
                        In Stock transfer order process, Delivery has been split. In purchase order we have two materials, while creating delivery in VL10B System is splitting the deliveries and creating two delivery no. instead of one delivery. I checked everything but i could not reach out the solution. can you tell me what could be reason for this delivery split in Stock Transfer Order Process.
    Regards
    Soumendu

    SAP have provided a report ZLE_ANALYZE_DELIVERY_SPLIT in note 355404.
    This report tells you exactly what is causing the split by highlighting the cause in red. It does not make any change to the database on your system (i.e. no changes are made on your system). I would recommend you implement this report.
    Often, I have seen the delivery time being the cause of a delivery split. So check the values of LIKP-LFUHR for each delivery. But the above report would tell you exactly.

  • Open Qty is not copied in Delivery for Stock Transfer Order

    Hi,
    In the Stock Transfer Order process, Once the STO Order is created, I am creating delivery in the transaction VL10B or VL10G.
    When I am clicking the background button Delivery gets generated. Then when i am going in the transaction VL02N and increasing the delivery Quantity which is more than STO order quantity, the system is accepting it. But i want the system to throw an error message if the delivery quantity is more than the order qauntity. For this I have made the following settings.
    In the Transaction Code 0VLP, i have selected B in Check Over Delivery field. But still it is not throwing an error.
    The reason for the same may be, the system is not copying the Open Delivery Qty from the STO Order (Which normally happens in Sale Order to Delivery process, bcos of Copy Control). This field has 0 value. So the system is not able check for over delivery.
    If I get this value in the delivery then it should be working fine and the sytem will throw an error for over delivery.
    Can you please suggest me a way to get this open qty value in delivery for STO order or suggest me some other option to check for over delivery in STO.
    Regards
    Vijay

    Dear Friend,
    If I can understand you clearly.
    to achieve your task the best way you can sit with your abaper and configure a routine and assign the same to T-code OVLK delivery type customizing :
    In the Item requirement : Generally it is 202
    reward points if helpful,
    regards,
    Amlan

  • Table for  the PO Date and Stock Transfer Order Date of a material no

    Hello Everyone!
    I am having a requirement where I want both the Purchase Order Date and Stock Transfer Order Date of a perticular material no.
    On the basis of difference of these two dates I want to find out the period for which the material was present in supplying plant.
    I am not getting the table through which I can get these two dates for a material.
    Please help me out.
    Its urgent.

    hi,
    see these tables:
         EKKO – Purchase Order Header Table
         EKPO – Purchase Order Item  Table
         EKBE – PO History table.
    reward if its useful

  • Text from Stock Transfer Order to Outbound delivery

    Hi guys
    We wish to enter line item test in a Stock transfer order UB and transfer it to an Outbound delivery type NL.
    The required text are 'ITEM TEXT' and 'DELIVERY TEXT'.
    Please advise on the appropriate configuration that is required to achieve this.
    Thanks, Felix

    Hi Felix,
    Please go to transaction VOTXN ,
    Please follow Note 751441.
    Revert back for any queries.
    Thanks,
    AMOD

  • Good Receipt with reference to delivery or stock transfer order

    We have a stock transfer order between two plant. Requirement is as under.
    Steps - Supplying plant is creating stock transfer order, doing delivery with reference to STO by VL10B.
    Receiving plant is doing Good Reference with reference to delivery or STO t code MIGO.
    Now the requirement is if A Plant is supplying 100 nos, at the receiving plant it should not allow less then 100 nos. it should give error that qty is not match with delivering qty.
    Thanks in advance
    Samir Bhatt

    HI,
    You mean to say that STO quantity must be equal to GR quantity or else system should throw an error
    After STO and delivery PGI is done.
    Then GR is made with refernce to STO.
    Regards
    KK

  • Entering delivery costs in stock transfer order

    I am entering delivery costs via a condition type in a stock transfer order. When I am doing MIGO, AUM key gets invoked which is a price difference key. How do I enter delivery costs in a sto order without the aum key getting invoked because really freight or delivery charges should not be hitting the price difference account
    thanks

    Understood why system does that

  • Proforma invoice not created for stock transfer order

    Hi Experts
    while creating a proforma invoice for stock transfer order between the plants we are not able to create proforma invoice , the process is replenishment delivery is created and Wm is also done and the billing with reference to delivery and the item category is relevant for billing with value J, and below is the message i get whilw creating invoice
         Technical data
             Tech. data details
              Client                                
              Group Number
              Sales Document Number                
              Item Number of the SD Document         000010
              Schedule Line Number                   0001
              Counter in Control Tables              00
              Message Identification                 00
              System Message Number                  001
              Output Type                            E
              Message Variable 01
              Message Variable 02
              Message Variable 03
              Message Variable 04
              Group Type                             F
    No biliing documents generated
    Please suggest.
    Thanks

    This explanation is not in detail and hence I am not clear about your configuration settings. 
    First go to IMG Logistics-General => Tax on Goods Movements => India => Business Transactions => Outgoing Excise Invoices => Assign Billing Types to Delivery Types.
    There ensure that you have assigned the billing type JEX (assuming that you are using the standard) to your delivery type NL.
    Perhaps, you can also try with "D" for your item category in Billing Relevance field but I am not sure this will solve your issue.  Try in development client.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Pls sugg.modification of an orded prod is sevice or std purchase

    hi dear frds, we have raised one po against the butterfly valve manufacturer(vendor).according to PO they have manaufactured and made it ready.but before delivery of valves,we have noticed that some modifications to be done in this design of valves.s

  • What is best ebook reader to use alonside a mac?

    Hi Thinking of getting an ebook reader, like the Sony Reader or the like but dont know which one to get that will work well with my mac. The connect software that comes with the reader is only suitable with windows. I think I can use the general feat

  • My Address Book on Snow Leopard won't Search!

    When I type something in on the search field on my address book in Snow Leopard, it won't filter out the search, meaning that nothing new will show up. It will act as if I didn't type anything into the search field at all since nothing changes. I alr

  • Round Tripping to STP3?

    Hi Folks I'm struggling with the idea that Logic 9 can't easily process a clip/region in the arrange window. By this I mean select a whole, or region of a clip, and add EQ, distortion, whatever and have a modified clip. I know about BIP, but that mak

  • IPad has gone completely black, any suggestions

    I was using my iPad and it stalled in an application so I pushed the round center button on front . It went black and will not function at all. I tried plugging in charger although I recall it having at least 60% but nothing happens when I try to tur