Line items records should display in 1 line (means header line)

Hi,
Suppose i have 5 line items in my report against 1 document number, now i want that  when i execute the report with that document number, it show only 1 line item and sum of all amounts (means of all line items) ...
please let me know, how can i do it....

Now i m sending my code for ur ref...
Code----
TABLES : bsik,bkpf,bseg,j_1imovend,lfa1,t001,t005u,bsak,ekko,bsis.
DATA : BEGIN OF itab OCCURS 0,
       hkont LIKE bseg-hkont, "Gl account
       belnr LIKE bsik-belnr, "Document number
       gjahr LIKE bsik-gjahr, "Fiscal Year
       bldat LIKE bsik-bldat, "Document Date
       budat LIKE bsik-budat, "Posting Date
       mwskz LIKE bseg-mwskz, "Tax Code
       dmbtr LIKE bseg-dmbtr, "Amount
       buzei LIKE bseg-buzei, "line item
       lifnr LIKE bsik-lifnr, "Vendor number
       ebeln LIKE bseg-ebeln, "Purchasing Document
       ebelp LIKE bseg-ebelp, "line item nbr
       hwbas LIKE bseg-hwbas, "Base amount
       shkzg LIKE bseg-shkzg, "Debit/Credit code
       xblnr LIKE mkpf-xblnr, "Ven invoice nbr
       name1(25),                                           "name1
       ort01 LIKE lfa1-ort01,   "City
       j_1ilstno LIKE j_1imovend-j_1ilstno,  " Vendor tin nbr
       regio LIKE lfa1-regio, "Region Code
       bezei LIKE t005u-bezei, "Region desc
END OF itab.
DATA : BEGIN OF itab1 OCCURS 0.
        INCLUDE STRUCTURE itab.
DATA:END OF itab1.
DATA : BEGIN OF itab2 OCCURS 0.
        INCLUDE STRUCTURE itab.
DATA:END OF itab2.
***********************************Purchase order history
DATA:   BEGIN OF bet OCCURS 50.
        INCLUDE STRUCTURE ekbe.
DATA:   END OF bet.
DATA:   BEGIN OF bzt OCCURS 50.
        INCLUDE STRUCTURE ekbz.
DATA:   END OF bzt.
DATA:   BEGIN OF betz OCCURS 50.
        INCLUDE STRUCTURE ekbez.
DATA:   END OF betz.
DATA:   BEGIN OF bets OCCURS 50.
        INCLUDE STRUCTURE ekbes.
DATA:   END OF bets.
DATA:   BEGIN OF xekbnk OCCURS 10.
        INCLUDE STRUCTURE ekbnk.
DATA:   END OF xekbnk.
TYPE-POOLS: slis.
DATA: linecolor TYPE slis_specialcol_alv OCCURS 0 WITH HEADER LINE.
DATA: alv_layout TYPE slis_layout_alv.
DATA: fieldcat TYPE slis_t_fieldcat_alv,
      fieldcat_ln LIKE LINE OF fieldcat,
      sortcat TYPE slis_t_sortinfo_alv,
      sortcat_ln LIKE LINE OF sortcat,
      eventcat TYPE slis_t_event,
      eventcat_ln LIKE LINE OF eventcat,
      alv_print TYPE slis_print_alv.
DATA :col_pos TYPE i.
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME.
PARAMETERS :  hkont LIKE bseg-hkont OBLIGATORY. "GL Code
SELECT-OPTIONS : belnr FOR bsik-belnr, "Document number
               gjahr FOR bsik-gjahr, "Fiscal Year
               bldat FOR bsik-bldat, "Document date
               budat FOR bsik-budat. "posting Date
SELECTION-SCREEN END OF BLOCK a.
SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME.
PARAMETERS: detail RADIOBUTTON GROUP gr1,
            summry RADIOBUTTON GROUP gr1.
SELECTION-SCREEN END OF BLOCK b.
SELECT DISTINCT hkont belnr gjahr bldat budat INTO CORRESPONDING FIELDS OF TABLE itab
                  FROM bsis
                  WHERE bukrs = '1000'
                  AND hkont = hkont
                  AND belnr IN belnr
                  AND gjahr IN gjahr
                  AND bldat IN bldat
                  AND budat IN budat.
