Closing a Stock Transfer draft (using Delphi 7)

Hi, I have this code to close a Stock Transfer draft (ie. using 'Cancel' method):
           with GetBusinessObject(param_type) as IDocuments do begin
             ok := GetByKey(StrToInt64(param_key));
             if ok then result := Cancel();
        end;
Somehow that code gives me an error. By using GetLastErrorDescription(), the error message is:
"[Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'DocEntry', table 'SAP_TEST.dbo.DRF6'; column does not allow nulls. INSERT fails."
FYI I used this code to close other document drafts (Sales Order Draft, Return Order Draft), and they are all OK, so looks like something is a bit different with Stock Transfer draft.
Anybody has any idea what's wrong, and how to fix/handle it?
Thanks.

Hi,
Stock Transfer and some other inventory transaction tables share the same structure with other marketing document tables. However, because the general design of the table structure is focus on marketing document part, Stock Transfer transaction will have certain limitations. You need to try more methods to close it.
Thanks,
Gordon

Similar Messages

  • Stock transfer Draft cannot be printed

    Hello
    We are using PL16 and want to print stock transfer drafts (under Inventory)
    However the print funtion is not working because it is not activated.
    Do you know how can we print this document?
    It is odd, because other drafts (sales order,...) can be printed.
    Thank you.

    When opening the drafts screen, single click on the draft document (inventory transfer in this instance) just to highlight it, and then print preview / printer dialog will become activated. It prints that way.

  • Creation of Stock transfer order using BAPI

    Dear Gurus,
            I was trying to create Stock transfer order using BAPI function
            BAPI_PO_CREATE
            though i have defined Bsart as 'UB'
            still it gives message :
            " No master record exists for vendor MOH1 "
            Please show me path fwd.
            Thanks and Regards
            Gaurav sood

    Dear all,
         Issue Resolved
    thanks

  • Create Stock transfer Order using Inbound IDOC ORDERS05

    Hi,
    I am creating Inbound STO using ORDERS05. But it is triggering Sales Orders.
    The below message is coming.
    No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
    Suggest what are the required fields we should pass to segments?
    Regards,
    Balavardhan.K

    Hi Bala,
          I sugget you to pass the fields what ever it is showing as required fields.Till the end of the messages.

  • Pricing in InterCompany Billing document for InterCompany Stock Transfer

    Hi, SAP Gurus
    I am doing Stock Transfer Order using Intercompany Billing.  When I am creating the Intercompany invoice I am not getting the pricing in the conditions tab.  There ar eno condition types.  I have maintained the pricing procedure determination in OVKK.  Still there is no pricing procedure determined.
    Please suggest.
    Thanks
    Jayant

    Dear Jayant,
    Just check document pricing procedure and customer pricing procedure
    whether it is maintained properly  or not.
    warm regards,
    Rahu;

  • Stock transfer between plant to plant in blocked status

    Hi Gurus,
    Can anybody know how to use some mov. type to transfer restricted status between plant to plant?
    Many thanks in advanced.
    Luiz Geraldi

    Luiz,
    You cannot move 'blocked' or 'restricted' stock in this manner. This is not supported in ECC 5.0 and I would not think ECC 6.0 would be any different in this regard as this is a basic rule within standard SAP although I would think that in certain situations it would be beneficial to be able manage this in a simple move. 
    - As others have correctly pointed out, you have to change the stock status to 'unrestricted use', transfer/receive it (either using mvt 301, 303/305, 351/101, 641/101, 643/101 etc depending on the stock transfer mechanism used between the plants) and then finally change the stock status back to 'blocked'.
    - Another option would to be to post an inventory adjustment using mvts 701/702 in both the plants and then change stock status in receiving plant to 'blocked'.
    - Design a custom ABAP program to perform the sequence of movements in a single transaction. I think it would be important to get the timing right to avoid incorrect booking of stock.
    - The movements could be also be linked in a single transaction using a workflow solution although I am not sure how simple or complex the solution might be.
    Unfortunately, the quantity strings associated with movement types are hard-coded by SAP. So, it would not be possible to achieve this move using a custom movement type without any modifications.
    Hope this helps.
    H Narayan

  • Very imp stock transfer

    hi  experts,
    could you please explain the difference between internal procurement and stock transfer.
    thank u
    urs meena

    Hi meena,
    Procurement occurs within a company code is called internal procurement.  Stock transfer can also be done both intra as well as inter company code.
    Stok transfer process is as follows:
    In the normal course of business, there may be the requirement of transferring the materials from one plant to another. To meet this requirement and to have records of all the movements of goods, normally the Stock Transport Order is being used in the business. Since the Stock Transport Order has all the characteristics of a purchasing document, hence movements of goods can be traced and all subsequent transaction can be monitored at any point of time. In the standard SAP, the following procedures are available for stock transfer by using the stock transport order:
    Stock Transport Order without Delivery
    Stock Transport Order with Delivery via Shipping
    Stock Transport Order with Delivery and Billing Document/Invoice
    Process Flow & Stock Updates
    The following is process flow for stock transfer by using the stock transport order:
    1. By Indenting/receiving plant creates a stock transport order for the quantity required/needed.
    2.  Supplying plant supply the goods against the stock transport order. SAP posts these goods automatically to the stock in transit of the indenting/receiving plant.
    3. Unrestricted-use stock of supplying plant is decreased to the tune of quantity supplied against the stock transport order. Stock in transit of the receiving plant is increased
    4. Indenting plant receives the goods and post the goods receipt with reference to the stock transport order.
    5. The stock in transit is reduced and the unrestricted-use stock increased in the receiving plant.
    Effects of Stock Transport Order
    The following are effects of using a stock transport order for transfer of stock:
    A goods receipt can be planned in the receiving plant.
    If needed, delivery costs can be captured in the stock transport order.
    The stock transfer order can also be used in MRP
    A delivery via Shipping can be used for goods issue.
    The goods can be posted directly to consumption.
    Stock transport Order history is updated.
    Hope it will be helpful for you.  Appreciate with points if it is.
    Thanks and Regards
    Vetrivelan

  • Stock transfer posting

    Dear All,
    Pls explain me about the stock transfer posting with Tcode ????

    Hi,
    You can post both transfer postings and stock transfers in the SAP system. Transfer postings differ from stock transfers, in that transfer postings are not connected with a physical goods movement. They usually involve a change in stock type, batch number, or material number.
    An example of transfer posting is the release from inspection into the company's own stock.
    Stock Transfer Procedures
    There are three different procedures for carrying out a stock transfer:
    Stock transfer via stock transfer posting using the one-step procedure
    Stock transfer via stock transfer posting using the two-step procedure
    Stock transfer using a stock transport order
    T. codes are MB1B or MIGO
    Thanks,
    Kumar Arcot

  • Stock Transfer Reservation

    Hello Experts
       Can any one please elaborate what are pre reqisites for Stock Transfer Reservation?
    Thanks
    Ankit

    Kailash
      Replenishment via Stock Transfer Reservation is possible, you need to maintain data in MRP4 view. Here is defination for Stock Transfer Reservation. But I dont know how to set it.
    Triggering Replenishment via Stock Transfer Reservations
    Use
    This procedure shows you how you can stage components for production using stock transfer reservations. It makes sense to use stock transfer reservations if you do not want to carry out direct stock transfer, you do not use KANBAN (you have maintained no supply areas or control cycles) and the issue storage location is not managed using Warehouse Management. Replenishment using stock transfer reservations differs from direct stock transfer in that, for stock transfer reservations, the pull list only creates a reservation for the components required. You carry out the actual stock transfer posting in a separate step.
    For a direct stock transfer, the pull list posts the stock transfer immediately. A stock transfer reservation, therefore, provides you with an opportunity to check the actual stock situation more accurately.
    Thanks
    Ankit

  • How tell when a draft stock transfer has been transferred to stock transfer

    Hi
    A colleague has asked if I can delete all stock transfers which have been used, ie transferred to actual stock transfers in B1 8.81
    I can delete the draft fine but I can't tell if it's been used
    There is a field called transferred in the odrf file but that always seems to be set to N
    Also the usual base document of the new stock transfer seem to be blank
    Can anyone help me please ?
    Thanks
    Regards Andy

    Hi Andy,
    You could of course just write and save an except query. Something like this:
    SELECT T0.[CardCode], T1.[ItemCode] FROM ODRF T0  INNER JOIN DRF1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocNum] ='1137512'
    EXCEPT
    SELECT T0.[CardCode], T1.[ItemCode] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    This won't work in the client though. You would have to use sql server management or something
    Good luck,
    Johan
    Edited by: Johan Hakkesteegt on Feb 9, 2012 1:45 PM

  • Stock transfer between plants - Material used is Asset material

    Hi All,
    We are using TAXINJ.
    We are doing stock transfer of an asset material from Plant A to Plant B.
    Proceedure followed as below:
    Supplying Plant -
    STO PO - ME21N
    Outbound Delivery -  VL10B
    PGI - VL02N
    Billing - VF01
    Invoice DOc - J1IIN
    Receiving Plant-
    Goods reciept - MIGO
    Capture excise thru - J1IEX
    When capturing excise ETT is GRPO and the subtransaction type used is 01
    We are getting the below message:
    "No Cenvat amount to be posted"
    "No Cenvat Amount to be reversed"
    We are not getting any message when we are not using subtransaction type 01, and we are able to post part2 entries.
    Pls suggest.
    Thanks in advance
    Pavan.

    Hi Deivakaniraja,
    Thank you for your suggestion.
    Still have a querry....
    The subtransaction type that is defined is not conventional.
    We define various subtransaction type like 01, 02, 03, 04, but there is no standard that 01 to be used only for subcontracting.
    I understand that IP is defined only for Import postings.
    Can you pls brief me.
    Thank You in advance.
    Regards
    Pavan

  • 2 Step Stock Transfer Using WM Transport Order??

    Dear SAP expertes,
    I have a problem, I think a lot of you too; that is stock transfer in 2 steps from one storage location to another (mov. types 313-315), but using o referencing a reservation.
    SAP says that is not possible create reservations for 2 step stock transfer in MM, but also says use "Stock Transfer Orders" instead, that means use module WM.
    Do anyone could transfer stock from one storage location to another using WM Stock Transfer Orders? I tried, but couldn't make it. In anyone have documention to do this I will appreciate it a lot.
    Best regards,
    Favio.

    Hi Jürgen L.
    I was checking SAP Note  "28692 - MMIM: Reservation for a two-step stock transfer", and you were right, they say "Use the stock transport order instead of the stock transfer reservation".
    I confused with WM stock tranfer order, but I want to ask you if you have used UB transport order between storage location of the same plant?
    Best regards,
    Favio.
    Edited by: Favio Del Castillo on Sep 22, 2010 5:01 PM

  • Stock Transfer for Excisable Materials Using Movement Type 301

    Hi,
    We are having a Plant 1002 as excisable Materials.
    During GR we following the process like GR (Part -I), Capture Invoice, Post Invoice.
    Can we transfer the Material from Plant 1002 to other Plant, say 1001, using Movement Type 301?
    Or we need to follow some other router for Stock Transfer for the Excisable Materials?
    I was told by the ex-consultant that we would be using Mov Type 301 for all Stock Transfers, but I have a doubt, please guide.*
    Regards,

    Hi PK,
    Here in Brazil we work with excisable material and when we have to transfer it plant to plant, we have to use IVA that performs tax posts on accounting document. Also, we have to create Nota Fiscal (BrazillianLegal Document).
    I think you have to talk to your legal/accounting area in order to make sure which procedure you will have to use.
    If you need tax posting on accounting document, then you will not be able to use 301 movement type.
    We use MM/SD Plant to Plant transfer (movement type 861 / 862)
    Depending on your Legal/accounting area feed back, you could use this scenario or just MM plant to plant transfer (movement type 303/305).
    If they are ok with no tax postings on accounting document, then 301 movement type should be used.
    Try to make a test, show then how it works, then you could get ok from then
    I hope it helps you.
    Best Regards,
    Natan

  • G/l postings suring stock transfer using STO with delivery

    Hi Guys
    What are the G/L postings occur during A stock transfer between plant to plant inside the same company code. This is done using STO with sales delivery ( no sales order).
    Thanks
    Sam

    It will be BSX Stock or Inv acc Dr. for the recv plant and BSX Stock or Inve acc Cr for the Supplying Plant if you are using 648 movemnt type in PGI .
    No acc postings in MIGO GR when you will recv the goods in recv plant.
    Regards
    Sujoy

  • Cross-system stock transfer order (cross CC and without using APO)

    Dear experts,
    I want to set up a stock transfer order scenario cross two SAP systems (and cross company code).
    The examples given in SAP documentation point to scenarios using a joint APO system.
    At the same time the documentation reads:
    The number of process variants is a result of the combination of system landscapes and organizational units:
    - with or without joint SAP APO
    Does anyone in here have experience in setting up this scenarion without using APO system and could help me with a process flow and the IDOC sequence used for this?
    Thanks and regards
    Norbert

    Hi,
    and thanks for looking into this.
    No, I do not have an APO (company is using JDA/manugisitcs) and I want to set up cross system STO between two ECC 6.0 systems directly.
    I do have a number of idocs running between the systems already and also know the place where to configure a plant for cross system goods flow.
    What I would like to know is if this scenario is supported at all and if yes, what is the sequence of idocs and and what are their triggers (in other words - the technical side of the business process) .
    Best regards
    Norbert

Maybe you are looking for

  • Youtube video is blank,but audio played well. other browser such as chrome got no problem with it. FF Developer Edition.

    - youtube video just blank, but audio is there. tried both embedded in facebook or other website, and at youtube.com. both same result. - facebook video played just fine - other browser played just fine.. no problem at all.. - i'm on firefox develope

  • IDVD ONE STEP

    How do I get out of One Step? Somehow I inadvertently opened one step and now when I want to open iDVD 5, it's only one step that opens when I click on the iDVD icon. I might add, that I'm very much the novice when it comes to computers so please, do

  • XI to PCK

    Hello, I want to send a message from XI to the PCK and when i configure the communication channel i use the XI adapter type receive, i put the target Host with the IP adress of the pck host, i use the service number 50000 but i don't know which Path

  • Reuse FPM configuration in another webdynpro component

    Hello, I would like to define the navigations and buttons in one component configuration . And then use this  in another webdynpro component.  As the buttons/navigation is applicable to multiple requirements. So I would like to reuse it. I tried to d

  • MBP unresponsive and zero free space available

    Many people using this MB nobody cared to let me know we were running out of space. Today I was downloading a big file (1GB) when I got the "running out of space" alert message. Went to open info in the HD and saw there was only 255MB!!! I opened Tra