How to copy Shipment Header Details to Shipment Legs Automatically (VT01N/VT02N)

Hello All,
I have a requirement to copy details from Shipment Header into Shipment Legs. My specific requirement is to copy Special Processing Indicator value in Header to my Shipment Leg information since the freight master uses Sp Proc indicator value to determine overall freight in Shipment Cost document. The problem is that when I click 'Planning' information is not copied to Legs. I do not want the user to input details TWICE.
Need help. Hope I have clarified my issue well. Thanks.

Please answer too

Similar Messages

  • Regarding Updating Shipment Header Details in VT02N tcode

    Hi all,
    I have created a dialog program, inwhich iam populating shipment related details.
    1st Screen: Selection screen fields:
    billing Doc
    Billing date
    2nd Screen: Based on Billing Document number and date, i have to fetch Shipment details using Table Control like:
    shipment number,        Output only
    Forwarding Agent,      input/Output both -
    editable
    Shipment start Date,    input/Output both -
    editable
    Container id.                input/Output both -
    editable
    and i have created a button as "Update VT02N" on second screen.
    When we choose Columns in table control and click on "Update VT02N", then it should trigger VT02N transaction and update the shipment details with following fields:
    1. Forwarding agent
    2. Container id
    3. Shipment start Date.
    So i waht to know any BAPI available to update Shipment Header details in VT02N tcode.
    I have tried: BAPI_SHIPMENT_CHANGE -
    NOT WORKING PROPERLY.
                        SD_SHIPMENT_SAVE -
    NOT  WORKING.
    IF ANY BODY HAS SOME SOLUTION, PL SUGGEST WITH STEPS.
    HELPFUL ANSWERS -
    BETTER POINTS...
    Regards,
    Vamsy

    Hi,
    Have you called the BAPI_TRANSACTION_COMMIT after executing BAPI_SHIPMENT_CHANGE , even then if it is not working
    you can check the FM  SD_SHIPMENT_HEADER_CHANGE.
    Thanks.

  • Copy delivery header text to shipment header text

    Hi All,
    Please let me know the user/customer exit to copy the header text of delivery to shipment while creation(VT01N) or deletion(VT02N) of shipment for deliveries.
    Please provide the code samples or procedure, if you have any.
    Thanks in advance and points will be rewarded
    -Venkat

    Hi
    Use these User exit and write the code for the same in one perform of its include this is having the delivery details and capture the same into your shipping
    EXIT_SAPLV56F_010
    regards
    Shiva

  • How to copy Partners from Delivery to Shipment?

    Hi,
    I know that a Shipment is used usually to group multiple deliveries.
    If I have the same partners, in the delivery that I want to group, is there a way to configure copy control from Delivery to Shipment?
    Tula Gentil

    Hi Tula,
    There is currently no provision in the standard coding to
    copy partners from the delivery into the shipment header.
    The only exception to this is the Partner :'Forwarding Agent', that can be copied from the Delivery into the Shipment.
    For this to be done, you should set up suitable copy routines in the customizing for the shipment type. Also the Forwarding agent should be unique in this case.
    You can assign your own partner functions , provided that they are set up correctly in transaction VOPA.
    The Partner functions for the Shipment stages have to be maintained
    separately in a Partner determination procedure specific to Shipment
    stages.
    The standard partner determination procedure for Shipment stages is
    'TRS1':Shipment Leg. You can find this in the customizing transaction VOPA for the Object Transport.
    You can add the required partner functions in the partner procedure TRS1, so that they are available for the shipment stages.
    I hope this information is useful to you!
    Regards
    David Merino

  • How to NOT display header details in every page when printed with PLD

    Hi All
    I am printing a report of all related activities of a business partner using PLD.  in the printout the header details of business partner such as name, phone details are printing in every page along with contents.  how to avoid this situation printing the header details in everypage except first page?
    SV Reddy

    Hi,
    Add a formula field to the page header.  The formula field will need to contain the following text on the Content tab.
    CurrentPage()
    Add another formula field, once again add the following to the Content tab
    Field_101=='1'
    in the example above, Field_101 is the field id for the first formula field you added.
    Now all you need to do is link the fields that you only want printed on the 1st page to the 2nd formula field you added.
    Regards,
    Adrian

  • How to copy billing plan details of main item to all its sub-items...

    In the sales order, we have main item and sub-items. The main item is a project item and it has a billing plan which gets copied from the project. Now the requirement is to copy the same billing plan(of the mainitem) to all its subitems- billing dates, billing type, billing rule, date category, percentage of the amount to be billed, etc. So that when we do billing for this sales order all the items and its sub items are copied in the milestone billing document.
    The billing plan is not at header level since the sales order can have multiple project items and their milestones can differ.
    Please suggest how to acheive this- coping of billing plan details from main item to all the subitems.
    Rds,
    sucmsss

    You can use the enhancement section in include mv45af0f_fplan_aktualisieren_c. In the below code, I am copying milestone lines from previous document, but you could adapt to copy from the higher level item. Copy and pretty print it in ABAP editor.
    ENHANCEMENT 10  ZSD_SALES_DOC1.    "active version * Generate Billing Plan without dialog. * Because copy control does not work with milestone billing plans, we need to perform the below tricks.
      DATA: zlt_fplt TYPE TABLE OF fpltvb,         zlt_fpla TYPE TABLE OF fplavb,         zlv_fareg TYPE tfpla-fareg,         zlv_fplnr TYPE fplnr,         zls_vbkd TYPE vbkd.   FIELD-SYMBOLS:TYPE vbkdvb,                 TYPE fplavb,                 TYPE fpltvb,                 TYPE fpltvb.
    IF xvbkd-updkz = chari AND       tvap-fpart IS NOT INITIAL AND *      xfplt[] IS INITIAL AND       vbkd-fplnr IS INITIAL AND "bill plan not created       vbak-vbtyp CA 'CG'. "contracts and orders       SELECT SINGLE fareg FROM tfpla INTO zlv_fareg WHERE         fpart = tvap-fpart.         IF zlv_fareg IS NOT INITIAL AND           zlv_fareg <> '6'.         READ TABLE cvbkd ASSIGNINGWITH KEY         vbeln = vbap-vgbel         posnr = vbap-vgpos.         IF sy-subrc IS INITIAL.           CALL FUNCTION 'BILLING_SCHEDULE_READ'             EXPORTING              fplnr          =-fplnr             tables              ZFPLA          = zlt_fpla              zfplt          = zlt_fplt. * Check if any of the lines are not periodic and not from milestone before proceeding.            READ TABLE zlt_fplt ASSIGNINGWITH KEY            MLSTN = abap_false            nfdat = 0.          IF sy-subrc IS INITIAL.           CONCATENATE '$000' vbap-posnr INTO zlv_fplnr.           ENDIF.         ENDIF.         IF sy-subrc IS INITIAL.           LOOP AT zlt_fplt ASSIGNINGWHERE             mlstn = abap_false.            -fplnr = zlv_fplnr.             APPENDTO xfplt.            -updkz = chari.           ENDLOOP.           LOOP AT zlt_fpla ASSIGNING.            -fplnr = zlv_fplnr.             CLEAR-vbeln.            -updkz = chari.             APPENDTO xfpla.           ENDLOOP.           da_fplnr =-fplnr.         ENDIF.       ENDIF.     ENDIF.     CALL FUNCTION 'BILLING_SCHEDULE_GENERATE'          EXPORTING               I_FKDAT        = VBKD-FKDAT               I_FPLNR        = DA_FPLNR               I_WAERS        = VBAK-WAERK               I_FPART        = TVAP-FPART               I_VEDA         = XVEDA               I_VEDA_KOPF    = VEDAVB               I_UPD_FPLA     = UPD_FPLA               I_UPD_FPLT     = UPD_FPLT               I_KOMK         = TKOMK               I_KOMP         = TKOMP               I_KOMPAX       = KOMPAX               I_FKREL        = VBAP-FKREL               I_CREATE_DATES = US_FLG_CREATE_DATES               I_KFPLAN       = DA_KFPLAN               I_KFPLNR       = DA_KFPLNR               I_NOMSG        = US_NOMSG               I_ABSAGEN      = DA_ABSAGEN               I_FPLAA        = FPLAA          IMPORTING               E_FPLNR        = XVBKD-FPLNR               E_DATALOSS     = DA_DATALOSS               E_UPD_FPLA     = UPD_FPLA               E_UPD_FPLT     = UPD_FPLT               E_KOMPAX       = KOMPAX          TABLES               FPLA_NEW       = XFPLA               FPLA_OLD       = YFPLA               FPLT_NEW       = XFPLT               FPLT_OLD       = YFPLT               I_FPLTS        = TFPLTS               I_FPLTNP       = TFPLTNP               I_KOMV         = XKOMV               I_TKOMK        = TKOMK               I_SVBAP        = UVBAP.     LOOP AT zlt_fplt ASSIGNING.       READ TABLE xfplt ASSIGNINGWITH KEY       mandt =-mandt       fplnr =-fplnr       fpltr =-fpltr.       CHECK sy-subrc IS INITIAL.      -updkz = chari.     ENDLOOP. ENDENHANCEMENT.

  • How to copy MIRO header text to account document line item automatically

    HI Experts,
    I really need your help or advices , my question is as follows, thanks.
    After goods receipt , I do invoice verification at t-code MIRO , and it'll produce an account document by system.
    at MIRO, I key in the purchasement description on the header text column (INVFO-SGTXT) ,
    and after posting , the header text only appear in account document's account payable item ,
    it's blank in GR/IR and tax item. 
    How to do could let the GR/IR and tax item have the header text too at column BSEG-SGTXT which produced by system?
    p.s.
    I  have try to use BADI:  AC_DOCUMENT , Method: CHANGE_AFTER_CHECK
    and declare  a couple of parameters to check the value,  as follows
    DATA: WA_HEADER TYPE ACCHD,
               WA_ITEM TYPE ACC_DOCUMENT-ITEM,
               WA_ITEM_AMOUNTS TYPE ACC_DOCUMENT-ITEM_AMOUNTS.
    WA_HEADER = IM_DOCUMENT-HEADER.
    WA_ITEM = IM_DOCUMENT-ITEM.
    WA_ITEM_AMOUNTS = IM_DOCUMENT-ITEM_AMOUNTS.
    but, in the parameters , I don't see any column to access INVFO-SGTXT value.....
    Thanks a lot in advanced.
    Best Regards,
    Yacoa

    HI  SAPFICO,
    Thanks for your advice,
    I  have follow the link , and create an function model named ZSAMPLE_INTERFACE_00001025(copy from SAMPLE_INTERFACE_00001025),
    and also run  the  setting  in FIBF....
    I write some code in my function , as follows,  but it doesn't work after  I do MIRO
    and it's still blank of the account document's line item.
    p.s. even make a breakpoint at the function , it doesn't stop and stay at the breakpoint when I execute MIRO, so werid....
    FUNCTION ZSAMPLE_INTERFACE_00001025.
    ""區域介面:
    *"  IMPORTING
    *"     VALUE(I_BKDF) LIKE  BKDF STRUCTURE  BKDF OPTIONAL
    *"  TABLES
    *"      T_AUSZ1 STRUCTURE  AUSZ1 OPTIONAL
    *"      T_AUSZ2 STRUCTURE  AUSZ2 OPTIONAL
    *"      T_AUSZ3 STRUCTURE  AUSZ_CLR OPTIONAL
    *"      T_BKP1 STRUCTURE  BKP1
    *"      T_BKPF STRUCTURE  BKPF
    *"      T_BSEC STRUCTURE  BSEC
    *"      T_BSED STRUCTURE  BSED
    *"      T_BSEG STRUCTURE  BSEG
    *"      T_BSET STRUCTURE  BSET
    *"      T_BSEU STRUCTURE  BSEU OPTIONAL
    DATA: C_SGTXT TYPE BSEG-SGTXT.
    IF SY-TCODE = 'MIRO'.
      READ TABLE T_BSEG INDEX 1.
      C_SGTXT = T_BSEG-SGTXT.
      LOOP AT T_BSEG.
        IF T_BSEG-SGTXT IS INITIAL.
          T_BSEG-SGTXT = C_SGTXT.
          MODIFY T_BSEG.
        ENDIF.
      ENDLOOP.
    ENDIF.
    ENDFUNCTION.
    Edited by: Yacoa Chen on Mar 30, 2011 9:54 AM

  • How to copy line item details in Service PO from service contract

    Hi Team,
    i am using service contract with account assignment U and when i am creating a PO with reference of contract then in PO at Item Overview is coming data ok, but at item details in services there is not picking data automatically from contract.
    whats wrong in my scenario.

    Hi,
    Please make sure that you follow the following steps:
    1. Enter the contract and item number in the PO item line
    2. Click on the u201CService Selu201D icon to select the required
    services from the contract
    3. In the Pop-up screen, enter the agreement number in the
    corresponding field.
    4. Now select the required services from the contract and
    use the u201CServicesu201D icon or  the F9 key. Now save the purchase
    order with the adopted lines
    Best Regards,
    Arminda Jack

  • How to copy long text from production order to automatically created P.R

    Hello experts,
    I want to add some text to the long text , in the production order and save it.
    There is an external process in our routing, in which when the order is saved and released, there is a P.R created automatically.
    My requirement :-  The text in the long text tab of the Production order should flow to one of the text types {Item text} in the P.R item created.
    I checked in SPRO [ IMG-> MM->Purchasing -> P.R-Texts for PR-> define copying rules].
    For text type ,  'Item text' already has  the text linkages : Order/network, with source texts "component text' and 'transaction text'.
    However, the text being maintained in the order is not flowing on its own anywhere into the P.R created.
    Is there any other config that needs to be done to achieve this?
    Regards
    P.R

    Hi, A production order long text exists at a header level and a Purchase req gets triggered at an operation level of a production order during external processing.
      So if you expect a mapping of a header text to operation level text, it should not be definitely possible in the SAP standard. (May be an enhancement would still work but you need to decide on it).
    If you maintain a long text at the same operation where you trigger a pur.req (a text on your own or via a standard text key-CA10 tcode), you would see that populated, at the item-level text tab of the generated pur req automatically, as a standard behaviour.
    Hope you would go with the standard system behaviour.

  • Copying of Header Text

    Hi
    How to Copy the header text that i entered in VF01 to Accounting Document(RV) or in Customer Line Item.(FBL5N)
    URGENT!!!
    Regards
    Subhasish

    Hi,
    Logically speaking a header text cannot be copied into line item text.
    In T.C. VOTX  there is clearcut seggregation of header and line item text.
    The text for line item is maintained in the master data whereas header taxt is applicable to the document type.
    Hope it is helpful.
    Regards

  • How to remove dangerous goods block indicator from Shipment Header?

    Hi All..
    I want to remove the dangerous goods block indicator from shipment header.
    How to go about this?
    Thanks.

    You can enter a shipment blocking reason in the delivery. When you    
    create a delivery, a shipment blocking reason is proposed on the basis
    of the delivery type.       
    IMG->LE -> TRanspotation ->Shipment->Def Blocking reason for shipment.
    Please delete the reason.
    IMG-> LE -> TRanspotation ->Shipment->maintain transportation relavence.
    Remove Shippingblock assigned to delivery type.
    try it and let us know.

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • How to copy Header text in Allocation table to vendor PO

    Hi,
    I had created the Allocation table and able to generate the vendor PO thru WA08.
    However, I am not able to copy the header text & note over to the PO as special instruction text.
    I tried to find if it is possible to custom in SPRO Purchasing text but I am not sure where to add it in.
    Can someone tell me how to set this up?
    Thanks a million.

    how is your problem fixed,please share with me!
    Thanks in advance .
    Deyi.

  • How to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header 20 for detail and 30 for footer

    how to define a schema for fixed length consisting of multiple records of different types having header detail and footer at positions 22 and 23 namely having 10 for header ,20 for detail and 30 for footer.
    here is the sample file
    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\            2013/09/25 01:19:08 BILLEND     
    DDWTYBILL13092502572 2000000212PRIVATE             PRIVATE             STY5572142     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731543                                           Suspect TB ?CA, (L) EMPIEEM                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000312PRIVATE             PRIVATE             STY5572149     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731548                                           Empyema BPF                                                           Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.9                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000412PRIVATE             PRIVATE             STY5572351     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731584                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000512PRIVATE             PRIVATE             STY5572352     010700         INV                              12STYD000789                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNM    DIMPHANA,CN,CELESTE NERINA                                                                                                        09-JAN-1964                              TYG       A2        DR DU PREEZ                                                                                         5602181             63301345       TB731585                                           Suspect TB ?EMPIEEM, ?CA                                              Ward A2                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                          05-AUG-201305-AUG-201324-SEP-2013FEND    113.60
    DDWTYBILL13092502572 2000000612MAJOR               MAJOR               STY5577530     010700         INV                              12ZTYG000009                  02-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    ZOZI,S,SIYAMBONGA                                                                                                                 27-MAR-2010                              TYG       D3        DR MAHOMED                                                                                          5602181             113799662      TB731663                                           Lymphadenitis                                                         Ward D3                                           TYGERBERG HOSPITAL                                                                                  I88.9                                                       Z03.9                                                       H1 07-AUG-201307-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 2000000712MAJOR               MAJOR               STY5577537     010700         INV                              12ZTYG000009                  06-AUG-20130000010472      STY       STY       1100611006MGIT                91  NNS    DLAMINI,N,NTLANTLA                                                                                                                09-OCT-1976                              TYG       F1        DR WZESE                                                                                            5602181             135524676      TB731666                                           Suspect TB                                                            Ward F1                                           TYGERBERG HOSPITAL                                                                                  Z03.0                                                       Z03.9                                                       H1 07-AUG-201314-AUG-201324-SEP-2013MEND     58.52
    DDWTYBILL13092502572 30003034120000003032END

    You can create an nXSD using Native Format Builder and use lookAhead attribute to read values at specific position and use that as the choice. You can find an example here
    http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994/nfb.htm#BGBBAJFD

  • Setup table not getting filled-shipment header

    hi
    i am trying to fill the set up table for shipment header data for particular shipment number (TKNUM). as few shipment number missing, we are doing a full repair request.
    tcode : vtbw
    entered the shipment number. the setup table is still empty. when debugged, the values are not getting passed.
    can anyone shed some light about this.
    regards
    neo

    The 2LIS_08TRTK (shipment header), 2LIS_08TRTS (shipment stages) and 2LIS_08TRTLP (delivery items on shipment stages) DataSources only extract shipments where the shipment completion status is set.
    Please see [OSS Note 573470 - Shipment data is not written into BW|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=573470]

Maybe you are looking for