Two Line entry in RG23 C part 1

Dear Experts ,
I am making an asset po , with acct assignment A & asset code using a material code.
After MIGO, I made J2I5 & J2I6 , after checking the RG23C part 1 , I see two entry in the RG23C part 1 register , one in quantity received & other in qty removal.
Kindly tell me how to resolve this issue .
DGN

Since it is a asset with acct assignment - 'K',it is receipted & issued(Consumed) immediately

Similar Messages

  • RG23C PART 1 - Two line items for single item

    Dear Experts,
    I created a po for capital goods without any material number but entered the description of the capital good  in material short text and processed.
    while posting the excise details for the capital good in RG23C Part 1, it is posting the register with two lines with different serial numbers and updating the quantity as well.
    how do i rectify it?
    regards
    Suresh

    hI,
    thanks for the quick reply
    thats what happening exactly......how do i correct it.....or is it so that i dont have to do anything
    the movement types for both entries is 101
    regards
    Suresh
    Edited by: rasuresh on Aug 29, 2009 11:30 AM

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • Unable to find line break between two lines in attachment file.

    Dear all I will be very great full if someone help me out,
    I am trying to send mail through SMTP server with an attachment of oracle report, but I am unable to find line break between two lines, when I down load the attachment from mail and open attach.txt file by double click on it. Next line starts right after previous line ends, it should starts with new line.
    In order to send an attachment file, I am reading source file line by line and put MIME protocol’s attachment instance, contain of source file is being properly written into target file if I open that attachment on cmd prompt.
    Following code may help you to understand the case.
    Thanks in advance.
    My code is as follows:-
    create or replace procedure bec_file_test
    v_subject varchar2, -- Subject of the email
    v_body varchar2, -- Body of the email
    v_from VARCHAR2 default 'XYZ.com', -- sender mail id
    v_to varchar2 default 'XYZ.com', -- Field To of the email
    v_cc varchar2 default 'XYZ.com' -- cc address
    ) is
    -- variable to hold the smtp server connection
    v_smtp_connection utl_smtp.connection;
    -- variable to hold the smtp host name
    v_smtp_host varchar2(100) default 'mail.bec-group.com';
    -- variable to hold the smtp port
    v_smtp_port number default 25;
    -- composite of {CR}{LF} caridge return and line feed.
    CRLF varchar2(2):=CHR(13)||CHR(10);
    cursor pr_rec is
    select requisition_no,line_no,release_no,a.contract,
    a.project_id,substr(a.activity_seq,1,11)ACT_SEQ,
    substr(a.part_no,1,12)PART_NO,
    substr(a.description,1,32)DESCRIPTION,
    substr(a.Bal_qty,1,8) BAL_QTY,
    substr(a.unit_meas,1,5)UOM,
    a.wanted_receipt_date WAN_REC_DT,
    a.latest_order_date LAT_ORD_DT
    from bec_pr_line_rep a
    where a.Bal_qty>0 and a.header_state not in 'Closed'
    and upper(a.state1) like 'RELEASED' and a.contract not in ('U1ENG','ULENG','U1FND','U2FND')
    and a.buyer_code='70306'
    order by a.part_no;
    begin
    declare
    fHandle UTL_FILE.FILE_TYPE;
    v_msg_line varchar2(2000);
    -- v_buffer varchar2(20000);
    --ALTER SYSTEM SET utl_file_dir = 'D:\Database\temp'
    --COMMENT='Temporary change on Dec 14'
    --SCOPE=SPFILE;
    SELECT name, value
    FROM gv$parameter
    WHERE name = 'utl_file_dir';
    --drop directory my_directory
    --CREATE or replace DIRECTORY my_directory AS 'D:\database\temp';
    --GRANT read,write ON DIRECTORY my_directory TO PUBLIC;
    begin ---writing data into a file.
    fHandle := UTL_FILE.FOPEN('MY_DIRECTORY', 'pending_pr_summry.txt', 'w');
    UTL_FILE.put_line(fHandle, ' Pending PR to process (detail report)');
    UTL_FILE.put_line(fHandle,TO_CHAR(SYSDATE,'MM-DD-YY HH:MI:SS AM'));
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, 'Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt' );
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    for pr_temp in pr_rec loop
    begin
    v_msg_line:=to_char(rpad(pr_temp.requisition_no,12,' ')||'|'||
    lpad(pr_temp.line_no,3,' ')||'|'||
    lpad(pr_temp.release_no,3,' ')||'|'||
    rpad(pr_temp.contract,7,' ')||'|'||
    lpad(nvl(pr_temp.project_id,' '),7,' ')||'|'||
    lpad(nvl(pr_temp.act_seq,' '),12,' ')||'|'||
    lpad(pr_temp.part_no,12,' ')||'|'||
    rpad(pr_temp.description,35,' ')||'|'||
    lpad(pr_temp.bal_qty,10,' ')||'|'||
    rpad(pr_temp.uom,6,' ')||'|'||
    lpad(pr_temp.wan_rec_dt,14,' ')||'|'||
    lpad(pr_temp.lat_ord_dt,14,' '));
    UTL_FILE.put_line(fHandle,v_msg_line);
    end;
    end loop;
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, ' Regards : IFSAPP ( Application owner ) ');
    UTL_FILE.FCLOSE(fHandle); ------------writing into file is successfuly done here!
    --Reading of file starts here containt will be added in attchment file
    fHandle :=UTL_FILE.FOPEN('MY_DIRECTORY','pending_pr_summry.txt','R' );
    -- establish the connection to the smtp server
    v_smtp_connection := utl_smtp.open_connection(v_smtp_host, v_smtp_port); /** OPEN CONNECTION ON THE SERVER **/
    -- perform a handshake with the smtp server
    utl_smtp.helo(v_smtp_connection, v_smtp_host); /** DO THE INITIAL HAND SHAKE **/
    -- set the 'from' address of the message
    utl_smtp.mail(v_smtp_connection, v_from);
    -- add the recipient to the message
    utl_smtp.rcpt(v_smtp_connection, v_to);
    -- send the email
    utl_smtp.open_data(v_smtp_connection);
    v_msg_line:='Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || CRLF ||
    'From: ' || v_from || CRLF ||
    'Subject: ' || v_subject || CRLF ||
    'To: ' || v_to || CRLF ||
    'Cc: ' || v_cc || CRLF ||
    'MIME-Version: 1.0'|| CRLF || -- Use MIME mail standard
    'Content-Type: multipart/mixed;'||CRLF ||
    ' boundary="-----SECBOUND"'||CRLF||
    CRLF ||'-------SECBOUND'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'Content-Transfer_Encoding: 7bit'|| CRLF ||
    CRLF ||v_body|| CRLF;     -- Message body
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    v_msg_line:='-------SECBOUND'|| CRLF ||
    'Content-Type: application/octet-stream;'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'name="pending_pr_summry.txt"'|| CRLF ||
    'Content-Transfer_Encoding: 8bit'|| CRLF ||
    'Content-Disposition: attachment;'|| CRLF ||
    ' filename="pending_pr_summry.txt"'|| CRLF || CRLF;     -- Content of attachment
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    -- check file is opened
    IF utl_file.is_open(fHandle) THEN
    -- loop lines in the file
    LOOP
    BEGIN -- Content of attachment
    utl_file.get_line(fHandle,v_msg_line);
    v_msg_line:=concat(v_msg_line,CRLF);
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    --end of attachment containt     
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    UTL_FILE.FCLOSE(fHandle);
    utl_smtp.close_data(v_smtp_connection);
    utl_smtp.quit(v_smtp_connection);
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
    when utl_smtp.transient_error then
    dbms_output.put_line(' Temporary e-mail issue - try again');
    when utl_smtp.permanent_error then
    dbms_output.put_line(' Permanent Error Encountered.');
    when others then
    dbms_output.put_line('Exception: SQLCODE=' || SQLCODE || ' SQLERRM=' || SQLERRM);
    RAISE;
    end;
    end bec_file_test;

    Pending PR to process (detail report)01-17-13 12:43:19 PM--------------------------------------------------------------------------------------------------------------------------------------------------Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt--------------------------------------------------------------------------------------------------------------------------------------------------MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade |500|kg |30-NOV-2012| 20-nov-2012MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012MAT/250606 | 2| |NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | |1|NMDCJ|6001|100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1|pkt | 25-DEC-2013| 14-dec-2013--------------------------------------------------------------------------------------------------------------------------------------------------
    where as source file is like that:-
    Pending PR to process (detail report)
    01-17-13 12:43:19 PM
    Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt
    MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade | 5500|kg | 30-NOV-2012| 20-nov-2012
    MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012
    MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012
    MAT/250606 | 2| 1|NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012
    MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1 |pkt | 25-DEC-2013| 14-dec-2013
    Ignore alignment. It is well formatted in source file.

  • Trying to combine two 'lines' to make a 'shape'?

    I've been trying for hours to combine two curves I drew with the pencil tool into a shape that I can fill with a color or gradient:
    http://img199.imageshack.us/img199/4155/flametests01.png
    The top row has the two lines (stroked).   When I move them together, I get a pleasing 'flame' shape that I want to use in a logo.
    The bottom row shows what happens when the two 'lines' are 'filled', and what happens when the flame is 'filled'.   I've tried all manor of grouping, merging, combining....I've lost track at this point....
    I think part of my problem is that I assume the pencil tool would draw lines (or perhaps 'paths' is more accurate?)--but it seems to be drawing 'shapes'.
    I've tried using the pen tool, but the curves are never as smooth as the ones I drew 'freehand'...
    What should I have done / be doing differently?

    Just drag-select the upper two points with the Direct Select tool and use the KBSC CmdOpt-Shift-J to unite the lines. Do the same at the bottom to complete the shape.

  • Free Goods sub item split in two line items

    Sir,
    I give free good along with  sale item ,but i want free goods quantity split in two lines ,so how I do  that?
    Please help .

    Hi,
    Free goods has the following limitations:
    - Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: u2018With material 1, material 2 and material 3 are free of chargeu2018 or u2018If material 1 and material 2 are ordered at the same time, then material 3 is free of chargeu2018.
    - Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    - Free goods are only supported for sales orders with document category C (for example, not quotations).
    - Free goods are not supported for deliveries without reference to a sales order.
    - Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    - If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    Not all Sales Order can be used for free goods determination.  You have to check the SD document category if it does not work.  Only category 'C' are supported.  Check transaction VOV8.
    Assume that you want to configure an inclusive FREE goods routine.  Customers must order a minumum quantity of 5 before any free goods can be assign.  For every quantity of 3, the customer will be given 1 free goods.
    WC07 - Maintain Number Range Intervals
    e.g.
    No   From number       To number
    01    0000010000         0000099999
    IMG -> Sales and Distribution -> Basic Functions -> Free Goods ->
    Maintain Access Sequences
    New Entries
    Acsq
    NA00
    Save
    Maintain Condition Types
    New Entries
    Ctyp   Name             AcSq
    FREE  Free Goods    NA00
    Save
    Maintain Pricing Procedures
    Procedures
    New Entries
    Procedure   Description
    FREE           Free Goods
    Select Procedure FREE then click Control data
    Step   Cntr   Ctyp
    10       10      FREE
    V/N6 - Activate Free Goods Determination
    Assign Order Type OR with Document Procedure A with Procedure FREE
    VBN1 - Create free goods determination
    e.g.  FREE inclusive
    Material  Min qty   From   are free good   Calc Rule   Free Goods
                           5           3                1                      1                1
    In this example, if you create a Sales Order for a quantity of 10, SAP will prompt you 7 as the customer order qty and 3 will be free.  Customer only pay for the 7 quantity
    Hopefully this will help to resolve the answer.
    Thanks & regards,
    Pankaj Mahajan
    Edited by: PM on Apr 13, 2010 10:28 AM

  • How to skip first TWO Lines of   .txt  file    using XSLT Mapping

    Hi Friends  ,
                              I have an .txt file in has the format as
                               <TEST>
                                4564564545
                                56456444566
                                56465
                                    How can i skip the first two Lines when i am writing the XSLT Mapping ?
                              That <TEST> and empty line shouldn't go the rfc  .
                             How can i skip and sent to rfc  using XSLT Mapping ?
    Best Regards .,
    V.Rangarajan

    you can avoid the empty lines in your File Content Conversion by defining offset.
    <i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
    ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    then the generated XML after FCC will not have the empty lines.

  • Procurement tab in Sales order displays two line items per material

    Folks
    I am not a SD guy and i have a very basic question on how to read the details in the procurement tab for a sals order.
    In the Procurement tab of a Sales order, two line items per material are displayed as shown below. whats does this mean ?
    Further, I had observed the below differences in the below 2 lines
    1. Mat. Avail Date is 06/19/2007 for line 1 & 06/20/2007 in line 2.why r the dates different ?whats the significance?
    2. Confirmed qty is 0 line 1 & 1in line 2.( when does confirmation trigger or update ? Is it upon ATP check or upon delivery ?)
    3. Order qty is 1 line 1 & 0 in line 2.
    Item     Material     Plant     Confirmed Qty     SU     Mat. Avial Date     SL     Req. Type          Deliv. Date     ATP Qty     Loading dt     Route     Part. Deliv/ Item     Deliv priority     Desc                              
    10     NTE801NC     2400     0     EA     6/15/2007     CT          D     6/19/2007     0     6/15/2007     24GB03     C     98     Priority 98 (Normal)                              
                                    1     EA     6/15/2007     CT          D     6/20/2007                   6/15/2007                    Priority 98 (Normal)                              
    Thanks

    It means  2 schedule line for that materials ,
    06/19/2007  is the date on which material is requested by  customer  but there is not sufficient stock on that day so 0 quantity is confirmed for that day.
    On 06/20/2007 material is availabe and you can start delivery to customer on 06/20/2007 and system confirms the material for 20th and it is reserved for this sales order.
    Confirmation is based on your MAT ( Material availability date ), but you can revist these dates through by triggering availabilty check or Back order processing through GATP or ATP.
    Manish

  • Why two line items for vendor credt

    hi EXperts,
    At the time of doing MIRO entry , System has generated two line items for vendor credit
    GI/IR    dr 2275.00
    Vendor   cr 2252.25
    Vendor   cr  22.75
    That means while 1% of the INvoice value system has created one more line item.
    Pls suggest why it has created like this. don't offer points
    Thanks in Advance,
    Arabinda Parida

    do you have a split payment term (different due dates) as defined in OBB9

  • How to maintain the column heading in two lines

    for example i have field ACCOUNTING CLEARK
    i want to display this description in alv list
    like ACC
         clk
    Please send the solution for this.
    very urgent
    thanks in advance
    regards
    venu

    hi
    please check my code
    for field KNB1-BUSAB
    i want the description ACC in place of ACC CLK
                           CLK
    means in two lines
    report zfir0098 message-id zz
                    line-size 255
                    line-count 65
                    no standard page heading.
    (C) Copyright <2006> by Eastman Kodak Company - All Rights Reserved.
    Report Name     : ZFIR0098
    Author          : Venugopalreddy.K
    Created on      : 12-MAY-2006
    SIR#            : 086279
    Interface ID#   : RO-01509 - Open AR Aging by Due Date
    Correction#     : D11K947333
    Transaction code: Z_ZFIR0098
    Logical Database: N/A
    SAPScript name  : N/A
    Application Area: FI
    Programs Called : N/A
    Function Modules: REUSE_ALV_VARIANT_F4
                      REUSE_ALV_VARIANT_DEFAULT_GET
                      REUSE_ALV_EVENTS_GET
                      REUSE_ALV_LIST_DISPLAY
                      REUSE_ALV_EVENTS_GET
                      REUSE_ALV_COMMENTARY_WRITE
    Description     : Report to display Open AR with Aging by due
                      date. The open items are displayed by Linked
                      Accounts, Customer Account, Business unit and
                      Posting Date.
    Correction#     SIR#       Modified By                  Date
    D11Kxxxxxx                 xxxxxx xxxx                  MM/DD/YYYY
    Description of change (copy from SIR):
    (text)................................................................
              TABLE DEFINITION                                           *
    tables : t001,    "Company Codes
             knvv,    "Customer Master Sales Data
             bsid,    "Accounting: Secondary Index for Customers
             knkk,    "Customer master credit management: Control area data
             kna1,    "General Data in Customer Master
             knb1,    "Customer Master (Company Code)
             t052,    "Terms of Payment
             tvv1.    "Customer Group 1
                          TYPE POOLS                                     *
    type-pools: slis.
             INTERNAL TABLE DECLARATION
    Internal table for Customer Master (Company Code)
    data :   begin of i_knb1 occurs 0,
               kunnr type knb1-kunnr,
               bukrs type knb1-bukrs,
               busab type knb1-busab,
             end   of i_knb1.
    Internal table for Customer Master Sales Data
    data :   begin of i_knvv occurs 0,
               kunnr type knvv-kunnr,
               vkorg type knvv-vkorg,
               kvgr1 type knvv-kvgr1,
               zterm type knvv-zterm,
             end   of i_knvv.
    Internal table for linked account nos.
    data :   begin of i_knkk occurs 0,
               kunnr type knkk-kunnr,
               kkber type knkk-kkber,
               klimk type knkk-klimk,
               knkli type knkk-knkli,
               sbgrp type knkk-sbgrp,
               grupp type knkk-grupp,
               kdgrp type knkk-kdgrp,
             end   of i_knkk.
    Internal table for Customer's credit limit
    data :   begin of i_knkk_knkli occurs 0,
               kunnr type knkk-kunnr,
               klimk type knkk-klimk,
               knkli type knkk-knkli,
             end   of i_knkk_knkli.
    Internal table for T001 records
    data:    begin of i_t001 occurs 0,
               bukrs type t001-bukrs,
               waers type t001-waers,
             end   of i_t001.
    Internal table for BSID records
    data :   begin of i_bsid occurs 0,
               bukrs type bsid-bukrs,
               kunnr type bsid-kunnr,
               zuonr type bsid-zuonr,
               belnr type bsid-belnr,
               budat type bsid-budat,
               bldat type bsid-bldat,
               waers type bsid-waers,
               shkzg type bsid-shkzg,
               dmbtr type bsid-dmbtr,
               wrbtr type bsid-wrbtr,
               zfbdt type bsid-zfbdt,
               zterm type bsid-zterm,
               zbd1t type bsid-zbd1t,
               zbd2t type bsid-zbd2t,
               zbd3t type bsid-zbd3t,
               kkber type bsid-kkber,
             end   of i_bsid.
    Internal table for Customer Master
    data :   begin of i_kna1 occurs 0,
               kunnr type kna1-kunnr,
               name1 type kna1-name1,
             end   of i_kna1.
    Internal table for Terms of Payment
    data :   begin of i_t052 occurs 0,
               zterm type t052-zterm,
               ztagg type t052-ztagg,
               ztag1 type t052-ztag1,
               ztag2 type t052-ztag2,
               ztag3 type t052-ztag3,
             end   of i_t052.
    Internal table for final output
    data :   begin of i_output occurs 0,
               kunnr1      type bsid-kunnr,
               kunnr       type bsid-kunnr,
               bukrs       type t001-bukrs,
               kdgrp       type knkk-kdgrp,
               name1       type kna1-name1,
               kvgr1       type knvv-kvgr1,
               knkli       type knkk-knkli,
               klimk       type knkk-klimk,
               sbgrp       type knkk-sbgrp,
               zuonr       type bsid-zuonr,
               bldat       type bsid-bldat,
               due_date    type bsid-zfbdt,
               not_due     type bsid-dmbtr,
               curr_due    type bsid-dmbtr,
               due_01_30   type bsid-dmbtr,
               due_31_60   type bsid-dmbtr,
               due_61_90   type bsid-dmbtr,
               due_91_180  type bsid-dmbtr,
               due_181_365 type bsid-dmbtr,
               due_gt_365  type bsid-dmbtr,
               spcol       type bsid-dmbtr,
               tot_due     type bsid-dmbtr,
               tot_ar      type bsid-dmbtr,
               waers       type t001-waers,
               zterm       type bsid-zterm,
               zterm1      type knvv-zterm,
               v_no_days   type i,
               busab       type knb1-busab,
             end   of i_output.
    Internal table for summary data
    data :   begin of i_output_summary occurs 0,
               bukrs       type t001-bukrs,
               kunnr       type bsid-kunnr,
               name1       type kna1-name1,
               kvgr1       type knvv-kvgr1,
               klimk       type knkk-klimk,
               zterm       type knvv-zterm,
               kdgrp       type knkk-kdgrp,
               sbgrp       type knkk-sbgrp,
               busab       type knb1-busab,
               not_due     type bsid-dmbtr,
               curr_due    type bsid-dmbtr,
               due_01_30   type bsid-dmbtr,
               due_31_60   type bsid-dmbtr,
               due_61_90   type bsid-dmbtr,
               due_91_180  type bsid-dmbtr,
               due_181_365 type bsid-dmbtr,
               due_gt_365  type bsid-dmbtr,
               spcol       type bsid-dmbtr,
               tot_due     type bsid-dmbtr,
               tot_ar      type bsid-dmbtr,
               waers       type t001-waers,
             end   of i_output_summary.
    Temporary internal table for KNVV records.
    data :   i_knvv_tmp like i_knvv occurs 0 with header line.
    Temporary internal table for KNKK records.
    data :   i_knkk_tmp like i_knkk occurs 0 with header line.
    Temporary internal table for BSID records.
    data :   i_bsid_tmp like i_bsid occurs 0 with header line.
             FIELD STRING DECLARATION
    Structure to validate selection screen
    data :   begin of v_radio,
               rd1  type c,
               rd2  type c,
               rd3  type c,
             end   of v_radio.
    Structure to validate selection screen
    data :   begin of v_radio1,
               rd1  type c,
               rd2  type c,
               rd3  type c,
             end   of v_radio1.
             Internal Tables for ALV Report
    data:   i_fieldcat_alv      type  slis_t_fieldcat_alv,
            i_sort              type  slis_t_sortinfo_alv,
            i_sort1             type  slis_t_sortinfo_alv,
            i_events            type  slis_t_event,
            v_events            type  slis_alv_event,
            v_fieldcat_alv      type  slis_fieldcat_alv,
            v_sort              like  line of i_sort,
            v_sort1             like  line of i_sort1,
            v_layout            type  slis_layout_alv,
            v_print             type  slis_print_alv,
            i_list_comments     type  slis_t_listheader,
            v_list_comments     like  line of i_list_comments,
            v_variant           like  disvariant,     "Layout-External Use
            v_variant_save      type  c,              "To Store the Varient
            v_variant1          like  disvariant,
            v_exit              type  c.              "Event exit
            Data declaration
    data:   v_paym_days         type  i,
            v_date_diff         type  i,
            v_zterm             type  t052-zterm,
            v_bukrs1            like  bsid-bukrs,
            v_kunnr             like  bsid-kunnr,
            v_kdgrp             like  knkk-kdgrp,
            v_bukrs             like  bsid-bukrs,
            v_name1             like  kna1-name1,
            v_knkli             like  knkk-knkli,
            v_klimk(20)         type  c,
            v_kvgr1             like  knvv-kvgr1,
            v_kkber             like  knkk-kkber,
            v_sbgrp             like  knkk-sbgrp,
            v_busab             like  knb1-busab.
    data:   v_cust_not_due      type  bsid-dmbtr,
            v_cust_curr_due     type  bsid-dmbtr,
            v_cust_due_01_30    type  bsid-dmbtr,
            v_cust_due_31_60    type  bsid-dmbtr,
            v_cust_due_61_90    type  bsid-dmbtr,
            v_cust_due_91_180   type  bsid-dmbtr,
            v_cust_due_181_365  type  bsid-dmbtr,
            v_cust_due_gt_365   type  bsid-dmbtr,
            v_cust_spcol        type  bsid-dmbtr,
            v_cust_tot_due      type  bsid-dmbtr,
            v_cust_tot_ar       type  bsid-dmbtr,
            v_curr              type  t001-waers,
            v_name              type  kna1-name1,
            v_kvgr              type  knvv-kvgr1,
            v_kdgrp1            type  knkk-kdgrp,
            v_klimk1            type  knkk-klimk,
            v_zterm1            type  knvv-zterm,
            v_sbgrp1            type  knkk-sbgrp,
            v_busab1            type  knb1-busab.
    data:   v_repid             like  sy-repid,
            v_flag              type  c.
              CONSTANT DEFINITION
    constants:
            c_sel_x(1)                  type c value 'X',
            c_0(1)                      type c value '0',
            c_1(1)                      type c value '1',
            c_knkli(7)                  type c value 'S_KNKLI',
            c_kdgrp(7)                  type c value 'S_KDGRP',
            c_debit_s(1)                type c value 'S',
            c_credit_h(1)               type c value 'H',
            c_deflt_zterm_y000(4)       type c value 'Y000',
            c_sc01(4)                   type c value 'SC01',
            c_subtotal_text             type slis_formname value
                                                  'ALV_SUBTOTALS',
            c_formname_top_of_page      type slis_formname value
                                                  'F_TOP_OF_PAGE',
            c_formname_top_of_page_summ type slis_formname value
                                                  'F_TOP_OF_PAGE_SUMM'.
                       Selection-screen
    selection-screen begin of block b1 with frame title text-s01.
    parameters     : p_bukrs type t001-bukrs obligatory.
    select-options : s_kvgr1 for knvv-kvgr1,
                     s_sbgrp for knkk-sbgrp,
                     s_busab for knb1-busab,
                     s_budat for bsid-budat,
                     s_kunnr for knvv-kunnr.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-s02.
    selection-screen begin of line.
    parameters : p_lk_on as checkbox.
    selection-screen comment 5(24)  text-s10 for field p_lk_on.
    selection-screen end of line.
    selection-screen comment 02(67) text-s12.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters      :p_knkli radiobutton  group g1 user-command radi
                                                default 'X'.
    selection-screen comment 5(24)  text-s05 for field p_knkli.
    select-options  :s_knkli for knkk-knkli.
    selection-screen end of line.
    selection-screen begin of line.
    parameters      :p_kdgrp radiobutton  group g1.
    selection-screen comment 5(24)  text-s06 for field p_kdgrp.
    select-options  :s_kdgrp for knkk-kdgrp.
    selection-screen end of line.
    selection-screen begin of line.
    parameters      :p_all_lk radiobutton  group g1.
    selection-screen comment 5(24)  text-s07 for field p_all_lk.
    selection-screen end of line.
    selection-screen end of block b2.
    selection-screen begin of block b3 with frame title text-s03.
    selection-screen begin of line.
    parameters      :p_op_ab radiobutton  group g2.
    selection-screen comment 5(32) text-s08 for field p_op_ab.
    selection-screen end of line.
    selection-screen begin of line.
    parameters      :p_ab radiobutton  group g2.
    selection-screen comment 5(16) text-s09 for field p_ab.
    selection-screen end of line.
    selection-screen end of block b3.
    selection-screen begin of block b4 with frame title text-s11.
    parameters      :p_vari like disvariant-variant.
    selection-screen end of block b4.
    INITIALIZATION
    initialization.
    To initialize the variant
      perform initialize_variant.
    To fetch the default variant for the ALV report
      perform display_default_variant.
         At selection-screen
    at selection-screen.
    To validate company code
      perform check_company_code.
    To validate business unit
      perform check_business_unit.
      move: p_knkli  to v_radio1-rd1,
            p_kdgrp  to v_radio1-rd2,
            p_all_lk to v_radio1-rd3.
      if not s_kvgr1[] is initial and
         not s_sbgrp[] is initial.
        message e045 with text-073.
      endif.
    at selection-screen output.
      move: p_knkli  to v_radio-rd1,
            p_kdgrp  to v_radio-rd2,
            p_all_lk to v_radio-rd3.
    To maintain the select options visiable and invisible
      perform selection_screen_output.
    Check the radio buttons selected in selection screen
      if v_radio1 eq v_radio.
      To maintain the default settings
        perform selection_screen_check.
      endif.
             AT SELECTION-SCREEN ON VALUE-REQUEST
    At Selection Screen Value Request.
    at selection-screen on value-request for p_vari.
    To Display the Existing Variants(Layout).
      perform variant_help_f4 using p_vari.
             Event start-of-selection
    start-of-selection.
    Get the cusomer number
      perform get_knb1_details.
    Get the customer group details
      perform get_knvv_details.
    Get all linked account and credit account details from KNKK
      perform get_linked_accounts_details.
    Get open AR documents from BSID
      perform get_open_ar_details.
    Get the company code and curreny.
      perform get_com_code_curr.
    Get the customer name
      perform get_customer_name.
    Get the payment term days
      perform get_payment_term_days.
    Populate the final table having all the field details
      perform populate_final_table.
    To display the output in alv list.
      perform alv_list_dispaly.
          Form  initialize_variant
          To initialize the ALV Variant
    form initialize_variant.
      clear: v_variant.
      v_repid = sy-repid.
      v_variant-report   = v_repid.
      v_variant-username = sy-uname.
      v_variant_save     = 'A'.
    endform.                    " initialize_variant
          Form  display_default_variant
          To fetch the Default ALV variant
    form display_default_variant.
      if not p_vari is initial.
        v_variant-variant = p_vari.
      endif.
      clear v_variant1.
      v_variant1 = v_variant.
    The function module is used to fetch the default variant
      call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
        exporting
          i_save        = v_variant_save
        changing
          cs_variant    = v_variant1
        exceptions
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          others        = 4.
    Based on the SUBRC value the variant is assigned
      case sy-subrc.
        when 0.
          p_vari = v_variant1-variant.
        when 2.
          clear p_vari.
      endcase.
    endform.                    " display_default_variant
          Form  check_company_code
          Validate Company Code
    form check_company_code.
      select single *
        from t001
       where bukrs eq p_bukrs.
      if sy-subrc ne 0.
        message e339.
      endif.
    endform.                    " check_company_code
          Form  check_business_unit
          Validate Business Unit
    form check_business_unit.
      select single *
        from tvv1
       where kvgr1 in s_kvgr1.
      if sy-subrc ne 0.
        message e045 with text-e01.
      endif.
    endform.                    " check_business_unit
      Form  selection-screen-output
      On selection of corresponding radio button the respective
      Select-option will be high lighted
    form selection_screen_output.
      loop at screen.
        if p_knkli = c_sel_x.
        Credit Account invisible
          if screen-name cs  c_knkli.
            screen-invisible = c_0.
            screen-active    = c_1.
            modify screen.
          endif .
        Customer Group visible
          if screen-name cs  c_kdgrp.
            screen-invisible = c_1.
            screen-active    = c_0.
            modify screen.
          endif.
        elseif p_kdgrp = c_sel_x.
        Credit Account invisible
          if screen-name cs  c_knkli.
            screen-invisible = c_1.
            screen-active    = c_0.
            modify screen.
          endif .
        Customer Group visible
          if screen-name cs  c_kdgrp.
            screen-invisible = c_0.
            screen-active    = c_1.
            modify screen.
          endif.
        elseif p_all_lk = c_sel_x.
        Credit Account invisible
          if screen-name cs  c_knkli.
            screen-invisible = c_1.
            screen-active    = c_0.
            modify screen.
          endif .
        Customer Group invisible
          if screen-name cs  c_kdgrp.
            screen-invisible = c_1.
            screen-active    = c_0.
            modify screen.
          endif.
        endif.
      endloop.
    endform.                    " selection_screen_output
         Form selection_screen_check
         To check the selection screen radio buttons
    form selection_screen_check.
      if p_knkli = c_sel_x.
        if p_op_ab is initial.
          p_op_ab = c_sel_x.
          p_ab = ''.
        endif.
      elseif p_kdgrp = c_sel_x.
        if p_op_ab is initial.
          p_op_ab = c_sel_x.
          p_ab = ''.
        endif.
      elseif p_all_lk = c_sel_x.
        if p_op_ab is initial.
          p_op_ab = c_sel_x.
          p_ab = ''.
        endif.
      endif.
    endform.                    " selection_screen_check
          Form  variant_help_f4
          To get the list of ALV help variants
    form variant_help_f4 using p_variant.
      call function 'REUSE_ALV_VARIANT_F4'
        exporting
          is_variant    = v_variant
          i_save        = v_variant_save
        importing
          e_exit        = v_exit
          es_variant    = v_variant
        exceptions
          not_found     = 1
          program_error = 2
          others        = 3.
      if sy-subrc <> 0.
      If no variants exist
        message s045 with text-e02.
      endif.
      if v_exit is initial.
        p_variant       = v_variant-variant.
      endif.
    endform.                    " variant_help_f4
         Form  get_knb1_details
         To get the Customer number
    form get_knb1_details.
    Fetch data from Customer Master (Company Code)
    based on selection criteria(company code)
      select kunnr bukrs busab
        from knb1
        into table i_knb1
       where bukrs eq p_bukrs.
      if sy-subrc ne 0.
        message i561.
        leave list-processing.
      endif.
    endform.                    " get_knb1_details
         Form  get_knvv_details
         To get the Customer group details
    form get_knvv_details.
      if not i_knb1[] is initial.
        sort i_knb1 by kunnr bukrs.
        delete adjacent duplicates from i_knb1 comparing kunnr bukrs.
      Fecth data from Customer Master Sales Data
      based on internal table I_KNB1 and selection criteria
      (customer group)
        select kunnr vkorg kvgr1 zterm
          from knvv
          into table i_knvv
          for  all entries in i_knb1
         where kunnr eq i_knb1-kunnr
           and kunnr in s_kunnr
           and vkorg eq i_knb1-bukrs.
        if sy-subrc ne 0.
          message i561.
          leave list-processing.
        endif.
      endif.
    endform.                    " get_knvv_details
         Form  get_linked_accounts_details
          To get the linked account details
    form get_linked_accounts_details.
      if not i_knvv[] is initial.
      get unique customer account KUNNR from i_bsid.
        i_knvv_tmp[] = i_knvv[].
        sort i_knvv_tmp by kunnr.
        delete adjacent duplicates from i_knvv_tmp comparing kunnr.
        clear v_kkber.
        concatenate 'C' p_bukrs+1(3) into v_kkber.
        sort i_knvv_tmp by kunnr.
      Fetch the Customer's account number and Customer Group
      details form Customer master credit management based on
      internal table i_bsid_tmp and Credit control area
        select kunnr kkber klimk knkli sbgrp grupp kdgrp
          from knkk
          into table i_knkk
          for  all entries in i_knvv_tmp
         where kunnr eq i_knvv_tmp-kunnr
           and kkber eq v_kkber.
        if not i_knkk[] is initial.
          i_knkk_tmp[] = i_knkk[].
          if p_lk_on = 'X' or not s_knkli[] is initial
                           or not s_kdgrp[] is initial.
            loop at i_knkk_tmp.
              loop at i_knkk where knkli eq i_knkk_tmp-knkli
                               and kunnr ne i_knkk_tmp-knkli.
                exit.
              endloop.
              if sy-subrc ne 0.
                delete i_knkk where knkli eq i_knkk_tmp-knkli.
              endif.
            endloop.
          endif.
          if not s_knkli[] is initial.
            delete i_knkk where not knkli in s_knkli.
          endif.
          if not s_kdgrp[] is initial.
            delete i_knkk where not kdgrp in s_kdgrp.
          endif.
          if not s_sbgrp[] is initial.
            delete i_knkk where not sbgrp in s_sbgrp.
          endif.
        else.
          message i561.
          leave list-processing.
        endif.
      else.
        message i561.
        leave list-processing.
      endif.
    endform.                    " get_linked_accounts_details
         Form  get_com_code_curr
          Get the company code and currency
    form get_com_code_curr .
      select bukrs waers
        from t001
        into table i_t001
       where bukrs eq p_bukrs.
    endform.                    " get_com_code_curr
         Form  get_open_ar_details
          Read BSID for all open AR
    form get_open_ar_details.
      if not i_knkk[] is initial.
        refresh i_knkk_tmp.
        i_knkk_tmp[] = i_knkk[].
        sort i_knkk_tmp by knkli.
        delete adjacent duplicates from i_knkk_tmp comparing kunnr.
      Fetch the from Accounting: Secondary Index for Customers
      based on internal table i_knvv and selection criteria(Posting Date
      -in the Document)
        select bukrs kunnr zuonr belnr budat bldat waers shkzg
               dmbtr wrbtr zfbdt zterm zbd1t zbd2t zbd3t kkber
          from bsid
          into table i_bsid
          for  all entries in i_knkk_tmp
         where bukrs eq p_bukrs
           and kunnr eq i_knkk_tmp-kunnr
           and umskz eq space
           and bstat eq space
           and budat in s_budat.
        if i_bsid[] is initial.
          message i561.
          leave list-processing.
        endif.
      else.
        message i561.
        leave list-processing.
      endif.
    endform.                    " get_open_ar_details
         Form  get_customer_name
          To get the customer name
    form get_customer_name.
      if not i_knvv_tmp[] is initial.
      Get the customer name from KNA1 for all customer
        select kunnr name1
          from kna1
          into table i_kna1
          for  all entries in i_knvv_tmp
         where kunnr = i_knvv_tmp-kunnr.
      endif.
    endform.                    " get_customer_name
         Form  get_payment_term_days
           To get the payment days
    form get_payment_term_days.
      if not i_bsid[] is initial.
        clear i_bsid_tmp.
        refresh i_bsid_tmp.
        i_bsid_tmp[] = i_bsid[].
        sort i_bsid_tmp by zterm.
        delete i_bsid_tmp where shkzg ne c_debit_s.
        if not i_bsid_tmp[] is initial.
        Get the Payment days from T052
          select zterm ztagg ztag1 ztag2 ztag3
            from t052
            into table i_t052
            for all entries in i_bsid
           where zterm = i_bsid-zterm.
        endif.
      endif.
    endform.                    " get_payment_term_days
         Form  populate_final_table
          To polupate final internal table
    form populate_final_table.
      sort i_bsid.
      sort i_kna1 by kunnr.
      sort i_knkk by kunnr.
      sort i_knkk_knkli by kunnr.
      sort i_knvv by vkorg kunnr.
      sort i_t052 by zterm ztag1 ztag2 ztag3.
      sort i_t001 by bukrs.
      loop at i_bsid.
        clear i_knb1.
        read table i_knb1 with key kunnr = i_bsid-kunnr
                                           binary search.
        if not i_knb1-busab in s_busab.
          continue.
        else.
          i_output-busab = i_knb1-busab.
        endif.
        clear i_knvv.
        read table i_knvv with key kunnr = i_bsid-kunnr
                                   vkorg = i_bsid-bukrs
                                          binary search.
        if not i_knvv-kvgr1 in s_kvgr1.
          continue.
        else.
          i_output-kvgr1  = i_knvv-kvgr1.
          i_output-zterm1 = i_knvv-zterm.
        endif.
      To read the data from kna1,knkk and knvv and moving data to final
      internal table i_output.
        perform move_kna1_knkk_knvv.
      To read the data from bsid and t052 and moving data to final
      internal table i_output.
        perform move_bsid_t052.
      To calculate the number of days.
        perform move_no_of_days.
      endloop.
    endform.                    " populate_final_table
         Form  move_kna1_knkk_knvv
         To read the data fron kna1,knkk and knvv
    form move_kna1_knkk_knvv.
      clear i_kna1.
      read table i_kna1 with key kunnr = i_bsid-kunnr
                                         binary search.
      if sy-subrc eq 0.
        i_output-name1 = i_kna1-name1.
      endif.
      clear i_knkk.
      read table i_knkk with key kunnr = i_bsid-kunnr
                                         binary search.
      if sy-subrc eq 0.
        i_output-knkli = i_knkk-knkli.
        i_output-kdgrp = i_knkk-kdgrp.
        i_output-klimk = i_knkk-klimk.
        i_output-sbgrp = i_knkk-sbgrp.
      endif.
    endform.                    " move_kna1_knkk_knvv
         Form  move_bsid_t052
         To read the data from BSID and T052
    form move_bsid_t052.
      move: i_bsid-kunnr  to  i_output-kunnr,
            i_bsid-zuonr  to  i_output-zuonr ,
            i_bsid-zterm  to  i_output-zterm,
            i_bsid-bldat  to  i_output-bldat,
            i_bsid-kunnr  to  i_output-kunnr1.
      read table i_t001 with key bukrs = i_bsid-bukrs
                                         binary search.
      if sy-subrc eq 0.
        move: i_t001-bukrs  to  i_output-bukrs,
              i_t001-waers  to  i_output-waers.
      endif.
      if i_bsid-shkzg eq c_credit_h.
        i_bsid-dmbtr  = - i_bsid-dmbtr.
      endif.
      move i_bsid-dmbtr  to  i_output-tot_ar.
    If base line date is initial, then use Document date.
      if i_bsid-zfbdt is initial.
        i_bsid-zfbdt = i_bsid-bldat.
      endif.
      if i_bsid-shkzg eq c_debit_s.
        clear v_paym_days.
        if not i_bsid-zbd3t is initial.
          v_paym_days = i_bsid-zbd3t.
        elseif not i_bsid-zbd2t is initial.
          v_paym_days = i_bsid-zbd2t.
        elseif not i_bsid-zbd1t is initial.
          v_paym_days = i_bsid-zbd1t.
      if no discount days is existing in BSID the
      take discount days from table T052
        else.
          clear : i_t052,
                  v_zterm.
          if i_bsid-zterm is initial.
            v_zterm = c_deflt_zterm_y000.
          else.
            v_zterm = i_bsid-zterm.
          endif.
          read table i_t052 with key zterm = v_zterm
                                       binary search.
          if sy-subrc eq 0.
            if not i_t052-ztag3 is initial.
              v_paym_days = i_t052-ztag3.
            elseif not i_t052-ztag2 is initial.
              v_paym_days = i_t052-ztag2.
            elseif not i_t052-ztag1 is initial.
              v_paym_days = i_t052-ztag1.
            endif.
          endif.
        endif.
        i_output-due_date = i_bsid-zfbdt + v_paym_days.
      else.
        i_output-due_date = i_bsid-zfbdt.
      endif.
      clear v_date_diff.
      v_date_diff = sy-datum - i_output-due_date.
      i_output-v_no_days = v_date_diff.
    endform.                    " move_bsid_t052
         Form  move_no_of_days
         To read the no of days
    form move_no_of_days.
      if i_knkk-grupp = c_sc01.
        i_output-spcol = i_bsid-dmbtr.
      else.
        if v_date_diff < 0.
          i_output-not_due = i_bsid-dmbtr.
        elseif v_date_diff = 0.
          i_output-curr_due = i_bsid-dmbtr.
        elseif v_date_diff <= 30.
         

  • Not able to view more than two line in table control

    Hi all,
    I am not able to see more than two lines in table control. Although my table control height is 21...
    Please see attached pic and suggest me what to do.

    hi,
    You have to set the LINES property of the table control In the PBO of your screen, to the number of entries in the internal table.
    data: lv_line type i.
    DESCRIBE TABLE  gt_table LINES lv_line.
    table_control-lines = lv_line + 1.
    or else
    You can do two thing in table control properties check horizontal and vertical scroll options plus in PBO you can based on number of lines in internal table assign it to TC_ABC-LINES if no lines are there then add by default 20..10.. any number of lines as you want.

  • TS3274 Email display problem: My email only display the list of emails and a preview (first two lines of the body of the mail). If one click on the message it only shows the heading on the right hand side of the screen, but not the content.

    My email only display the list of mails in my in box with a preview of the first two lines of the body of the message. When one clicks on the message to open it, only the header is displayed in the right hand side of the screen - the actual message is missing. This happens on older mail previously downloaded that use to work properly as well. Any idea how to fix this?

    Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Noted items in Two line items

    Hi All,
    Please help me in this. My client requirement is to post Noted items in two line items. As Debit and credit. How to configure this technic. Max points will be awarded for the solution.
    Thanks & Regards..
    Srikanth

    Hi,
    Noted items are special G/L transactions with informational character which only remind the user about due payments or payments to be made and are not displayed in the general ledger or added to it.
    Only one line item is updated if a noted item is created. No offsetting entry is made. That is why no zero balance check is made.
    There is no standard functionality in SAP to do so.
    Regards,
    Jigar

  • Two line items created while doing sales excise invoice

    Hi all,
    I have created an excise invoice through J1iin. But when I do so, there are two line items created for BED on excise paid. where as ideally there should only be one line item created.
    The standard entry should be as follows :
    Excise Duty BED Paid     617.00           
    Excise Duty SEC Pay     6.00-
    Basic Excise Duty  p     599.00-
    Excise Duty ECSPay     12.00-
    In my scenario the entry is as follows :
    Excise Duty BED Paid     181.00     here there are two line items created.
    Excise Duty BED Paid     436.00      
    Excise Duty SEC Pay     6.00-
    Basic Excise Duty  p     599.00-
    Excise Duty ECSPay     12.00-
    can anyone help on this?
    Thanks
    Priyanka
    Edited by: Priyanka Patwardhan on May 19, 2011 12:35 PM

    HI,
    Check the below settings are exist or not at your order to delivery copy controls.
    Order requirements     001    Header
    Combination requirmt   051    Combination
    Header Data            001    Header
    Header Data Ext. Sys   0
    Handling Units         000
    check and revert
    Regards
    Ram

  • PDS has input component twice, hance PReqs have two line items.

    Hi,
    In a subcontracting scenario, we are using PDS at Vendor location with only one component. However, the PDS has two entries for the component. Hence, the PRqs created frpm the plant on vendor have two line items.
    What could be a cause (setting) for the PDS to be created like this?
    Regards,
    Shiva

    Hi Senthil,
    The BOM/ PRod Vers looks correct. In fact, the PDS is created correctly using CURTO_CREATE transaction in test system, and so are all orders correct.  But, as a standard, we are using CIF IMods only for PDS transfer.
    What is the difference between transferring PDS using CIF IMods and CURTO_CREATE?
    Regards,
    Shiva