SORT itab BY belnr.
LOOP AT itab.
  SELECT * FROM bseg WHERE belnr = itab-belnr
                                               AND gjahr = itab-gjahr
                                               AND bukrs = '1000'
                                               AND ( ebeln <> ' ' OR hkont = hkont ).
    IF sy-subrc = 0.
      itab-buzei = bseg-buzei.
      itab-mwskz = bseg-mwskz.
      IF bseg-ebeln <> ' '.
        itab-ebeln = bseg-ebeln.
        itab-ebelp = bseg-ebelp.
        MODIFY itab.
      ENDIF.
      IF bseg-hkont = hkont.
        itab-shkzg = bseg-shkzg.
        itab-hwbas = bseg-hwbas.
        itab-dmbtr = bseg-dmbtr.
        IF itab-shkzg = 'H'.
          itab-dmbtr = itab-dmbtr * ( -1 ).
        ENDIF.
        MOVE-CORRESPONDING itab TO itab2.
        APPEND itab2.
      ENDIF.
    ENDIF.
  ENDSELECT.
ENDLOOP.
LOOP AT itab2.
  SELECT SINGLE * FROM ekko WHERE ebeln = itab2-ebeln.
  IF sy-subrc = 0.
    itab2-lifnr = ekko-lifnr.
  ENDIF.
  CALL FUNCTION 'ME_READ_HISTORY'
    EXPORTING
      ebeln  = itab2-ebeln
      ebelp  = itab2-ebelp
      webre  = 'X'
    TABLES
      xekbe  = bet
      xekbz  = bzt
      xekbes = bets
      xekbez = betz
      xekbnk = xekbnk.
  itab2-xblnr = bet-xblnr.
  SELECT SINGLE * FROM lfa1 WHERE lifnr = itab2-lifnr.
  itab2-name1 = lfa1-name1.
  itab2-ort01 = lfa1-ort01.
  itab2-regio = lfa1-regio.
  SELECT SINGLE * FROM t005u WHERE bland = itab2-regio
                              AND spras = 'EN'
                              AND land1 = 'IN'.
  itab2-bezei = t005u-bezei.
  SELECT SINGLE * FROM  j_1imovend WHERE lifnr = itab2-lifnr.
  IF sy-subrc = 0 .
    itab2-j_1ilstno = j_1imovend-j_1ilstno.  " Vendor tin nbr
  ENDIF.
  MODIFY itab2.
ENDLOOP.
PERFORM build_fieldcat1.
PERFORM build_fieldcat2.
PERFORM build_fieldcat3.
PERFORM build_fieldcat4.
PERFORM build_fieldcat5.
PERFORM build_fieldcat6.
PERFORM build_fieldcat7.
PERFORM build_fieldcat7_1.
PERFORM build_fieldcat8.
PERFORM build_fieldcat9.
PERFORM build_fieldcat10.
PERFORM build_fieldcat11.
PERFORM build_fieldcat12.
PERFORM build_eventcat.
PERFORM start_list_viewer.
*&      Form  BUILD_EVENTCAT
      text
-->  p1        text
<--  p2        text
FORM build_eventcat.
  eventcat_ln-name =  slis_ev_top_of_page.
  eventcat_ln-form = 'TOP_OF_PAGE'.
  APPEND eventcat_ln TO eventcat.
  APPEND eventcat_ln TO eventcat.
ENDFORM.                    " BUILD_EVENTCAT
*&      Form  START_LIST_VIEWER
      text
-->  p1        text
<--  p2        text
FORM start_list_viewer.
  DATA: pgm LIKE sy-repid.
  pgm = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     i_callback_program                = pgm
     i_callback_user_command           = 'USER-COMMAND'
     it_fieldcat                       = fieldcat
     i_save                            = 'A'
     it_events                         = eventcat
    TABLES
      t_outtab                          = itab2
EXCEPTIONS
  PROGRAM_ERROR                     = 1
  OTHERS                            = 2
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    "start_list_viewer
      FORM build_fieldcat1                                          *
FORM build_fieldcat1.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'BELNR'.
  fieldcat_ln-seltext_m       = 'Doc No'.
  fieldcat_ln-outputlen = '20'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT1
      FORM build_fieldcat2                                          *
FORM build_fieldcat2.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'BLDAT'.
  fieldcat_ln-seltext_m       = 'Doc DATE'.
fieldcat_ln-outputlen = '20'.
  fieldcat_ln-datatype  = 'DATS'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT2
      FORM build_fieldcat3                                          *
