Function Module to Update Shipment Cost Document through Idoc.....?

Is there any EDI function module which can Update Shipment Cost Document through Idoc.....

Hi Vijendra,
Welcome to SDN.
You can use FM IDOC_INPUT_SHPMNT with message SHPMNT and IDoc type SHPMNT01/02/03/04/05 to update shipment document.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if very helpful.

Similar Messages

  • How to create shipment cost document through BAPI?

    Hi SAP Guru,
    My requirement is to create shipment cost document through BAPI.
    Is there any standard BAPI to create Shipment cost documents? If any buddy no please help me out.I am in client place i have find out the solution..
    Thanks & Regards,
    Pankaj Sinha

    Hi Pankaj,
    See the following link for more help.
    IDOC/BAPI for changing Shipment cost number/document
    Regards

  • Function Module to Update Shipment Document with FURTHER DATES

    Hi All,
    i need to update (create an event entry) with the 'Begin Plan Date' and 'End Plan Date' of one Event in the 'FURTHER DATES' TAB
    (2nd Tab) of the Shipment Document. I got to do this using the separate program after the shipment gets created from external system in ECC.
    Any ideas on how to do it? the function modules belong to the function group
    TSEG.. but am not sure which function module can cater my requirement..  or can we do it with a BDC call.
    Appreciate ur early reply...
    Regards,
    Leona

    hi,
    YOu can use fm 'HR_99S_date_plus_time_unit'.
    hope it helps
    regards,
    pawan

  • BAPI or Function module for updating shipment

    Hi experts,
    Do you know any bapi or FM to update shipment events (i actualy want to update events and dates under 'more dates' tab in vt02n) ? If so, please provide details about FM and what interface parameters to pass.
    Thank you very much!
    Kind regards

    Did you try this functions,
    RV_SHIPMENT_UPDATE
    - Guru
    Reward points for helpful answers

  • Business Area not flowing automatically in Shipment Cost document

    Hi there,
    In transportation module, while creating shipment cost document, business area is not flowing automatically. Upon more exploration we found that plant is also not flowing, and may be because of that business area is not flowing. What can the posible reasons for plnt not flowing? Suggest solution.
    Thanks and Regards,
    Deepshikha

    Dear Deepshikha,
    Please check the Assign purchasing data settings in T_53 transaction with the combination of the plant.
    Through this setting plant will flow in the shipment cost document.
    I don't have idea about where the businees area field avail in the shipment cost document.
    If so please chek the settings related to business area through this IMG path.
    SPRO>IMG>Enterprise structure>Assignment>Business Area Account Assignment.
    Define Rules By Sales Area
    If Rule 1 is assigned then
    Assign Business Area To Plant And Division
    If Rule 2 is assigned then
    Assign Business Area by Sales Area.
    I hope it will help you,
    Regards,
    Murali.

  • Function module SD_SCD_DELETE deletion of shipment cost document

    Hi,
      I need to develop a custom transaction to delete SCD ( shipment cost document). I have found that the FM  SD_SCD_DELETE is used to delete the SCDs. Can anybody tell me how to go about the process and use this FM to delete the SCDs.
    Thanks and regards
    Prem

    HI,
    Check these code once :
    TYPES: v54a0_vfkk LIKE vfkkvb.
    data : itab type v54a0_vfkk .
    CALL FUNCTION 'SD_SCD_DELETE'
    EXPORTING
      I_REFOBJ                 =
      CHANGING
        c_scd_wa                 = itab
        EXCEPTIONS
       item_not_deletable       = 1
       scd_not_deletable        = 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.
    Reg,
    Siva

  • How to update sales order number (KAUFN) characteristic in the profitability segment of the PA document created at the time of service entry sheet confirmation, as a result of shipment cost document

    Hi,
    We have a scenario wherein we create shipment cost documents against delivery. As a result of shipments fully transferred, a PO for freight vendor is automatically created and a service entry sheet confirmation happens. As a result of service entry sheet confirmation, we have Financial accounting, Controlling and profitability analysis documents created. We have a requirement wherein we need to have the characteristic “sales order number (KAUFN)” populated in the profitability analysis document created as a result of service entry sheet confirmation.
    Could someone please advice how could this be attained in COPA. Thanks for your help in advance.
    Regards,
    Sandeep

    Hi Ajay,
    Thank you for the quick update.
    The document is updated to COPA through OKB9 settings. The profitability segment is updated with fields like customer, product, company code, plant, sales area data, profit center, etc; however the sales order number is missing.
    Could you please elaborate further how could FI substitution be implemented to call for the FM COPA_PROFITABILITY_SEGMENT through user exit? Are you recommending the substitution through GGB1? What could be the possible validation to call for the user exit to be implemented?
    Regards,
    Sandeep Kulkarni

  • Condition value is not updating in shipment cost documents.

    We are creating a shipment cost document and condition value is not updating automatically when we enter the amount.
    Regards,
    Jagadeesh

    Dears,
    The material master of the material is not maintained with gross weight and net weight, hence automatic updation for condition value is not taking place, i resolved the issue.
    Thanks,
    Jagadeesh

  • Auto creation of Shipment cost document

    Hi Folks,
    Is anyone aware of how to create a shipment cost document using a function module?
    I need to create shipment cost document as well as update the condition values. But all this needs to be done via a BAPI or something in the background.
    Thanks,
    Mihir

    Seen an abaperr and check out the program "RV56TRSL" for your requirement. Through this program, you can Schedule the creation of Shipment cost document.
    If you're talking about automatic PO creation then you need to do the following:
    1. Assignment with relevant Purchasing org & group will be done at SPRO->LE->Transportation->Shipment cost->settlement->Assign Purchasing data
    2. To create the PO automatic you need to do these settings :-
    By selecting the shipment cost & item category for automatic PO (T_56) and selected the default PO type for the transaction.
    Path :- IMG > Material Mgt. >Purchasing >Define default Values for Document Type.
    Path :- IMG >Logixtic Execution >transportation -> Shipment Cost >Ship Cost Document >Shipment Cost Type & Item Category (T_56).
    3. Remember to check EKKN which is the table for account assignment in PO.
    Good luck

  • Creation of function module for updating the ztable

    Hi,
    I am sending the requirement for ceation of function module for updating the ztable.
    Requirement----
    Table Updation rule (New record)
    While creating a new record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO------->     Sales Delivery no in case of sales orderShipment no in case of transfer order
    UNAME----
    >     User ID
    ZORDTYPE----
    >     SALEOR in case of sales orderTRANSF in case of transfer order
    ZREFDOCNO----
    >Sales Order no in case of sales orderPurchase Order no in case of transfer order
    ZREFDOCNO1----
    >Delivery no in case of transfer order
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZREQNO----
    >Running serial number (incremented by 1 for each new record)
    ZREQDAT     -
    >System date
    ZREQTIME----
    >     System time
    ZSTATUS----
    >OPEN (for all new records)
    Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
    Table Updation rule (Status Update)
    While updating a record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO----
    >Sales order no in case of sales orderShipment no in case of transfer order
    ZSTATUS----
    >CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZSTATDAT----
    >System date
    ZSTATTIME----
    >     System time

    Do you have to create/update new record in Ztable through Function Module ?
    or you need to write FM only for validation?
    Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
    Let me know clearly what exactly u need ?
    Regards,
    Kiran

  • Free PO with shipment costs from shipment cost document

    Hello,
    We have a scenario where materials is received free from vendor but shipments costs are still paid to the vendor.
    For shipment costs, we are creating inbound delivery against PO, then Inbound shipment and inbound shipment cost document.
    The requirement is that shipment costs should get updated in Moving avg price.
    But If I am marking Purchase order as Free,  shipment costs are also not getting updated during GR as system also considers shipments free of charge.
    Is there a way to handle this problem.
    We are creating GR through vl32n and not through MIGO.
    Regards
    Karan

    Hi,
    You can try this solution.
    1.Do not tick the free indicator
    2.Create a condition type for discount and put 100% discount for that condition.
    3.Create a condition type for shipment as a value (delivery cost) without accruals tick in the codition type(customizing).
    4.Enter the shipment cost for this condition.
    5.Set the pricing procedure in such a way that the gross price of the PO will not consider this shipment cost.Hence the gross price of the PO will be zero (Free of  cost) but the net price will consider the shipment cost.
    This shipment cost will get loaded on to inventory.
    As you have defined the shipment condition type as delivery cost condition type , you can change the vendor in details of the condtion if required.
    Cheers,
    Satish Purandare

  • Export Shipment Cost Document / Service Agent

    Dear Gurus,
    My client having Exports, Client is sending goods from shipping Point to Port through Truck, its a direct leg. forwarding agent is one from shipping point to port, but another agent is responsible for the "Clearing and Forwarding agent" activities.
    In my shipment document on upper side i put the forwarding agent who is responsible from shipping point to port, and by default there is only one field of forwarding agent.
    But I have two item category so that can call two procedure in the cost document, one is for cost of truck and second is for clearing cost.
    I can successfully call two line items in the shipment cost with two different procedure, but forwarding agent is one. when i double click on the first line and change the "Invoicing Party" system can accept this but still forwarding agent at header is not change. Means when put the check of transfer and save the document both cost hit the same vendor appear on the shipment document,
    I want that shipment cost to be hit to both first line cost to the main agent (truck), and second line cost is to the "clearing agent" which i put on the shipment cost against the "invoicing party field".
    Hope gurus understand the scenario nad assist me.
    Regards,

    Issue resolved, through partner function functionality.
    Add the partner on the shipment document screen, and same would be call on the shipment costing document.
    Regards,

  • Inbound freight - Goods receipt before Shipment cost document

    Hi,
    We are in process of implementing Transportation module for capturing Inbound freight.
    All our test cases passed except 2) mentioned below:
    Operationally transactions sequence can happen in two ways:
    1) Purchase Order -> Inbound delivery -> Shipment document ->Shipment Cost ->Goods receipt ->Invoice verification - Materials
    > Invoice verification - Freight
    2) Purchase Order -> Inbound delivery -> Goods receipt ->Shipment document -> Shipment Cost ->  Invoice verification - Materials
    > Invoice verification - Freight
    In case 1 we are we are getting correct results as freight amount is getting added in material cost during MIGO as below
    Inventory              Dr          (is sum of GR/IR and Frt Provision)
    GR/IR                    Cr
    Frt Provision         Cr
    While in case 2) since MIGO is done prior to shipment document we are not able to get FI effects for freight cost. Hence Invoice booking is not possible for freight neither it is getting added into materials.
    Results expected as below :
    In case 1 , same as it is happening today.
    In case 2, it should post freight provision at shipment cost document so that freight booking can be done.
            Inventory       Dr
            Frt Provision  Cr
    It will be of great help if anybody suggest solution on this.
    Regards,
    Swanandesh Rane

    Hi Ilya,
    A simple search term "Shipment cost document creation before PGI" and got the below thread which is exactly the same the only difference is for process GR and GI
    May i ask you to go through with existing thread first and if  your question is not answered please let us know
    G/R mandatory before shipment cost....

  • Picking deleted shipment cost documents

    Hello,
    if I delete a shipment costs document (transaction VI02) there will be no flag at document, the document will be deleted completely from the table. How can find any information of deleted documents, the best with any information about values?
    Regards
    Norbert

    Hi,
    If change log is activated, you can get the deletion log in CDHDR & CDPOS tables. You can use function module CHANGEDOCUMENT_READ to get change document information.
    Regards
    Vinod

  • Freight capitalization for STO process using shipment cost document

    Dear MM experts
    I have been testing and trying to charge freight to material using transportation module. I know how to do it in simple STO process without SCD (shipment cost document) but I am not able to do it with SCD.
    I have searched and tried every link I found on SCN. Unfortunately there are many open threads and non of them is answered or giving complete solution. For example I have tried this link where Ajit Kumar has explained the scenario in detail I am but unable to achieve my result. I have also tried other links and SAP note 427944 as well.
    Now what thing confusing me is accounting entries and documents/steps where these accounting entries will be posted.
    My current process is like this in plant to plant transfer under same company code
    STO > OBD > Shipment Document > PGI > Accouting Entry with 641 movement type. Material account debit and same account credit. > Shipment Cost document > GR with 101 without any accounting entry > Transfer freight cost to FI using Freight Service PO determination > Accounting Entry Freight Outward Expense Debit and Freight Clearing Account Credit > MIRO > Accounting Entry Freight Clearing Debit and Vendor Credit
    As you can see we are booking freight as an expense and not charging to material. Now what I want is that freight should be charged to material. If I am sending material from plant P000 to plant P201 under same comapny code then freight charges should be added in material cost in plant P201.
    I have done FRB1 condition type with accrual and copy shipment cost tick mark and other stuff suggested in all those threads but it is not working.
    My requirement is to understand the points where and what accounting entries will be created as per my new scenario which is same as old one except one difference which is to charge freight to material instead of booking expense in freight service PO.
    Lets take an example that material cost price is 100 and freight charges is 50. Now as per old threads at the time of GR against OBD system will create accounting document with 150 debiting the stock in plant P201. What about credit? If we have added freight here then what about 2nd accounting entry in my first scenario in which freight expense is debited and clearing account is credited? Could anyone please explain accounting entries and points where these entries will be posted?
    Another thing is that is it only possible with moving average price to charge freight to material or can we do this with standard price as well using some standard or customized solution?
    Detailed and easy to understand answer will be highly appreciated.
    Thank$

    Hi Moazzam ;
    Firstly, you can benefit Badi/s in package VTRA which is given belowed.
    Secondly , i think that  shipping method --> create sto with delivery --> create shipment document and shipment cost document (problem is starting so system will be create PO and service entry sheet automatically , can you try shipment document is non-related with cost document.
    Thirdly , you can post invoices charge to material with miro , if you success to direct freight costs to stock account (BSX).
    Also , you can benefit doc. sap behaviours for Std price/ Map --> Planned & unplanned delivery costs in mm
    I hope , you can manage your process ; for me standart way is the best.
    Regards.
    M.Ozgur Unal

Maybe you are looking for