Freight Payment

Hi Folks,
I have a small problem in paying freight to vendor.
1. The freight amount is not known at the time of PO.
2. When the material comes into the company, then i know the freight amount and the freight is paid to the vendor (Ofcourse transporter is maintained in vendor master).
3. I will not be able to do invoice verification because, the transporter will not wait upto i make invoice verification.
4. Now if i wont make invoice verification, i cant post the freight cost to the material(ie., it cant be inventorised).
How to inventorise the freight cost and also without MIRO?
Is there any other way where in i can inventorise this cost?
Please suggest me...
Regards,
Puneeth

Hi Manish,
Thanks for the reply,
But the problem comes when the amount in PO for freight is greater than the actual payment.
At the time of GR,
Inventory Dr:  Matl value+freight
GR/IR clearing Cr: Matl cost
Freight Clearing Cr: Freight charge
At the time of IR
GR/IR Dr: Matl cost
Vendor ac Cr: Matl cost
Freight clearing  Dr: Freight
Freight vendor Cr: Freight
if the value i giv in PO is greater than the actual what will happen? the difference will remain in freight clearing acc? will there be nay consequences?
And one more doubt i have is how will the service tax for this freight is calculated?
Really thanks for the reply
Puneeth

Similar Messages

  • Freight payment invoice verification two times

    Hi
      During freight payment with invoice verification for condition type FRE1(Fixed amount)
      The attributes of the condition type is fixed amount
      For the given purchase order
      QTY-10NOS,freight value-Rs100)
      Invoice verification done with value 100nos then again system allows to do invoice verfication for the same condtion type.How to block the condtion type to prevent invoice verification again.
    Both the time i have used the transaction- Invoice only.
    Regards
    Umapathy.M

    Hi first of all at the vendor master the field 'Chk double inv.' should be checked then system checks whether its duplicate or not according to the following items
    Company code (BUKRS)
    Vendor number (LIFNR)
    Currency (WAERS)
    Reference number (XBLNR)
    Amount in document currency (WRBTR)
    Document date (BLDAT)
    Duplicate Invoice Check customization should be done also via
    Logistics Invoice Verification > Incoming Invoice > Set Check for Duplicate Invoices
    check the following link is helpful for your case:
    http://help.sap.com/saphelp_47x200/helpdata/en/ce/4f3e39ea3aee02e10000000a114084/frameset.htm
    Regards
    Hope it helps
    Volkan

  • Inbound Freight payment

    Hi,
    Will anyone guide me for  Steps to configure inbound freight payment functionality pl.

    Chandra,
    Thank you for your reply.  I'm aware of the freight condition approach you suggest & the ability to define the carrier in the freight condition.
    We explored this functionality in the past.  The problem/limitations we've experienced were as follows:
    1. Essentially you have to know your freight cost & the carrier by PO line item at the time the PO is created.  Both of these variables we typically cannot predict in our environment.
    2. We have a lot of situations where the PO is considered a u201Cblanketu201D where it will remain open for a month up to a year.  Knowing the entire freight cost for these PO's once they are created is impossible to predict so to support the freight conditions we would have to change our business process which would be a big effort for our organization.
    3. Our suppliers ship product based on multiple PO's / PO lines, again it is impossible to predict what the per unit freight cost would be at the time a PO is generated.
    These factors are what led us to the IB delivery solution which handles each one of these scenarios quite well provided you have good data when the IB delivery is created.
    Regarding your second post:  Thanks!  This information is helpful.
    Sincerely,
    Rich Wortmann

  • For Container Freight payment can be downloaded through a standard query.

    for Container Freight payment can be downloaded through a standard query.
    Regards
    Mahesh

    hello, friend.
    are you using LE-Transportation?  if yes, there are some helpful t-codes such as VI11 and VI12.  you may also use t-code SQVI for queries, but you would have to know what tables to look for.
    hope this helped even if a bit.  reward, even a little if yes.
    thanks and regards.
    jty

  • Data required by Export Accounts for Container Freight payment can be downl

    Dear Gurus,
    Data required by Export Accounts for Container Freight payment can be downloaded through a standard query.
    Pls help its urgent.
    Regards
    Mahesh K singh

    hello, friend.
    are you using LE-Transportation?  if yes, there are some helpful t-codes such as VI11 and VI12.  you may also use t-code SQVI for queries, but you would have to know what tables to look for.
    hope this helped even if a bit.  reward, even a little if yes.
    thanks and regards.
    jty

  • Incoterms-freight, payment terms

    Hii SAPians,
    1) There are   payment term which have been undestood between the comany and the customers. lets say a payment term (within 15 days 3% discount), how will this 3% discount will be provided to the customer , do we have an separate condition type for it.If so will each payment term will have an separate condition type. How is the condition record determined for such above situation.
    2) What is the difference between Account determination KOFI/KOFK.
    3) How is the Freight charges being determined in pricing.
        I know its based on Incoterms assigned to the customer master.
       I just want to know will the amount determined based on the weight of the material. What is the process flow in the freight determination.
    pls help
    monti

    hi,
    the payment terms are adjust while doing account receivables.
    KOFI is account determination condition type used without controlling.
    And
    KOFK is account determination condition type used with controlling.
    Freights are generally determined at the time of delivery. yes incoterms are used for determining freights because they talk about the liability from the company side regarding shipment of goods.
    like for eg goods going from place A to C via B.
    Now company says FOB --- B - means the responsibility for the company ends at B. From its the customers responsibility to take the goods. So the charges are calculated accordingly for various incoterms.
    Hoppe it helps. reward if helpful.
    Thanks,
    Sadhu Kishore

  • Freight Payment Booking in INR in MIRO for Import Process

    Hi Friends
    To Make payment to local vendors (e.g. transportation vendor) in import pricing i am maintaining this freight condition in INR only.
    Secondly while booking liability in MIRO for planned delivery cost i tried to maintain currency as INR to sort out this issue(As Per Guidance of Mr. Pankaj) other wise system picks EUR as currecy which is of material vendor by default.but this field is coming in display mode only
    Requesting you any other way out to sort out this problem
    Regards
    Vivek

    Hi
    Enter the Currency INR in the Basic Details tab before entering the Purchase order
    as reference.
    The field is present just beside to the amount field.
    This filed will not be in display mode, this filed becomes to dipsly once you enter the PO reference.
    Thanks & Regards
    Kishore

  • Advance freight payment during recipt

    Hi !
    I have a very urgent problem in Purchasing. I need to pay the part of the freight to the transporter as advance or full amount of the freight for a recipt of material. Later on when the transporter will send the final bill i wll make the rest of the payment after adjusting the advance earlier paid.
    Let me describe the scenario better with an example:
    Truck A shifted material of 10 ton to my plant and frieght for the shipment would be around 1000. But i paid 500 as advance to the transporter.
    Truck B shifted material of 20 ton to my plant and frieght for the shipment would be around 2000. But i paid 500 as advance to the transporter.
    Then i received the material into my inventory (Total 30 Ton in two recipts).
    Later on Transporter raised a bill of 3000 to me. I paid rest 2000 after adjusting the earlier advance paid (Rs 1000) to the transporter.
    How i can make this transaction in Purchasing.
    Regards

    Hi,
    I have noticed similar situation in a mfg company, let me give a brief idea on the same to see if it helps:
    1.) They try to detach the freight piece from the actual PO.
    2.) They raise new POs for the freight alone, using PDOI programs.
    3.) These are kicked off by the receipt/partial receipt, a custom conc program looks at the original PO (against which the goods is received), it copies the supplier etc.. on to a new PO.
    4.) Amount is derived carefully everytime. Status of the PO can be calculated/controlled.
    5.) Appropriate line types are used for Freight.
    In your scenario, this might result in 2 invoices for one PO.
    For 1000 => you do a 500 in invoice-1 then 500 in invoice-2 both against the new PO (original PO is safely approved and closed/finally closed)
    You might need to look at the feasibility at greater depths.
    All the best !!
    Thanks
    Vinod

  • Rate contract for the freight payment

    Hi,
    I have a scenario. The freight vendor is different than the PO vendor. The vendor is specified for the freight condition in the PO. the rate contract is created for the freight vendor in the system. How do I make the Invoice,
    I have the service contract also as well as the vendor in the PO also. In case I do the payment against the service rate contract the price will not get loaded to the material if I am not wrong. Client wants to load the price on the material while the payment is against service entry sheet.
    Please help

    Hi Neesha,
    The problem is not the posting. The problem is that the rate contract is different and the general PO is diffrent.
    I will explain:
    material A is to be transported from dock to factory,  I raise the PO to vendor V1. The vendor V2 is the transported and I pay the freight to that vendor. There is a fix rate contract against this vendor V2. Now when I create the PO I give the V2 as the freight vendor. I do the GR against the service PO that I released to the freight vendor so that he will transfer the goods from the dock to the go-down. Now tell me I need to book invoice against the PO for V1 or the service entry sheet? invoice against the PO V1 will load the freight to the material while the invoice against the service entry sheet will go to the separate account. In case I do the invoice against the PO I loose the control of the rate contract!

  • Inbound Logistics:  What are the best options to capture freight costs?

    We attempted to implement a freight payables solution which was built on Inbound Deliveries> Inbound Shipments> Inbound Shipment Cost Documents.  The PO line items were flagged with a conf.control key which made the above inbound documents relevant.
    Very long story short, we had to remove this functionality because of two major issues:
    1.     The Inbound Deliveries were created with incorrect quantities some of the time.  When the Inbound Deliveries were created with incorrect quantity those errors caused major problems (e.g., over accrual of freight cost to the tune of several millions of dollars!!!).
    2.     Also, when the Inbound Deliveries were created with incorrect quantity MRP went berserk (e.g., when the IB delivery has the wrong quantity that shows up in MD04 and the planners are left scratching their heads wondering why the supplier is shipping so much or so little).
    I wonu2019t get into the details of how the Inbound Deliveries were being created but suffice to say they were manually entered by the supplier without the benefit of an EDI transaction- it was more of a manual entry- hence the data accuracy problem.
    The point of this post is to gain feedback from other customers who have implemented an inbound freight payables solution with success & understand what processes were used to make your project successful.
    For example, if I had a u201Cwish listu201D Iu2019d request the following:
    1.     The IB delivery document type Iu2019d like to use should be non-MRP relevant.  This will eliminate the confusion that occurred when planners run MD04 and see all of the shipment notifications.  Also, if the MIGO_GR transaction is used to receive the POu2019s, they will see the quantities on the PO, not on the IB delivery.  This would be good for us from a business continuity stand point.  However, if the IB delivery is not MRP relevant, than your GR does not accrue the freight cost defined on the SCD which short circuits the entire point of having these documents.
    u2022     Q:  Have you had any success implementing an IB freight solution with minimum impact to planning / inventory / operations?
    2.     As mentioned above, the data accuracy of the IB delivery was problematic.  Because of this issue we have changed our thinking so that we would require a EDI ASN to be sent from our supplier to our SAP system.  Using EDI we feel that greater accuracy would be obtained since the quantities defined would map to what is being picked or at least aligned with what we would expect to be invoiced for.  The problem is we donu2019t know how EDI capable our suppliers are.
    u2022     Q:  Has anyone had success implementing this with your suppliers on a large scale?
    3.     Are there other inbound freight payment solutions that Iu2019m not thinking about u2013 custom or other that you have implemented & can share some of the specifics about?  Iu2019d enjoy hearing about them.  Since we are re-thinking what we implemented Iu2019m open to any suggestions. 
    Thanks so much for your time!
    Rich Wortmann

    Chandra,
    Thank you for your reply.  I'm aware of the freight condition approach you suggest & the ability to define the carrier in the freight condition.
    We explored this functionality in the past.  The problem/limitations we've experienced were as follows:
    1. Essentially you have to know your freight cost & the carrier by PO line item at the time the PO is created.  Both of these variables we typically cannot predict in our environment.
    2. We have a lot of situations where the PO is considered a u201Cblanketu201D where it will remain open for a month up to a year.  Knowing the entire freight cost for these PO's once they are created is impossible to predict so to support the freight conditions we would have to change our business process which would be a big effort for our organization.
    3. Our suppliers ship product based on multiple PO's / PO lines, again it is impossible to predict what the per unit freight cost would be at the time a PO is generated.
    These factors are what led us to the IB delivery solution which handles each one of these scenarios quite well provided you have good data when the IB delivery is created.
    Regarding your second post:  Thanks!  This information is helpful.
    Sincerely,
    Rich Wortmann

  • Control of Incoterms in creation of Shipment Costs

    Dear All,
    We calculate shipment costs (Through Transportation module in SD-Freight payment-Outwards) on calculation base A (Delivery) or B
    (Delivery item) and do not want to calculate deliveries that have certain
    Incoterms (for example, TOP-To Pay, where Customer makes payment to Transporter).
    By default, the system always creates a subitem in the shipment cost
    document for the corresponding calculation base for every delivery item or for every delivery involved.
    We want to have Control over certain Incoterms where we don't pay to the customers. We want to restrict the users not to calculate Shipment Costs in TOP-To pay cases. Kindly help if any Userexits available for this scenario to handle.   
    Regards
    Subrat

    Hi,
    I think we have a similar requirement. For FCA transports is the transport cost zero. We have created a seperate condition in the cost procedure as a condition class A ( discount or surcharge ) in T_06. This has an access sequence assigned which uses a 9xx condition table (T_03) with fields Service agent f.stage ( TDLNR ) and
    Incoterms     ( INCO1 ). This enables us to maintain condition records in TK12. So FCA is maintained with 100 % deduction and thus no costs.

  • ALV output converted into PDF format and send that PDF to user through mail

    Hi Experts,
    I have report earlier its output was in alv grid.
    Now i want that ALV output converted into PDF format.And that PDF output send to user through mail.
    Can u please tell how to do?
    My code is here(output is displaying in ALV grid).
    INCLUDE <icon>.
    TYPE-POOLS: slis, kkblo.
    TABLES : zmsd_freight_hdr, zmsd_freight_det, zmsd_blinfo, zmsd_diheader.
    TABLES : lfa1.
    DATA : t_hdr   LIKE   zmsd_freight_hdr   OCCURS 0 WITH HEADER LINE,
           T_DET   LIKE   ZMSD_FREIGHT_DET   OCCURS 0 WITH HEADER LINE,
           t_bl    LIKE   zmsd_blinfo        OCCURS 0 WITH HEADER LINE,
           t_di    LIKE   zmsd_diheader      OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_det OCCURS 0.
            INCLUDE STRUCTURE zmsd_freight_det.
    DATA    type(30).
    DATA: END OF t_det.
    DATA: v_target2(30),
          v_zsammg LIKE t_det-zsammg,
          v_gsttotal LIKE t_det-zamount.
    DATA : BEGIN OF t_data OCCURS 0,
             zsammg       LIKE  zmsd_freight_hdr-zsammg,
             zdidbl       LIKE  zmsd_freight_hdr-zdidbl,
             zvkorg       LIKE  zmsd_freight_hdr-zvkorg,
             zinvno       LIKE  zmsd_freight_hdr-zinvno,
             zttlamt      LIKE  zmsd_freight_hdr-zttlamt,
             zstatus      LIKE  zmsd_freight_hdr-zstatus,
             ztype        LIKE  zmsd_freight_hdr-ztype,
             zconfirm     LIKE  zmsd_freight_hdr-zconfirm,
             zconfirmdate LIKE  zmsd_freight_hdr-zconfirmdate,
             erdat        LIKE  zmsd_freight_hdr-erdat,
             ernam        LIKE  zmsd_freight_hdr-ernam,
             erzet        LIKE  zmsd_freight_hdr-erzet,
             aedat(10),
             aenam        LIKE  zmsd_freight_hdr-aenam,
             aezet        LIKE  zmsd_freight_hdr-aezet,
             zline        LIKE  zmsd_freight_det-zline,
             zfptype      LIKE  zmsd_freight_det-zfptype,
             zchrcode     LIKE  zmsd_freight_det-zchrcode,
             zcurcode     LIKE  zmsd_freight_det-zcurcode,
             zqty         LIKE  zmsd_freight_det-zqty,
             zuom         LIKE  zmsd_freight_det-zuom,
             zrate        LIKE  zmsd_freight_det-zrate,
             zamount      LIKE  zmsd_freight_det-zamount,
             zexrate      LIKE  zmsd_freight_det-zexrate,
           zccode       LIKE  zmsd_blinfo-zccode,      "MADK991565
             zccode       like  ZMSD_FREIGHT_HDR-zfcode, "MADK991565
             zbldate(10),
             zbl          LIKE  zmsd_blinfo-zbl,
             type(3),
             waerk        LIKE  zmsd_freight_det-zcurcode,
             zamountl     LIKE  zmsd_freight_det-zamount,
           END OF t_data.
    DATA : w_layout      TYPE   slis_layout_alv,
           w_catalog     TYPE   slis_fieldcat_alv,
           t_catalog     TYPE   slis_t_fieldcat_alv,
           w_sort        TYPE   slis_sortinfo_alv,
           t_sort        TYPE   slis_t_sortinfo_alv.
    DATA   V_ZINVNO    like   T_HDR-ZINVNO.                   "MADK991565
    DATA : v_count  TYPE  i.
    SELECTION-SCREEN BEGIN OF BLOCK a0 WITH FRAME TITLE text-001.
    PARAMETERS     :  p_zvkorg LIKE zmsd_freight_hdr-zvkorg  OBLIGATORY .
    SELECT-OPTIONS :  s_zdidbl FOR  zmsd_freight_hdr-zdidbl             ,
                      s_zccode FOR  lfa1-lifnr                          ,
                      s_status FOR  zmsd_freight_hdr-zstatus            ,
                      s_ztype  FOR  zmsd_freight_hdr-ztype              ,
                      s_erdat  FOR  zmsd_freight_hdr-erdat              ,
                      s_ernam  FOR  zmsd_freight_hdr-ernam              ,
                      s_zconfd FOR  zmsd_freight_hdr-zconfirmdate       .
    PARAMETERS     :  p_zconf  AS   CHECKBOX                            .
    SELECTION-SCREEN END OF BLOCK a0.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-002.
    PARAMETERS     :  p_hdr    RADIOBUTTON GROUP rad DEFAULT 'X'        ,
                      p_det    RADIOBUTTON GROUP rad                    .
    SELECTION-SCREEN END OF BLOCK a1.
    INITIALIZATION.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM process.
      PERFORM display.
    END-OF-SELECTION.
      PERFORM fm_get_num_pages.
    AT USER-COMMAND.
    AT LINE-SELECTION.
    TOP-OF-PAGE.
      PERFORM fm_top_of_page USING '7010' sy-title space.
    FORM get_data.
      SELECT   *
        FROM   zmsd_freight_hdr
        INTO   TABLE t_hdr
       WHERE   zvkorg        EQ  p_zvkorg
         AND   zdidbl        IN  s_zdidbl
         AND   zstatus       IN  s_status
         AND   ztype         IN  s_ztype
         AND   erdat         IN  s_erdat
         AND   ernam         IN  s_ernam
         AND   zconfirmdate  IN  s_zconfd
         AND   ZFCODE        IN  S_ZCCODE.                      "MADK991565
      IF p_zconf = 'X'.
        DELETE t_hdr WHERE zconfirm NE 'C'.
      ENDIF.
      CHECK NOT t_hdr[] IS INITIAL.
      SELECT   *
        FROM   zmsd_blinfo
        INTO   TABLE t_bl
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_bl BY zsammg.
      SELECT   *
        FROM   zmsd_diheader
        INTO   TABLE t_di
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_di BY zsammg.
    IF P_DET = 'X'. "MADK933361
      SELECT   *
        FROM   zmsd_freight_det
        INTO   TABLE t_det
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg  =  t_hdr-zsammg
       AND ZINVNO =  T_HDR-ZINVNO .                           "MADK991565
    SORT t_det BY zsammg zline.                            "MADK991565
       SORT T_DET BY ZSAMMG ZINVNO ZLINE.                     "MADK991565
    ENDIF. "MADK933361
    ENDFORM.
    FORM process.
      REFRESH t_data.
      CLEAR v_gsttotal.                                         "MADK933361
      LOOP AT t_hdr.
    Start of MADK933361
        CLEAR: v_target2.
        v_zsammg = t_hdr-zsammg.
        V_ZINVNO = T_HDR-ZINVNO.                                "MADK991565
       AT NEW zsammg.                                         "MADK991565
         AT NEW ZINVNO.                                         "MADK991565
          PERFORM get_gst_value.
        ENDAT.
    End of MADK933361
        PERFORM move_header.
        CHECK t_data-zccode IN s_zccode.
        IF p_det = 'X'.
    CSF Project Changes Starts   DEV34    MADK985782
        LOOP AT T_DET WHERE ZSAMMG = T_HDR-ZSAMMG..
          LOOP AT t_det WHERE zsammg = t_hdr-zsammg AND
                              zinvno = t_hdr-zinvno.
    CSF Project Changes Ends     DEV34    MADK985782
            PERFORM move_header.
            CHECK t_data-zccode IN s_zccode.
            MOVE-CORRESPONDING t_det TO t_data.
            t_data-zamountl = t_data-zamount * t_data-zexrate.
            APPEND t_data.
            CLEAR t_data.
          ENDLOOP.
        ELSE.
          APPEND t_data.
          CLEAR t_data.
        ENDIF.
        AT END OF zsammg.
          CLEAR v_gsttotal.
        ENDAT.
    *Start of changes for  IS090901289-PIA MADK991565
        AT END OF ZINVNO.
          CLEAR V_GSTTOTAL.
        ENDAT.
    *End of changes for  IS090901289-PIA MADK991565
      ENDLOOP.
    ENDFORM.
    FORM move_header.
      MOVE-CORRESPONDING t_hdr TO t_data.
      t_data-zttlamt = t_data-zttlamt + v_gsttotal.             "MADK933361
      t_data-waerk = 'SGD'.
      IF NOT t_hdr-aedat IS INITIAL.
        WRITE: t_hdr-aedat TO t_data-aedat.
      ELSE.
        CLEAR : t_data-aedat.
      ENDIF.
      READ TABLE t_bl WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
      IF sy-subrc EQ 0.
      t_data-zccode  = t_bl-zccode.   "MADK991565
        T_DATA-ZCCODE = T_HDR-ZFCODE.   "MADK991565     
        IF NOT t_bl-zbldate IS INITIAL.
          WRITE: t_bl-zbldate TO t_data-zbldate.
        ENDIF.
        t_data-zbl     = t_bl-zbl.
        t_data-type    = 'DBL'.
      ELSE.
        READ TABLE t_di WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
        IF sy-subrc EQ 0.
        t_data-zccode  = t_di-zdiforcode.     "MADK991565
          T_DATA-ZCCODE = T_HDR-ZFCODE.         "MADK991565
          t_data-type    = 'DI'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM display.
      IF t_data[] IS INITIAL.
        MESSAGE s398(00) WITH 'No Data Selected'.
        EXIT.
      ENDIF.
      DATA : l_repid LIKE sy-repid.
      l_repid = sy-repid.
      REFRESH t_catalog.
      CLEAR   t_catalog.
      w_layout-cell_merge = 'X'.
      PERFORM map_fields.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = l_repid
                i_callback_user_command = 'ALV_USER_COMMAND'
                is_layout               = w_layout
                it_fieldcat             = t_catalog[]
                i_grid_title            = sy-title
                i_save                  = 'A'
                it_sort                 = t_sort[]
           TABLES
                t_outtab                = t_data
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.
    FORM map_fields.
    Sort Order
      CLEAR v_count.
      PERFORM sf USING 'ZDIDBL'   'X'  'X'.
    Fields to be displayed
      CLEAR v_count.
      IF p_hdr = 'X'.
        PERFORM af USING :
       DESCRIPTION       FIELD        LEN   RTABLE             RFIELD
        'DI/DBL         ' 'ZDIDBL'     '14' '                ' '        ',
        'Type           ' 'TYPE'       '04' '                ' '        ',
        'Forwarder Code ' 'ZCCODE'     '14' '                ' '        ',
        'BL Number      ' 'ZBL'        '14' '                ' '        ',
        'BL Date        ' 'ZBLDATE'    '10' '                ' '        ',
        'Invoice Number ' 'ZINVNO'     '15' '                ' '        ',
        'Extraction     ' 'ZSTATUS'    '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type   ' 'ZTYPE'      '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation   ' 'ZCONFIRM'   '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date   ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount   ' 'ZTTLAMT'    '18' '                ' '        ',
        'Created On     ' 'ERDAT'      '10' '                ' '        ',
        'Created By     ' 'ERNAM'      '10' '                ' '        ',
        'Changed On     ' 'AEDAT'      '10' '                ' '        ',
        'Changed By     ' 'AENAM'      '10' '                ' '        '.
      ELSE.
        PERFORM af USING :
       DESCRIPTION         FIELD     LEN   RTABLE             RFIELD
        'DI/DBL           ' 'ZDIDBL'   '14' '                ' '        ',
        'Type             ' 'TYPE'     '04' '                ' '        ',
        'Forwarder Code   ' 'ZCCODE'   '14' '                ' '        ',
        'BL Number        ' 'ZBL'      '14' '                ' '        ',
        'BL Date          ' 'ZBLDATE'  '10' '                ' '        ',
        'Invoice Number   ' 'ZINVNO'   '15' '                ' '        ',
        'Extraction       ' 'ZSTATUS'  '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type     ' 'ZTYPE'    '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation     ' 'ZCONFIRM' '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date     ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount     ' 'ZTTLAMT'  '18' '                ' '        ',
        'Freight Payment  ' 'ZFPTYPE'  '14' '                ' '        ',
        'Charge Code      ' 'ZCHRCODE' '10' '                ' '        ',
        'Currency         ' 'ZCURCODE' '08' '                ' '        ',
        'Quantity         ' 'ZQTY'     '13' '                ' '        ',
        'UoM              ' 'ZUOM'     '04' '                ' '        ',
        'Rate             ' 'ZRATE'    '15' '                ' '        ',
        'Amt(Foreign Curr)' 'ZAMOUNT'  '16' '                ' '        ',
        'Exchange Rate    ' 'ZEXRATE'  '13' '                ' '        ',
        'Amt(Local Curr)  ' 'ZAMOUNTL' '16' '                ' '        ',
        'Created On       ' 'ERDAT'    '10' '                ' '        ',
        'Created By       ' 'ERNAM'    '10' '                ' '        ',
        'Changed On       ' 'AEDAT'    '10' '                ' '        ',
        'Changed By       ' 'AENAM'    '10' '                ' '        '.
      ENDIF.
    ENDFORM.
    FORM af USING text
                  field
                  len
                  table
                  reffield.
      v_count = v_count + 1.
      w_catalog-col_pos       = v_count.
      w_catalog-fieldname     = field.
      w_catalog-ref_tabname   = table.
      w_catalog-ref_fieldname = reffield.
      w_catalog-seltext_s     = text.
      w_catalog-seltext_m     = text.
      w_catalog-seltext_l     = text.
      w_catalog-outputlen     = len.
      IF field = 'ZTTLAMT' OR field = 'ZAMOUNTL'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'WAERK'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
    IF FIELD = 'ZRATE' OR FIELD = 'ZAMOUNT'.
      IF field = 'ZAMOUNT'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'ZCURCODE'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
      IF field = 'ZQTY' OR field = 'ZRATE'.
        w_catalog-no_zero     = 'X'.
        w_catalog-datatype  =  'DEC'.
      ENDIF.
      APPEND w_catalog TO t_catalog.
      CLEAR  w_catalog.
    ENDFORM.
    FORM sf    USING   fieldname  sortup  group.
      v_count = v_count + 1.
      CLEAR w_sort.
      w_sort-fieldname = fieldname.
      w_sort-spos      = v_count.
      w_sort-up        = sortup.
      w_sort-group     = group.
      APPEND w_sort TO t_sort.
    ENDFORM.
    FORM alv_user_command USING  in_ucomm    LIKE sy-ucomm
                                 in_selfield TYPE slis_selfield.
      DATA: lfs_data LIKE t_data.
      IF in_ucomm = '&IC1'.
        READ TABLE t_data INDEX in_selfield-tabindex INTO lfs_data.
        CHECK NOT lfs_data-zdidbl IS INITIAL.
        IF lfs_data-type = 'DBL'.
          DATA: l_zdbl LIKE zmsd_diheader-zdinum.
          l_zdbl = in_selfield-value.
          EXPORT l_zdbl TO MEMORY ID 'VBL'.
          CALL TRANSACTION 'ZMSD_BL01'.
        ENDIF.
        IF lfs_data-type = 'DI'.
          DATA: v_dinum LIKE zmsd_diheader-zdinum.
          v_dinum = in_selfield-value.
          EXPORT v_dinum TO MEMORY ID 'VDI'.
          CALL TRANSACTION 'ZMSD_DI01'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM get_gst_value.
      LOOP AT t_det WHERE zsammg = v_zsammg
         AND ZINVNO = V_ZINVNO.                              "MADK991565
        CHECK t_data-zccode IN s_zccode.
        t_det-zamount  = t_det-zamount * t_det-zexrate.
        SELECT SINGLE  y0mmtarget2
                INTO   v_target2
                FROM   y0mmipstranslate
                WHERE  y0mmdatatype = '70' AND
                       y0mmsource = t_det-zchrcode.
        SELECT SINGLE y0mmtarget1
               INTO   t_det-type
               FROM   y0mmipstranslate
               WHERE  y0mmdatatype = '76' AND
                      y0mmsource = v_target2.
        IF t_det-type NE '3Z'.
          v_gsttotal    = v_gsttotal +
                               ( t_det-zamount * 5 / 100 ).
        ENDIF.
      ENDLOOP.
    Regards,
    Raj.

    Hello,
    Following is the procedure to convert alv output to spool and then it to PDF Format.
    After we display the ALV, we can check whether it is running in the background using system field u2018sy-batchu2018. Then,we call an function module named u2018GET_JOB_RUNTIME_INFOu2019 to get the current job information. Then go to spool request table tbtcp to get the spool id.
    Get current job details
      CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                               AND jobcount = gd_jobcount
                               AND stepcount = gd_stepcount
                               AND listident <> u20180000000000u2032
                               ORDER BY   jobname
                                                   jobcount
                                                   stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
    Finally, we can call function module u2018CONVERT_ABAPSPOOLJOB_2_PDFu2018 to convert spool reqeust(which is stored in OTF format) to PDF format. Then we can call either function module u2018SO_DOCUMENT_SEND_API1u2032 or SAP BCS (Business Communication Service) to send the pdf as an email attachment.
    CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount = gd_bytecount
           TABLES
                pdf = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
    Regards,
    Sayali
    Edited by: Sayali Paradkar on Apr 20, 2010 12:51 PM

  • Two tax codes in MIRO

    Dear All,
    We are having a scenario in which we make freight payment to vendor for import purchase.  But while making freight payment we have 3 different components say A, B, C, out of the three the vendor charges service tax on two A and B, but not on C.
    While making invoice in MIRO i have given V0 tax code at header and for condition C at item level. And accordingly maintained tax code S1 at line item level for A and B. But still the system does not calculate tax for the line item A and B, gives error as tax code S1 does not exist in TAXINN.
    Have maintained all the necessary tax conditions in FV11.
    Request to kindly do let us know is there any other way we can execute the following scenario or where have we left out.
    regards,
    mahesh.

    hi
    try using single tax code S1
    if still error is comming then check following
    u have given proper condition in FV11
    now check ur tax code
    in which for that condition check the transaction key and for this transaction key check the gl acct in OB40
    or in ftxp select the transaction key and click on g/l acct u should get the gl acct for that key here
    if it is not there assign it in OB40
    u will find many threads for this "tax code doesnot exist in taxinn"
    hope it help
    regards
    kunal

  • Edit vendor in MIRO

    Hi,
    i kindly request you all for expert opinion on this. At the time of MIRO for the same PO v have two vendors. one vendor for material and one for freight. is it possible to enter first vendor for material and second vendor for freight in one same MIRO.
    in short so here is it possible to enter two vendors in one MIRO document?? here users are creating two MIRO documents one vendor ( material payment ) and second MIRO document for second Vendor ( freight payment ).
    please confirm..
    Thanks a lot
    H Shah

    hi
    not possible to have two vendors  in same miro
    but u have to  make two invoices for two vendor
    create a po for the main vendor
    then give a freight amount
    select the freight condition in condition tab in item level
    then press  the details button below it (magnifier button )
    here u can change the vendor for freight
    just change it to ur freight vendor
    then inmiro u can select the goods item view for mainitem
    and planned del cost view for the freight
    u will get two invoices for this
    hp[e it clears
    regards
    kunal
    award if helpful
    Edited by: kunal ingale on Sep 17, 2008 11:16 AM

  • Migo/miro

    Dear All,
                 i purchase goods from a vendor, he hires the transport (truck) and sends goods  to us.
    at the time of MIGO, i have 2 delivery notes- one from the vendor who has supplied the goods and the other from the freight carrier.
    i want to capture both against each other in MIGO how this can be achieved?
    the reason is that during MIRO, i can select individual delivery note and clear there invoice separately.
    as the freight payment is made immediately at the time of goods receipt and purchase department is sitting at other location, the purchase department doesnot know which truck on which goods have come belong to which purchase order.
    thanks and regards

    Hi Kavita,
    This is an issue faced by all when the transporter is not known in advance and the amount has to be paid to the transporter on receipt of material.
    At PO level a freight condition is given with the freight vendor ( if known ). However through " condition SPRO "  you can allow person making GR to define the transport vendor ( different than PO ( the transporter must have a vcode though). ( The value though cannot be entered at the GR Level.) This books the freight value on the inventory.
    The actual payment can then be done against the delivery cost with MIRO. Since value cannot be entered at the time of GR, there will be a difference between system proposed value and the actual freight value during GR. This will get loaded on inventory ( incase of MAP) or to diff account ( in case of std. price and depending on the customising setting.
    Crux is, at best you can give the control of transport vendor selection to person making GR but not value.
    I hope this helps.
    Regards,
    Rajeev

Maybe you are looking for

  • ArrayList help indexing a string

    Basically for this project, I need the user to input a sentence and then i have to print out the different words with their index. For example if the user inputs the following: Hello Hello Hello World World World Hello The program should output: Hell

  • How do I install Quartz Composer on my imac 7-27"??

    I am trying to get into Quartz Composer and I am very confsed since imac 7-27' doesn't come with a cd-instal anymore. I tried to do online, installing xcode 4 from the apple site, but at some point it says that i never used itunes store and ask me fo

  • Exchange 2013 & 2010 coexist problem. Authentication Credentials Prompt in Outlook

    Hello Forum We have two Exchange servers coexisting together. A new 2013 and a old 2010. Everything was setup with the help of the Exchange Deployment Assistant. I have had alot of trouble with Outlook 2013 Prompting for credentials on Exchange 2013

  • Java Security (JAAS)

    Hi! I created login module using java security (JAAS). In that 'logout' link is working properly at client side. but it is not working at server side. It is giving following exception at Browser. The requested URL could not be retrieved While trying

  • Does BI Beans903 support OLAP 9.2.0.2?

    Hi, Does BI Beans903 support OLAP9.2.0.2? Is BI Beans903 certified with OLAP9.2.0.2? Thank you. Seiji