FORM build_fieldcat3.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'BUDAT'.
  fieldcat_ln-seltext_m       = 'POSTING DT'.
fieldcat_ln-outputlen = '20'.
  fieldcat_ln-datatype  = 'DATS'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT3
      FORM build_fieldcat4                                          *
FORM build_fieldcat4.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'LIFNR'.
  fieldcat_ln-seltext_m       = 'VENDOR'.
  fieldcat_ln-outputlen = '10'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT4
      FORM build_fieldcat5                                          *
FORM build_fieldcat5.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'NAME1'.
  fieldcat_ln-seltext_m       = 'Name'.
  fieldcat_ln-outputlen = '25'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT5
      FORM build_fieldcat6                                          *
FORM build_fieldcat6.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'ORT01'.
  fieldcat_ln-seltext_m       = 'CITY'.
  fieldcat_ln-outputlen = '15'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT6
      FORM build_fieldcat7                                          *
FORM build_fieldcat7.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'J_1ILSTNO'.
  fieldcat_ln-seltext_m       = 'TIN'.
  fieldcat_ln-outputlen = '25'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT7
      FORM build_fieldcat7_1                                        *
FORM build_fieldcat7_1.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'BEZEI'.
  fieldcat_ln-seltext_m       = 'Region'.
  fieldcat_ln-outputlen = '15'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT7_1
      FORM build_fieldcat8                                          *
FORM build_fieldcat8.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'MWSKZ'.
  fieldcat_ln-seltext_m       = 'Tax c'.
  fieldcat_ln-outputlen = '4'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT8
      FORM build_fieldcat9                                          *
FORM build_fieldcat9.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'EBELN'.
  fieldcat_ln-seltext_m       = 'Purchase Ord'.
  fieldcat_ln-outputlen = '20'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT9
      FORM build_fieldcat10                                         *
FORM build_fieldcat10.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'HWBAS'.
  fieldcat_ln-seltext_m       = 'Base Amount'.
  fieldcat_ln-outputlen = '15'.
  fieldcat_ln-datatype  = 'CURR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT10
      FORM build_fieldcat11                                         *
FORM build_fieldcat11.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'DMBTR'.
  fieldcat_ln-seltext_m       = 'Tax amt'.
  fieldcat_ln-outputlen = '15'.
  fieldcat_ln-datatype  = 'CURR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT11
      FORM build_fieldcat12                                         *
FORM build_fieldcat12.
  ADD 1 TO col_pos.
  fieldcat_ln-ref_tabname = 'ITAB2'.
  fieldcat_ln-fieldname   = 'XBLNR'.
  fieldcat_ln-seltext_m       = 'VEN INV no'.
  fieldcat_ln-outputlen = '20'.
  fieldcat_ln-datatype  = 'CHAR'.
  fieldcat_ln-key         =  space.
  fieldcat_ln-no_zero     = space.
  fieldcat_ln-do_sum      = space.
  fieldcat_ln-col_pos     = col_pos.
  fieldcat_ln-no_out      = space.
  fieldcat_ln-qfieldname  = space.
  fieldcat_ln-hotspot     = space.
  APPEND fieldcat_ln TO fieldcat.
ENDFORM.                    " BUILD_FIELDCAT12
      FORM TOP_OF_PAGE
FORM top_of_page.
  PERFORM batch-heading.
ENDFORM.                    "top_of_page
*&      Form  BATCH-HEADING
      text
-->  p1        text
<--  p2        text
FORM batch-heading.
  DATA: lc_laufd(10)  TYPE c,
        lc_text(100)  TYPE c,
        lc_text2(100) TYPE c,
        lc_text3(100)  TYPE c,
        lc_date(10) TYPE c,
        lc_date1(10) TYPE c,
        lc_date2(10) TYPE c.
  DATA: li_len  TYPE i,
        li_len2 TYPE i,
        li_len3 TYPE i,
        li_pos  TYPE i,
        li_pos2 TYPE i,
        li_pos3 TYPE i.
  WRITE sy-datum TO lc_date.
write audat-low to lc_date1.
write audat-high to lc_date2.
  lc_text = 'Purchases from Intrastate'.
concatenate lc_text spmon_out into lc_text2
  CONCATENATE lc_text 'As On' lc_date INTO lc_text2
