Partial deliveries not allowed by Sold to party but allowed by ship to

I am shipping to a customer that allows partial deliveries but the sold to customer does not allow partial deliveries. As a result the sold to customer setting takes preference over the ship to.
Do you know of any way how the ship to customer setting will take preference over the sold to setting.

Hi Francois,
Its a standard SAP code that runs behind that gives preference to Sold to party than Ship to party. As the sold to party is the one who is placing an order........his preference is taken into consideration as it is upto him to accept partial deliveries or not.
More over i dont see any logic behind the disagreement on partial deliveries between a sold to party and ship to party.
In any normal business scenario, allowing partial deliveries depends on the business requirement of the sold to party and the kind the products they are dealing with.
Its only after a mutual consent between the sold to party and ship to party the decision is taken on partial deliveries.
REWARD POINTS IF HELPFUL
Regards
Sai

Similar Messages

  • Ship to party not assigned to sold to party still can i create a sale order

    Hi ,
    For example i have a ship to Party B who is not assigned to Sold to Party A . System is allowing me to create a sale order for the above mentioned "Sold to" and "ship to"  combination. What is the logic behind this ? is it a provided functionality or a bug?

    hi,
    for example if you are using account group 0001, when you create a customer it has the ability of picking up a SH, BP and PY along with SP. this is the underlying config at account group. Now for SP 100 the ship party can 100 or 200 ... or you can modify at the order level. Its not necessary that 200 has been identified at the customer master creation level itself. But partner function SH shoudl be availble in the account group with which the customer is created.
    regards
    sadhu kishore

  • Error Message while ship to party is not assigned to sold to party in VA01

    Hi All,
    In VA01, i need to throw an error message while giving a ship to party, which is not assigned to sold to party.
    I tried in  EXIT_SAPLV09A_001
                  EXIT_SAPLV09A_002
                  EXIT_SAPLV09A_003
                  EXIT_SAPLV09A_004
    above user exits, but i couldnt find the solution.
    if possible provide with the code.
    i appericiate the early response.
    Regards,
    Kumar.

    User exit MV45AFZB, form-routine USEREXIT_CHECK_VBAK.

  • Output--- automatic mail is not firing to sold to party.

    Dear Gurus,
        My client requirement is to sent mail to sold party when saving a sales order.
      For this I creted a new output type with following assignments
    In General data tab:acess sequence assigned and Access to conditions is checked
    In Default values tab: Dispatch time(send immadiately), transmission medium(External send), partner function(Sp
    ),Communication strategy(CS01) assigned.
    In Time tab: no information given
    In Storage system tab :Storage mode(print and archive),Document type(SDOORDER) info given.
    In Print tab: print parameters(sales org) assigned.
    In mail tab: nothing assigned.
    In sort order tab:nothing assigned
    In mail title and texts: En and DE languages are assigned.
    in processing routines: program and form routine is assgned.
    in partner functions: External send+ SP is maintained.
    and in condtion record maintained in VV11 tcode with details
    Partner function and in communication assigned printer and  selected check box print immadiately and release after out.
    But automatic mail is not firing when saving the sales order, but in change sales order in menu bar selected sales document and issue output to and selected print then mail is firing to the sold to party, pls tell me where i had done the mistake.
    Rgrads,
    kishore.
    Edited by: kishore gopala on Sep 13, 2008 1:42 PM

    Check whether you have maintained the email address in the customer master of Sold to party in the General Data>Address Tab> Under Communication Area??
    In the SCOT Transaction, check under SMTP (SMTP Mail Server)-->under INT (Internet) --> an  '*' asterisk has been maintained or not.
    Check the status of the email output in the Sales Order, is it showing with a green traffic light???
    If it is showing with a green traffic light you can manually see the status of the mail mesages in Transaction SOST.(by executing, by putting the Sender Id)
    If they have not gone you will be able to see them queued up there.
    Select the individual messages and press execute button. By doing this email outputs will be released.
    Hope this helps you.
    Caution: One word of caution is that SCOT is a very critical transaction. And if you are working on a live server, do not play with it as it controls the entire SAPconnect Administration Nodes.
    Hope this helps.
    Regards,
    Vivek

  • Ship to party not assigned to sold to party

    Hi friends,
    can u expain me ---
    In the partner function screen of a sold-to party
    master record for
    the current sales area, enter the ship-to party under
    the function
    'ship-to party' ein.
    means what extactly to do?
    regards,
    mahesh amale

    Hi,
    Let's take a simple example and try to understand.
    Say Company "A" is purchasing goods from you. In that case For you, Sold to Party is company "A".
    Let's say company "A" is asking you to ship goods to its branch in USA (Called company "B"). In that case company "B" becomes a Ship to Party of company "A"
    Same manner company "A" can ask you to ship goods to it's different places/ branches. (Say company "C" and "D") Those also become different Ship to Parties of company "A"
    Now in the customer master data (In transaction XD01) you have a option of specifying all ship to parties relevant to a Sold to Party.
    So what you can do is, go to XD02, select your sold to party, (Which is company "A) and go to its partner functions tab.
    Maintain "B", "C", "D" as different ship to parties for "A" under partner functions "SH"
    same manner you can do it for bill to party and payer as well.
    Now if you go to sales order creation (VA01) and put company "A" as sold to party and press Enter key, you'll get a pop up asking you to select relevant ship to party for this sales order out of (B, C, D). That will be for the sales order header level.
    Same manner you can select your ship to party as sales order line item as well. (Can keep different ship to parties for each line item)
    Since delivery is for a sales order line item, relevant ship to party will get copied from the line item.
    Hope this is clear to you now!
    Best regards,
    Anupa

  • Sold to party adress copy to ship to party

    HI,
    when customers place an order on the internet they get a choice to deliver to a different delivery address.
    When customers choose this option and type in a different address it does not ask them to enter in a tel number.
    Would it be possible in sap to copy the main tel number entered on the internet  into the ship to party tel number on all occasions?
    Internet orders have shipping condition E1
    Example delivery 807924096 which is an internet order, the sold to party tel number is 07923622906 the ship to party has a different address and no tel number, could the sold to party tel number be copied to ship to party tel number?how
    reagrds,
    Debesh

    Hi,
    You cannot do this directly. But using the user exits you can enable it.
    You can also save the telephone number provided by the user in some Z table and then take the values from the Z table and then enter them in the telephone number of the ship to party. May be this can also be scheduled as a job and can run twice a day, by which you can actually optimise the system performance.

  • Partial delivery not allowed for a STO

    Hi Gurus,
    We wanted to restrict the system so that it should not create deliveries with partial quantity for a STO. The delivery should be creaated if there is enough stock to fulfill the STO otherwise it should not create a delivery.
    I set the partial delivery indicator in customer master for teh receiving plant but still it is allowing partial delivery. ANy clue? Is there any otehr setting we need to do?
    Thanks for responce in advance.
    KHAN

    Hi
    I think that you have had your question answered so if you are happy with this can you please award points if you want to but mainly can you please mark your question as answered so that it is easier to navigate around the open questions in the forum as the number of pages are growing and growing and it takes too long to go through everything especially if a satisfactory answer has already been given and people like me who want to help will give up and so some people may not get any help.
    Thanks for this
    Frenchy.

  • Partial Deliveries not created for STO

    Hi All,
    There are 2 materials used in STO. One material X has stocks in the supplying plant and other material Y doesn't have stocks in supplying plant. When user try to create using VL10G or VL10B system is giving error that Mat. Y doesn't have a stock and hence delivery no. cannot be generated. When I try to delete or block Mat.Y in STO then delivery can be created for Mat.X. User wants to create partial delivery of the Mat. X which has stocks and different delivery for Mat. Y when its stocks will be available future. How and where else can we check settings for partial deliver for STO.
    I have checked settings in Ship-to party for partial delivery and it is relevant for partial delivery.
    Please let me know your thoughts on this. Thanks!!
    Mohit

    Dear Mohit,
                 In the VL10B transaction you click on Material tab there you enter Material 'X' then execute the transaction it will give the background delivery for the Material 'X' only.
    I hope it will help you
    Thanks,
    Murali.

  • I'm wanting to buy a Galaxy Note 2 from a third party, but they don't have the SIM card. Can I buy one from Verizon and they activate it for me?

    Wanting to know if I can buy a SIM card from verizon for a galaxy note 2 that I'm wanting to buy frI'm a third party

    You would get a new SIM card anyway. You wouldn't use their SIM. If you go to a Verizon corporate store the SIM cards are free,

  • Collective Billing with different Sold To Parties but same Ship To Party

    Hi,
    We have a requirement where the Client wants a Single Invoice for multiple deliveries, each having a separate Sold To Party but the same Ship To Party. Example:
    Delivery 1:
    Sold to Party:SP1
    Ship To Party:ShP
    Delivery 2:
    Sold to Party:SP2
    Ship To Party:ShP
    While trying Collective Billing through VF04, two invoices are generated instead of one. The Split analysis details:
    Split analy.
            Split due to different partner data
    PR Fld Name                    $000000001            $000000002
    SP Customer Number 1     SP1                        SP2
    SP Address                      XXXXXXXXXXX           YYYYYYYYY
    SP Customer Number 1     SP1                        SP2
    SP Address                      XXXXXXXXXXX           YYYYYYYYY
            Split due to different header data
    Fld Name                            $000000001           $000000002
    Sold-to party                        SP1                      SP2
    Reference Document Number1234567896          1234567897 
    Assignment number              1234567896          1234567897
    The checks on the Partner and Header data are Standard SAP checks (SAP note:11162).
    Is there any method wherein we can circumvent thiese checks and create a single invoice?
    These checks are not due to routine mentioned for VBRK/VBRP field in the Copy Control from Delivery to Billing.
    One possible approach could be to clear the variable ( having the Sold To Party number) in the routine assigned to VBRK/VBRP field and circumvent the standard check but then this value will no longer be available in the invoice. How can we create the invoice then?
    Is there any method to fulfill this requirement of create a Single Invoice for multiple deliveries, each having a separate Sold To Party but the same Ship To Party.
    Kindly give me your suggestions.
    Regards.

    Hi Jack,
    Thanks a lot for your response.
    Can you please explain in detail what all steps you carried out and what were the schemas involved?
    Was there any negative impact of your changes?
    Your reply here will be very much appreciated and rewarded!
    Regards.

  • Ship-to party is not assigned to a sold-to party

    Dear Experts
    I am creating Sales ORder VA01
    my customer is 42
    so i have enterd 42 in Ship to party and Sold to party
    but getting error is
    Ship-to party 42 is not assigned to a sold-to party
    could u please guide me
    Regards
    Amol

    Hi,
    Goto the T.Code "XD03".
    Enter the customer number as "42".
    Maintain the company code and sales area.Enter.
    Goto the sales area tab.Click on "Partner functions" tab.
    Check whether the ship-to-party is 42 or not.I think it is not 42,so that only,you are getting this error message.
    In sales order,enter the sold-to-party as "42".The ship-to-party will be auto determined from the customer master.After this you can change it to 42 if the following setting is maintained for your partner determination procedure.
    Goto the path:
    SPRO>Sales and Distribution>Basic Functions>Partner Determination>Set Up Partner Determination-->Set Up Partner Determination for Sales Document Header.
    Click on "Partner Determination Procedure Assignment".Identify the procedure assigned to your document type.
    Click on "Partner Determination Procedures".Select that procedure.
    Double click on "Partner Functions in Procedure".
    Ensure that for "SH" partner function,the field "Not modifiable" is not ticked.
    Save.
    Regards,
    Krishna.

  • One sold to party, multiple ship to, bill to and payers

    Hi all,
    My requirement is that one sold to party should have three ship to, two bill to, and one payer. In sap partner determination how we have to configure this, can we use single account group and also tell me step wise process. Also want to know that can we change partners at sales order level, if so what settings we have to do and how this can be done at order level
    Points assured for benificial answers.
    Sunanda.P

    Hello Sunanda,
    In VOPA transaction code, you create a partner determination procedure. Here you specify the partner functions to be used & also mark the mandatory partner functions.
    This partner determination procedure is then assigned to the account group. Basically the standard account group for "sold to party - 0001" has all partner functions "SP", "SH", "BP" & "PY". Your requirement demands separate partner functions for SP, SH, BP & PY.
    So you will have to create 4 different partner determination procedures in VOPA.
    ZSOL - SP
    ZSHI - SH
    ZBIL - BP
    ZPAY - PY
    Create similar acount groups ZSOL, ZSHI, ZBIL & ZPAY in transaction code OBD2 & do the appropriate field selection for them.
    Now assign the partner determination procedures to the account groups in VOPA.
    ZSOL = ZSOL
    ZSHI = ZSHI
    ZBIL = ZBIL
    ZPAY = ZPAY
    Also assign the individual partner functions to the account group as mentioned below:
    ZSOL = SP, SH, BP, PY
    ZSHI = SH
    ZBIL = BP
    ZPAY = PY
    For ZSOL we assigned all partner functions because, when you will create a sold to party customer, you also have to specify who will the ship to party, bill to party & payer customers for the sold to party.
    Now if you want you can assign the same number range to all account groups (assign a single person to create the customer master. So whenever a new customer is created, the partners will be created in line which will be very helpful)
    Assume the number range is "0000010000 to 0000099999"
    Create SP for 10000 = one sold to party
    Create SH for 10001 = ship to party 1
    Create SH for 10002 = ship to part 2
    Create SH for 10003 = ship to party 3
    Create BP for 10004 = bill to party 1
    Create BP for 10005 = bill to party 2
    Create PY for 10006 = one payer
    Go to XD02 - select the customer 10000 - go to sales area data - partner functions.
    Here in the "PF" column enter SH & in number enter 10001
    Here in the "PF" column enter SH & in number enter 10002
    Here in the "PF" column enter SH & in number enter 10003
    Here in the "PF" column enter BP & in number enter 10004
    Here in the "PF" column enter BP & in number enter 10005
    Here in the "PF" column enter PY & in number enter 10006
    So you have assigned the relevant partners to the sold to party.
    Now when you create a sales order, after entering the sold to party when you press enter, the system will display a pop up asking fro selecting the relevant ship to, bill to & payer customers for that sales order.
    For your second question - partners change in sales order:
    Go to transaction code VOPA - select sales document header - click on partner procedures - double click on "TA-standard order" - here you will see the partner function & the columns & the entries shoulbe as under:
    Func..........Desc................Not changeable.............Mandat. Func.......Source............Seq.
      SP.........Sold to party...............X.....................................X.....................---.................--
      SH.........Ship to party..............--...................................X.....................-..................--
      BP.........Bill to party................--...................................X.....................-..................--
      PY...........Payer......................--...................................X.....................-..................--
    If you are not able to find the partner function either enter the partner function in the white box at the bottom, or place cursor on the partner function & press page down key on the key board.
    This setting will allow you to change the partner in the sales order.
    Hope this clarifies your doubt.
    Thanks & regards,
    Allabaqsh G. Patil

  • Why only 9 partial deliveries are available in SAP?

    Hi experts,
    In SD, up to the maximum of 9 partial deliveries are allowed.. Why SAP has fixed only up to 9?.. Kindly help me out for this..
    Thanks in advance

    In SD, up to the maximum of 9 partial deliveries are allowed.. Why SAP has fixed only up to 9?.. Kindly help me out for this..
    It is not true. You can allow unlimited partial deliveries , please check F1 help for field KNVV-KZTLF:
    Partial delivery at item level
    Specifies whether the customer requires full or partial delivery for the item.
    Use
    You use this field to control partial deliveries at the item level. If the customer allows partial delivery, you can choose from different partial delivery options. For example, you can specify whether the customer allows you to make one delivery attempt only on the requested delivery date or whether unlimited delivery attempts are possible.
    When partial delivery indicator 'D' is set, the order can never have status 'fully delivered'. You must complete each item by entering a reason for rejection. This could be applied to scheduling agreements, for example.
    Dependencies
    You can enter a value in this field only if the customer allows partial deliveries for the entire sales document.
    (option "D" is unlimited partial delivery
    Please read F1 help fully!!!
    Regards,
    Csaba
    Edited by: Csaba Szommer on Jul 15, 2009 9:09 AM

  • Sold to party popup

    Hi Experts,
    I am having a peculiar problem which goes as: I have maintained a few business partners(Persons) and their sold to party relationship with organization. the business partners (Persons) are not extended to sold to party role, only the relation organization are extended to that role. All partner determination and org determination seems correct. but when I create the transactions Service orders, as i enters the main business partners, i get popup for org data determination, which includes one organization that i maintained in relationship which is correct, but with that i also found the leading business partner (Person) as sold to party!!
    ideally there should be no popup as only one organization is maintained in sold to party relationship, but i m getting 2 option in popup, one being organization and one the person itself.
    Kindly Help

    If the popup values are not needed directly in the va01 screen - then one way could be defining a field exit on sold-to field for this screen.
    In the field exit u can call a Z func module passing the soldto number.
    In the FM you can put your code to get the details u want , then use FM POPUP_WITH_TABLE_DISPLAY to display the contracts in the popup window.
    Though there is not much u can do in a field exit - but u can give it a try.
    - Kalpana
    Message was edited by: Kalpana Tyagi

  • Report for Monthly Quantiy sold by Customer (SOLD TO PARTY)

    Hi Gurus
    I had asked this question many times but no answer I got from the forum , I want to create a report which should show quantity , uom sold to customer(sold to party) by each month and plant (werks).
    I want to display monthly sales in the report when plant and delivery date is selected ( month = jan,feb,mar,apr,may......) and each quantity must display under jan,feb,mar,apr respectively.
    Can anyone help me please , I am still struggling with this stuff.
    Thanks in advanced
    Regards
    PE

    Hi Aatish
    I have developed the report for monthlywise quantity sold to party
    but it is giving some trouble in the calculation where there is zero value it is taking the above value and displaying in the report but when I search individually with sold to party it is comming correctly
    can you check my source and comment on it please
    REPORT soldtoparty
    line-size  170
    line-count 65 no standard page heading.
    TABLES : kna1,VBRP,vbrk.
    DATA:BEGIN OF itab OCCURS 0,
    kunag like VBRK-KUNAG,
    name1  like kna1-name1,
    werks LIKE vbrp-werks,
    vbeln LIKE vbrp-vbeln,
    fkdat LIKE VBRK-FKDAT,
    vrkme LIKE vbrp-vrkme,
    fkimg LIKE vbrp-fkimg,
    total like vbrp-fkimg,
    END OF itab.
    DATA: BEGIN OF itab1 OCCURS 0,
    fkdat(2) TYPE c,
    kunag like VBRK-KUNAG,
    name1  like kna1-name1,
    werks LIKE vbrp-werks,
    vbeln LIKE vbrp-vbeln,
    vrkme LIKE vbrp-vrkme,
    fkimg LIKE vbrp-fkimg,
    total like vbrp-fkimg,
    END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0 ,
    fkdat like VBRK-FKDAT,
    fkimg like vbrp-fkimg,
    kunag like VBRK-KUNAG,
    name1  like kna1-name1,
    vrkme  like vbrp-vrkme,
    jan LIKE vbrp-fkimg,
    feb LIKE vbrp-fkimg,
    mar LIKE vbrp-fkimg,
    apr LIKE vbrp-fkimg,
    may LIKE vbrp-fkimg,
    jun LIKE vbrp-fkimg,
    jul LIKE vbrp-fkimg,
    aug LIKE vbrp-fkimg,
    sep LIKE vbrp-fkimg,
    oct LIKE vbrp-fkimg,
    nov LIKE vbrp-fkimg,
    dec LIKE vbrp-fkimg,
    TOTAL like vbrp-fkimg,
    END OF itab2.
    TOP-OF-PAGE.
      WRITE:/50(40) ' CUSTOMER SOLD BY QUANTITY' CENTERED   ,2 'Page', SY-PAGNO.
      WRITE:/50(40) '----
    ' CENTERED .
      FORMAT INTENSIFIED on.
      WRITE:/2 SY-DATUM COLOR 3, SY-UZEIT .
       "WRITE:/1 S903-SPMON ."p_yearf.
      ULINE.
      "CENTERED.
      skip.
      "FORMAT COLOR COL_HEADING.
      ULINE.
      FORMAT COLOR 3.
      WRITE:/1 SY-VLINE,
        0 'PARTY' ,10 SY-VLINE,
        11 'NAME' ,40 SY-VLINE,
        41 'JAN' centered  , 50 SY-VLINE,
        51 'FEB',60 SY-VLINE,
        61 'MAR',70 SY-VLINE,
        71 'APR',80 SY-VLINE,
        81 'MAY',90 SY-VLINE,
        91 'JUN',100 SY-VLINE,
        101 'JUL',110 SY-VLINE,
        111 'AUG',120 SY-VLINE,
        121 'SEP',130 SY-VLINE,
        131 'OCT',140 SY-VLINE,
        141 'NOV',150 SY-VLINE,
        151 'DEC',160 SY-VLINE,
        161'TOTAL',170 SY-VLINE.
      FORMAT COLOR 3 on.
      ULINE.
    END-OF-PAGE.
    data wa_itab1 like itab1.
    DATA : mm(2) TYPE c,
    value type p decimals 2,
    total type p decimals 2,
    sum1 type p decimals 1,sum2 type p decimals 1,sum3 type p decimals 1,
    sum4 type p decimals 1,sum5 type p decimals 1,sum6 type p decimals 1,
    sum7 type p decimals 1,sum8 type p decimals 1,sum9 type p decimals 1,
    sum10 type p decimals 1,sum11 type p decimals 1,sum12 type p decimals 1,
    sum13 type p decimals 1,
    t_s LIKE vbrp-fkimg.
    "g_total like vbrp-fkimg.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_yearf TYPE SPMON,
    p_yeart type SPMON.
    SELECT-options:
                    p_kunag for VBRK-KUNAG , "no-extension no intervals,
                    s_werks for vbrp-werks no-extension no intervals obligatory,
                    s_vrkme for vbrp-vrkme no-extension no intervals obligatory.
    "p_matnr for vbrp-matnr no-extension no intervals,
    "p_augru for vbrp-augru_auft no-extension no intervals,
    "p_vbeln for vbrk-vbeln no-extension no intervals.
    RANGES : p_fkdat FOR sy-datum.
    RANGES: r_date FOR sy-datum.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS: NRW RADIOBUTTON GROUP g1,
    MWD RADIOBUTTON GROUP g1,
    RWS RADIOBUTTON GROUP g1,
    EDU RADIOBUTTON GROUP g1,
    Standard RADIOBUTTON GROUP g1 default 'X'.
    SELECTION-SCREEN END OF BLOCK blk2.
    SELECTION-SCREEN END OF BLOCK blk.
    start-of-selection.
    break developer.
    case 'X'.
    when mwd.
    CONCATENATE p_yearf(4) p_yearf+4(2) '01' INTO p_fkdat-low.
    concatenate p_yeart(4) p_yeart+4(2) '01' into p_fkdat-high.
    p_fkdat-sign = 'I'.
    p_fkdat-option = 'BT'.
    CALL FUNCTION 'RE_LAST_DAY_OF_MONTH'
    EXPORTING
    i_datum = p_fkdat-high
    IMPORTING
    e_tt = p_fkdat-high+6(2).
    APPEND p_fkdat.
    *start-of-selection.
    SELECT *
    from VBRK
    INNER JOIN vbrp ON vbrk~vbeln = vbrp~vbeln
    INNER JOIN kna1 on vbrk~kunag = kna1~kunnr
    INTO corresponding fields of TABLE itab
    where
    vbrp~werks in s_werks and
    VBRK~KUNAG in p_kunag and
    VBRP~vrkme in s_vrkme and " 'M3' and
    VBRK~fkdat in p_fkdat order by KUNAG.
    *left outer join kna1
    **from S903 INNER JOIN kna1
    *ON VBRKKUNAG = kna1kunnr
    *INTO corresponding fields of TABLE itab
    *where
    *"vbrp~werks in s_werks and
    *VBRK~KUNAG in p_kunag and
    *VBRP~vrkme in s_vrkme and " 'M3' and
    *VBRK~fkdat in p_fkdat order by KUNAG.
    LOOP AT itab.
    mm = itab-fkdat+4(2). " Monthly for Ageing
    clear itab2.
    Read table itab2 with key KUNAG = itab-KUNAG.
    *IF SY-SUBRC EQ 0.                      " Record for Customer exists so modify existing record updating the quantities
         PERFORM itab2_rec USING 'M' mm.
      ELSE.                                  " Record for Cusotmer does not exist so Append a new record for Customer
         PERFORM itab2_rec USING 'A' mm.
      ENDIF.
    itab1-fkdat = itab-fkdat+4(2).
    *itab1-vrkme = itab-vrkme.
    itab1-KUNAG = itab-KUNAG.
    itab1-name1 = itab-name1.
    itab1-fkimg = itab-fkimg.
    APPEND itab1.
    clear itab1.
    ENDLOOP.
    SORT itab1 BY KUNAG fkdat name1.
    "delete adjacent duplicates from itab1.
    LOOP AT itab1.
    move itab1 to wa_itab1.
    AT NEW KUNAG.
    t_s = 0  .
    ENDAT.
    t_s = t_s + itab1-fkimg .
    AT END OF KUNAG.
    mm = itab1-fkdat.
    "break angle.
      IF SY-SUBRC = 0.                     " Record for Customer exists so modify existing record updating the quantities
    CASE mm.
                         " Record for customer does not exit so append a new record for customer
      WHEN '01'.
      itab2-jan = t_s  .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum2 = sum2 + itab2-jan.
      APPEND itab2.
      WHEN '02'.
      itab2-feb = t_s  .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum2 = sum2 + itab2-feb.
      APPEND itab2.
      WHEN '03'.
      itab2-mar = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum3 = sum3 + itab2-mar.
      APPEND itab2.
      WHEN '04'.
      itab2-apr = t_s  .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum4 = sum4 + itab2-apr.
      APPEND itab2.
      WHEN '05'.
      itab2-may = t_s.
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
       sum5 = sum5 + itab2-may.
      APPEND itab2.
      WHEN '06'.
      itab2-jun = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
      sum6 = sum6 + itab2-jun.
      APPEND itab2.
      WHEN '07'.
      itab2-jul = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum7 = sum7 + itab2-jul.
      APPEND itab2.
      WHEN '08'.
      itab2-aug = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
      sum8 = sum8 + itab2-aug.
      APPEND itab2.
      WHEN '09'.
      itab2-sep = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum9 = sum9 + itab2-sep.
      APPEND itab2.
      WHEN '10'.
      itab2-oct = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
        sum10 = sum10 + itab2-oct.
      APPEND itab2.
      WHEN '11'.
      itab2-nov = t_s .
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
      sum11 = sum11 + itab2-nov.
      APPEND itab2.
      WHEN '12'.
      itab2-dec = t_s.
      itab2-KUNAG = wa_itab1-KUNAG.
      itab2-name1 = wa_itab1-name1.
      itab2-total = wa_itab1-total.
      sum12 = sum12 + itab2-dec.
      APPEND itab2.
    itab2-total = itab2-jan + itab2-feb + itab2-mar + itab2-apr + itab2-may + itab2-jun + itab2-jul + itab2-aug + itab2-sep
    + itab2-oct + itab2-nov + itab2-dec .
    total = sum1 + sum2 + sum3 + sum4 + sum5 + sum6 + sum7 + sum8 + sum9 + sum10 + sum11 + sum12.
    IF MM = 'A'.  " Mode for Append
        APPEND itab2.
    ELSE.             " Mode for Modify
        itab2-KUNAG = itab1-KUNAG.
        itab2-name1 = itab2-name1.
        "MODIFY itab2 WHERE kunag = itab1-kunag.
    ENDIF.
    "loop at itab2  .
    on change of itab2-KUNAG." ,itab2-name1,itab2-jan,itab2-feb,itab2-mar,itab2-apr,itab2-may,itab2-jun,itab2-jul,itab2-aug,itab2-sep,itab2-oct.
              WRITE:/1 SY-VLINE,
                itab2-KUNAG   under   'PARTY' LEFT-JUSTIFIED ,0  SY-VLINE COLOR 2,
                itab2-name1   under     'NAME' LEFT-JUSTIFIED ,10 SY-VLINE,
                itab2-jan DECIMALS 1  under    'JAN' LEFT-JUSTIFIED,40 SY-VLINE,
                itab2-feb DECIMALS 1 under    'FEB' LEFT-JUSTIFIED,50 SY-VLINE,
                itab2-mar DECIMALS 1  under    'MAR' LEFT-JUSTIFIED,60 SY-VLINE,
                itab2-apr DECIMALS 1 under    'APR' LEFT-JUSTIFIED,70 SY-VLINE,
                itab2-may DECIMALS 1 under    'MAY' LEFT-JUSTIFIED,80 SY-VLINE,
                itab2-jun DECIMALS 1 under    'JUN' LEFT-JUSTIFIED,90 SY-VLINE,
                itab2-jul DECIMALS 1 under    'JUL' LEFT-JUSTIFIED,100 SY-VLINE,
                itab2-aug DECIMALS 1 under    'AUG' LEFT-JUSTIFIED,110 SY-VLINE,
                itab2-sep DECIMALS 1 under    'SEP' LEFT-JUSTIFIED,120 SY-VLINE,
                itab2-oct DECIMALS 1 under    'OCT' LEFT-JUSTIFIED,130 SY-VLINE,
                itab2-nov DECIMALS 1 under    'NOV' LEFT-JUSTIFIED,140 SY-VLINE,
                itab2-dec DECIMALS 1 under    'DEC' LEFT-JUSTIFIED,150 SY-VLINE,
                itab2-Total DECIMALS 1 under  'TOTAL' LEFT-JUSTIFIED,160 SY-VLINE COLOR 3,
                170 SY-VLINE COLOR 3.
                uline.
      "itab2-total = itab2-jan +value itab2-febitab3-maritab2-apritab2-mayitab2-junitab3-julitab2-augitab2-sepitab2-octitab3-nov+itab2-dec).
    "itab2-total = sum(itab2-jan)  .
    endon.
    "endloop.
    ENDCASE.
    ENDIF.
    "ENDFORM.
    ENDAT.
    ENDLOOP.
    ENDCASE.
    write:  sum1 DECIMALS 1  under    'JAN' LEFT-JUSTIFIED,40 SY-VLINE,
             sum2 DECIMALS 1 under    'FEB' LEFT-JUSTIFIED,50 SY-VLINE,
             sum3 DECIMALS 1  under    'MAR' LEFT-JUSTIFIED,60 SY-VLINE,
             sum4 DECIMALS 1 under    'APR' LEFT-JUSTIFIED,70 SY-VLINE,
             sum5  DECIMALS 1 under    'MAY' LEFT-JUSTIFIED,80 SY-VLINE,
             sum6 DECIMALS 1 under    'JUN' LEFT-JUSTIFIED,90 SY-VLINE,
             sum7 DECIMALS 1 under    'JUL' LEFT-JUSTIFIED,100 SY-VLINE,
             sum8 DECIMALS 1 under    'AUG' LEFT-JUSTIFIED,110 SY-VLINE,
             sum9 DECIMALS 1 under    'SEP' LEFT-JUSTIFIED,120 SY-VLINE,
             sum10 DECIMALS 1 under    'OCT' LEFT-JUSTIFIED,130 SY-VLINE,
             sum11 DECIMALS 1 under    'NOV' LEFT-JUSTIFIED,140 SY-VLINE,
             sum12 DECIMALS 1 under    'DEC' LEFT-JUSTIFIED,150 SY-VLINE,
             sum13 DECIMALS 1 under  'TOTAL' LEFT-JUSTIFIED,160 SY-VLINE COLOR 1.
    uline.
    regards
    Piroz

Maybe you are looking for