Maybe you are looking for

  • Can you have the same song on 2 different albums ?

    I would like to use the same track on 2 different albums. For example, one track on the original album and the same track on my own compilation album. One way would be to make two copies of the track and call them different names. e.g. UseSomebody1.m

  • Thinkpad T61 kernel panics

    I'm having some trouble with random kernel panics on a thinkpad T61. Sometimes they occur just after boot yet other times I can be using my laptop for hours with absolutely no problems before it decides to panic. I've attached a picture of the error

  • How Do You Add the Sum of Check Marks in a Form?

    I've built a form that has three fields across "Yes, No, In Progress". with several questions down the side. How do I count the "yes" "No" " In Progress" check mark fields? Also need to know what the script would be if I considered all the "No"and "I

  • Problem using SL3100 with Zen Visio

    Hideho... I'm having trouble using the next/previous track feature on the SL300 headphones when paired with my Zen vision M This is actually my second pair of headphones that i've tried to do this with, and this is the second time that i've had this

  • DVD Burner FIRMWARE Mat**bleep**a UJ8D1

    I am having a big problem with my Pavilion g6 laptop running Windows 7 OS. In my not-so-infinite wisdom I somehow managed to make a mess of the firmware on my DVD Burner (Mat**bleep**a UJ-8D1)  !!! I know this drive was working okay at Christmas 2012