concatenate lc_text 'From' lc_date1 'To' lc_date2 into lc_text2
  SEPARATED BY space .
  PERFORM read_t001 USING '1000'.
  lc_laufd = 'ZFI'.
  FORMAT INTENSIFIED ON.
calculate output positions
  li_pos2 = sy-linsz - 25.
  li_pos3 = sy-linsz - 10.             " pos. for name, date, time
  li_pos  = sy-linsz / 2  - STRLEN( lc_text2 )  .
*first line
  WRITE AT 1          t001-butxt.
write at li_pos(75) lc_text2 .
  WRITE AT 40 lc_text2 .
  WRITE: AT li_pos2    sy-datum, ' /  '.
  WRITE AT li_pos3    sy-uzeit.
  NEW-LINE.
  WRITE  AT li_pos2 'Page'.
  WRITE  AT li_pos3 sy-pagno LEFT-JUSTIFIED.
  NEW-LINE.
  WRITE  AT li_pos2 lc_laufd .
  NEW-LINE.
third line.
  lc_text3 = text-014.
  REPLACE '&BUKRS' WITH '1000' INTO lc_text3.
  WRITE AT 1 lc_text3.
  SKIP.
ENDFORM.                    " BATCH-HEADING
      FORM READ_T001
-->  P_PAR_ZBUK
FORM read_t001 USING    p_par_zbuk.
  SELECT SINGLE * FROM t001 WHERE  bukrs =
p_par_zbuk.
  IF sy-subrc NE 0.
    t001-butxt = space.
    t001-ort01 = space.
  ENDIF.
ENDFORM.                                                    "read_t001
Plz check that how can i use collect in it...

Similar Messages

  • 0BBP_TD_SC_1 Header GUID in item record does not match Header GUID

    Hi all,
    We are testing shopping cart (Line Item) extractor (0BBP_TD_SC_1) and we are finding that for some shopping carts, the Header GUID in the item record does not match GUID in the header record.
    The item record, however, has a field called 'DOC GUID' which matches the header GUID.
    Also, Header and Item GUID in the item record are identical.
    Is this how the extractor is supposed to work?
    Any suggestions will be appreciated, and points will be assigned.
    Edited by: RDA on Mar 20, 2009 10:34 PM

    Isn't it in BUP_VENDOR_ID?

  • SharePoint: Workflow to retrieve all users and Create list item record for each user

    Hi all,
    My share point site have two Lists as Holidays and MyCalender.
    Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
    on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
    I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
    solution for this.. Thanks in advance!

    You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
    Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How many items can be displayed on the same line in APEX form?

    Hello,
    I have 5 items that I want to display on the same line in a form, but the fifth item is displaying on the next line eventhough I defined it as "no" in Begin On New Line and "no" in ...Field. Is there a limmitted number of items that can be display on the same line? Any help is greatly appreciated, thanks so much in advance.
    I want the 5 items to be display like this,
    Appendix1 _____ 2 _____ 3 _____ 4 _____ 5 _____
    But it is displaying,
    Appendix1 _____ 2 _____ 3 _____ 4_____ 5
    Thank you,
    MT

    If you define the 'Begin On New Line' property to 'No', it should work. I just tested it. Do you absolutely need to set the 'Begin On New Field' property to 'No'? That might change the facts.
    Best regards,
    Mathieu

  • Line item PO should disply in the report

    Hi,
    As per the business requriement i need to display the line item PO discritpion into the  report.
    Currently we have one existing Z report and we are developing new Z reprot by copying that exisitng report by adding the line field.
    The PO number field is same for both header and line item ( the reason could be since header PO number header data which is copied to all the line items). the field name for both is VBKD-BSTKD
    Sales order:
    we have developed one new Z report as per the above requirement, below is the output of it. it is showing both line items are HEADER PO only. But our requriement it should display the 2nd line item as ITEM PO1 which was manually changed by the user in sales order.
    So what is the field and table i should give to the ABAP er so that it would display the line item PO details of Sales order into the report.
    Please let me know if you need any further details?
    thanks,

    Hi Lakshmipathi Sir,
    Thanks for your reply. Could you please let me know how exactly i need to mention the logic to ABAPer.
    I can see two fields are giving from VBKD table with line item wise it is displaying.
    1. BSTKD
    2. BSTKD_M
    thanks,

  • Line items is not displaying

    Hi,
    When i simulate in F-28, line items is not displaying
    eg: 40  SBI  1500
    only displaying the remaining items like
    eg: 40  discount 500
          50  ABC     2000
    is not displaying
    what may be reason. where can i change settings
    Rgds
    sunfico

    This will happen as the system searches for automatically created line items, in this case, the discount.
    Nothing to worry, press Enter key twice, after simulation, you should get the all line items display
    Thanks
    Siva

  • Automatic Payment program -line item cleared not displaying in table

    automatic Payment program -line item cleared not displaying in table
    i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
    Can some one please guide me on this.

    Hi Priyanka,
    First, which table are you referring to.  If your fist APP run clears the line item, it will no longer be available in the open item. 
    Please be more specific on the problem so that we can try to help you.  If possible, please provide screenshots.
    Regards,
    Ganesh

  • PR Line Item Number should be Same for PO Line Item Numebr

    Hi Gurus,
    I have a rare Requiremenet. I will convert Only one PR to PO(So It is one to one) PR Item Number should Be Equal to PO Item Number.. can anybody suggest me is there any way to achive this.
    Explanation:
    Actually we will create third party Sale order and with A BAPI we  create PO in background.
    I will change Sales Order qty(Decrease directly or increse with schedule lines) so new PR items will be generated or Existing may be deleted. now i want my PR Item number should be equal to PO Item Number.
    In BAPI we have a provision to provide PR number still system is taking in sequential intervel of 10,20,30....
    How to overide this...
    EX:
                     PR               PO
    ItemNO      10              10
    ItemNO      30              30
    Thanks
    Pradeep

    Hi Monika,
    Thanks a lot my issue got resolved. annd i have another question regarding BAPI_PO_Change.
    Actually i am passing Price from PR to PO and i am making no_price_from_po while chenging PO and i am passing PRICE from SO to PO. Below scenario will explain My requirement.
    In third party we are creating Automatic PO from SO. we have developed one ZTrasaction for SO Approval in two stages, in second level Approval we are converting PR to PO.
    while creating we are able to pass Price value from SO to PO From Condition in the Pricing procedure.
    while changing we have 3 scenarios
    1.Changing Existing PR Item quantity
    2. Adding one more schedule line to the Existing SO so it will create one more PR Item
    3. we are adding one more Line Item in the SO in this case also one more PR Item will be generated
    we are able to convert each PR Item will be one PO line Item 
    But while changing we will have PO still we don't want to copy the Price from Previous Document.
    we have activated no_price_from_PO in the BAPI but still system is taking from previous Document.
    Pl suggest me if there anyway to over come this issue...
    Thanks
    -Pradeep

  • Under each line item i should get an underline

    In my smartforms under each line item i should get an underline,how to do it.

    Hi,
    i think you just want underlines but not horizontal lines.
    If you want underline check the paragraph which was already used for that item, create another paragraph
    format as your old one and select the underline optine for your new paragraph format in the style and assign the
    same paragraph where you exactly required.
    if you want horizontal lines.
    1). Select the pattern any if suitable to your requirement.
    2). In the text node you can write contiouns '_'.
    3). In the text node output options check the frame check box and in the pattern select upper line or bottom line
         but in table or template you can't select the frame check box.
    Thanks,
    Phani.

  • A top level menu item should display its active state if any of its submenu items are active

    Example case: I'm designing a Muse site which is basically a portfolio of our work. We design books, doing page layout and covers. We have numerous book categories and sub categories which I put in a horizontal menu. When a given top level category menu item doesn't have a submenu, it is a hyperlink and it displays active state when the browser displays its linked page. But when a given page is displayed from a submenu link, its top level menu item does NOT display active state. I think it should.
    For example, we have a "Nostalgia" category which has "Film" and "TV" subcategories. Because the menu item, "Nostalgia" has a submenu containing "Film" and "TV", the label "Nostalgia" is not a hyperlink. The submenu attached to it has the two hyperlinked items "Film" and "TV". When the browser is displaying either linked page, the submenu is hidden. So it would be nice if the top level item, "Nostalgia" would display in an active state.

    Hello Daniel,
    As of now this feature is not there in Adobe Muse.
    I would suggest you to please log this as a feature request in our "Ideas for features in Adobe Muse" section. (http://forums.adobe.com/community/muse/ideas)
    Hope this helps.
    Regards,
    Sachin

  • Number of items/records display

    I want to set the number of items/records display base on query. I tried Set_Block_Property and Set_Item_Property, they don't have any option for me to set it dynamically. Any ideas?
    Thanks

    A couple:
    a) Set QUERY ALL RECORDS to YES, and programmaticaly set MAXIMUM RECORDS FETCHED.
    b) in a POST-QUERY block-level trigger, check the :system.trigger_record. When it reaches the number you want, issue an ABORT_QUERY built-in.
    Hope this helps,
    Pedro

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • Fields missing in item records

    hello,
    IDOC - File
    IDOC has header line and multiple item lines (appearing in one of the segments of IDOC)
    when I mapped, all the fields of the item 1 are displayed but from item2, item3 and so on many fields are missing
    i.e say each item has some 25 fields
    for item 1, 25 fields are displayed
    for item2 onwards only 8 fields are displayed
    I want 25 fields to be displayed for item 2, item3 ... item n as well
    all the source side fields are mapped with the destination fields through MapwithDefault ** so even if the source field doesnt come it should populate and empty space
    which is not happening now.
    can I achieve the above with standard functions?
    regards,
    nikhil.

    Veera,
    I have used mapwithdefault, which is one step ahead of the exists.
    it will populate space if the source field doesnt exists. same time it will populate empty space even if the source segment doesnt appear
    so I dont think exists will be of much use.
    The first occurance of Item has all the 25 fields(if fields are not present, empty spaces are displayed )
    from second item onwards (the same structure of item but the fields vary), only 8 fields are populated
    nikhil.

  • Open PO items that should have been already delivered

    Hi,
    is there a transaction where you can see the open PO items that should have been delivered already up to a certain date? If a PO has several scheduling lines and also several confirmations were entered for the scheduling lines only quantities should be displayed were the delivery date is due (based on the selection date/usually the current date) on no GR was made so far.
    I tried already ME2N with selection parameter WE101 but this shows all open items (in past and future).
    And a problem I have in general is, that I dont see a direct link between the scheduling lines and the confirmations.
    Cheers
    Mathias

    ME2L gives the same result. I dont want to see the delivery schedules that are in the future but only the ones that are overdue (delivery date in the past and no GR received).
    I checked ME2V, as I did not know it. But this is for warehouse people I guess. It shows with volume/weight info what is expected as GR per day on document level.

  • Problem in the code while fetching records and displaying in the screen

    Hi,
       I have developed a screen which is having various fields, all the records are stored in a ztable,when i enter the records into various i/o fields and press submit pushbutton they are stored in the table now, what i wont is when i enter one record the (primary one) and press enter the corresponding records of that record should be shown in the i/o fields means they should be fetched back from the d/b table and displayed on the screen. For this i Have written a code please see it once.
    TABLES : ZFISALDT.
    DATA ITAB LIKE ZFISALDT OCCURS 0 WITH HEADER LINE.
    ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    ZFISALDT-SALESDOCU = ITAB-SALESDOCU.
    ZFISALDT-FORM402 = ITAB-FORM402.
    ZFISALDT-SALESTAXFORM = ITAB-SALESTAXFORM.
    ZFISALDT-FREIGHTDOCNO = ITAB-FREIGHTDOCNO.
    ZFISALDT-FPARTYNAME = ITAB-FPARTYNAME.
    *&      Module  STATUS_5555  OUTPUT
          text
    MODULE STATUS_5555 OUTPUT.
      SET PF-STATUS 'SALALL'.
      SET TITLEBAR 'SAL'.
    ENDMODULE.                 " STATUS_5555  OUTPUT
    *&      Module  USER_COMMAND_5555  INPUT
          text
    MODULE USER_COMMAND_5555 INPUT.
    CASE SY-UCOMM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'SUB'.
    IF ZFISALDT-BILLINGDOCU = ' '
    OR ZFISALDT-SALESDOCU = ' '.
    MESSAGE 'PLEASE FIRST SUBMIT THE BILLING DOCUMENT NO AND SALES DOCUMENT NO' TYPE 'E'.
    ENDIF.
    ZFISALDT-BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ZFISALDT-SALESDOCU = ZFISALDT-SALESDOCU.
    ZFISALDT-FORM402 = ZFISALDT-FORM402.
    ZFISALDT-SALESTAXFORM = ZFISALDT-SALESTAXFORM.
    *ZFISALDT-FREIGHTDOCNO = ZFISALDT-FREIGHTDOCNO.
    *ZFISALDT-FPARTYNAME = ZFISALDT-FPARTYNAME.
    *SUBMIT ITAB.
    WHEN ' '.   (THIS THE PART OF CODE WHICH IS NOT WORKING)
    SELECT * FROM ZFISALDT INTO corresponding fields of TABLE ITAB WHERE BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ITAB-BILLINGDOCU = ZFISALDT-BILLINGDOCU.
    ITAB-SALESDOCU = ZFISALDT-SALESDOCU.
    ITAB-FORM402 = ZFISALDT-FORM402.
    *ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    *ZFISALDT-BILLINGDOCU = ITAB-BILLINGDOCU.
    *ZFISALDT-SALESDOCU = ITAB-SALESDOCU.
    *ZFISALDT-FORM402 = ITAB-FORM402.
    *ZFISALDT-SALESTAXFORM = ITAB-SALESTAXFORM.
    append ITAB.                                                      (ALSO USED INSERT BUT NOT WORKING)
    WHEN 'ENTER'.
    IF ZFISALDT-BILLINGDOCU = ' '
    OR ZFISALDT-SALESDOCU = ' '.
    MESSAGE 'PLEASE FIRST SUBMIT THE BILLING DOCUMENT NO AND SALES DOCUMENT NO' TYPE 'E'.
    ENDIF.
    ZFISALDT-FREIGHTDOCNO = ZFISALDT-FREIGHTDOCNO.
    ZFISALDT-FPARTYNAME = ZFISALDT-FPARTYNAME.
    ZFISALDT-FREIGHTBILLNO = ZFISALDT-FREIGHTBILLNO.
    ZFISALDT-FREIGHTDATE = ZFISALDT-FREIGHTDATE.
    ZFISALDT-TRUCKNO = ZFISALDT-TRUCKNO.
    ZFISALDT-FREIGHTAMOUNT = ZFISALDT-FREIGHTAMOUNT.
    ZFISALDT-COMNAGBILL = ZFISALDT-COMNAGBILL.
    ZFISALDT-AGENTNAME = ZFISALDT-AGENTNAME.
    ZFISALDT-CAGDATE = ZFISALDT-CAGDATE.
    ZFISALDT-CMNAGAMOUNT = ZFISALDT-CMNAGAMOUNT.
    ZFISALDT-SHIPMENTNAME = ZFISALDT-SHIPMENTNAME.
    ZFISALDT-SHIPDOCUNO = ZFISALDT-SHIPDOCUNO.
    ZFISALDT-SHIPBILLNO = ZFISALDT-SHIPBILLNO.
    ZFISALDT-SHIPBILLDATE = ZFISALDT-SHIPBILLDATE.
    ZFISALDT-BLNOGOV = ZFISALDT-BLNOGOV.
    ZFISALDT-CHAAGENTNAME = ZFISALDT-CHAAGENTNAME.
    ZFISALDT-CHABILL = ZFISALDT-CHABILL.
    ZFISALDT-CHADATE = ZFISALDT-CHADATE.
    ZFISALDT-CHAAMOUNT = ZFISALDT-CHAAMOUNT.
    ZFISALDT-B_L_NO = ZFISALDT-B_L_NO.
    ZFISALDT-B_L_NODATE = ZFISALDT-B_L_NODATE.
    ZFISALDT-DEPBLICNO = ZFISALDT-DEPBLICNO.
    ZFISALDT-LICENCE_DATE = ZFISALDT-LICENCE_DATE.
    ZFISALDT-FOC_VALUE = ZFISALDT-FOC_VALUE.
    ZFISALDT-DEPB_VALUE = ZFISALDT-DEPB_VALUE.
    INSERT ZFISALDT.
    CLEAR ZFISALDT.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_5555  INPUT
    This is the code please check it once.
    Thanks in advance.

    Hi Sumeet.
    WHEN ' '.  " (THIS THE PART OF CODE WHICH IS NOT WORKING)
    SELECT * FROM ZFISALDT INTO corresponding fields of TABLE ITAB WHERE BILLINGDOCU = ZFISALDT-BILLINGDOCU.     
    " here in where condition u r checking with ZFISALDT-BILLINGDOCU, i guess there is no value in that, Once check in debugging mode and proceed further.
    Regards,
    Aby

Maybe you are looking for