Variant in standard reports

Dear Experts
Good Morning
I have query about creation of variant in standard reports
1) i want to create variant which automatically change its date on next day
2) one variant which can automatically pick the start and end date of month
waiting for reply
usefull answers are rewarded
Thanks and warm regards
Rajeev Garg

Dear Rajeev Garg,
please see documentation regarding this issue:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c0/980398e58611d194cc00a0c94260a5/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c0/98039be58611d194cc00a0c94260a5/frameset.htm
Regards,
Sabine

Similar Messages

  • Variant form standard report to z report

    hi guys,
                   I have copied a standard program to my z report.But when i execute the standard report its picking the variant from LTDX table and its working fine.But when i run my zreport its not showing the same output as in my standard progrom.So how i need to copy the same variant to my zreport

    hi thanks a lot guys..Let me tell you my requirement.For tcode IW47, when it executed its not displaying the field OPRATION SHORT TEXT field (ltxa1).So i copied the IW47 to my z report and debugged the whole code.But still unable to get the field in output.Its getting populated in field catalog.Where might be the problem.???

  • Standard report Variant creation

    Hi ,
    i am trying to create the dynamic variant for standard report   RKWTP_CPTD, which contains the period and fiscal year fields on
    selection screen, now i need to create variant as period has to  be current month -1 month i.e it has to show previous month
    and for year , the current  year has to result in dynamic variant.
    if any idea creating the variant please help me.
    Thanks
    SrInI

    First did you look for already available option in online help ?
    (e.g. ABAP Workbench Tools , Variant Maintenance , Variable Values in Variants, etc.)
    If none fulfills your requirement, you could create your own variant in TVARVC and update those in a report executed in a daily scheduled periodic job (You can copy some code from RVSETDAT)
    Regards,
    Raymond

  • Line Item Not dispaying in Payment Advice standard report

    Hi Experts,
    I have cleared line items of a vendor by making payment through F-53 and subsequently generated the Print Form spoon request through FBZ5. But in the print, line items (cleared Items) doesn't display in Payment advice report. But for the Fiscal Year 2009 line items (Cleared item) was displaying in the Payment Advice report which is now not displaying.Since it is a standard report no changes made. So please suggest how to achieve it.
    Thanks in Advance,
    Arabinda

    Hello,
    In tr. F-53 you post a payment document,
    but to print a check you need to use some check printing program.
    SAP-delivered program is RFFOUS_C and it processes only
    one bank line per payment document.
    Please check the following general information:
    The standard form (of the print program RFFOUS_C) prints the invoice
    items followed by the check.  If the item details overflow to the next
    page, then the first check (eg cheque no. 1) will be voided and you'll
    get the valid cheque on second page (eg cheque no. 2). This is standard
    functionality.
    Also I would request you to recheck your customising in FBZP i.e.
        -> Click on the 'Payment methods in company code' button
        -> Double click on the appropriate 'Pymt meth.'
           -> Click on the 'Pyt adv. ctrl' button
              ¦ Note to payee lines on the form  /               ¦
              ¦                                                  ¦
              ¦ O  restricted to                       98 Rows   ¦
              ¦ O  None                                          ¦
              ¦ O  as many as req                                ¦
              ¦__________________________________________________¦
    - The first option will restrict the number of lines on the form to a
    value from 1 to a maximum of 98.
    - The second option will restrict the number of lines on the form to
    zero.
    - The third option option will not restrict the number of lines on the
    form.
    You may test in the system which among the three options will suit your
    needs. There is a documentation available at the side of each button.
    Also please check whether the problem happens with the standard SAP
    program. You may wish to review the documentation for RFFOUS_C via
    transaction SE38 -> Enter program name -> Select 'Documentation' radio
    button -> Display -> scroll to 'Setting up and changing the SAPscript
    forms (layout sets)'.
    Also you can refer to the parameter `No form summary section' in the
    variant of RFFOUS_C. By setting this indicator, you can prevent the form
    summary section from being printed hence the overflow is avoided and
    thus eliminates the voided check issue. Please refer to F1 Help of this
    field for further information.
    Also please refer to the F1 help on the indicator "Indicator: Do not
    Void any Checks" in the selection screen of payment program RFFOUS_C.
    I hope this helps.
    BR,
    Raquel

  • Difference in GL Balances between two Standard Report fbl3n and fagll03

    Hi ,
    Mismatch of balances between two standard report ie.fbl3n and fagll03 . We are giving the complete example of what we are facing right now ... please go through the examples .
    ENTRY NO. 1
    We have posted one MIRO , Accounting Posting is as below : -
    PK         Description    Amount       
    86         GR/IR             1000.00               
    31         Vendor           -800.00
    50          TDS               -200.00
    ENTRY NO. 2
    We have Reversed the MIRO through MR8M , Accounting Posting was as below : -
    PK         Description     Amount       
    21         Vendor             800.00
    40          TDS                 200.00
    96          GR/IR            -1000.00
    But in Standard report FAGLL03 , .The line items of above twoi entries under GL " TDS " are showing in this way  : -
    Doc No.      PK      Ammount
    Entry 1       50          -200.00
    Entry 2       40          -200.00 -
    > ?????
    *OPEN ITEMS          - 400.00----
    > ?????
    Although in other Standard report FBL3N , the same are showing correctly as shown below
    Doc No.      PK      Ammount
    Entry 1       50          -200.00
    Entry 2       40          +200.00
    *OPEN ITEMS                0.00
    PLEASE HELP
    Regards
    Soumitra Bhattacharya

    Hi
    FAGLL03 - Display/Change Items (New)  - this report is related to ledger reporting purpose.  this reports is available after ECC 5.0.
    FBL3N - is line item display - this is only GL reports (not in ledger reporting)
    if you find any difference is values please check the report variant you are using and ledger you are activated.
    hope this will help you.
    Regards
    Ram

  • SAP standard Report-PO, delivery Note, Bill of lading,Header txt,GR/GI slip

    Dear Firends,
    Kindly tell me the SAP standard Report which give the details of
    Po number, delivery Note, Bill of lading, Header text and GR/GI slip no.
    Thanks in advance.
    Regards,
    william

    Hi,
    You can get all these fields in MB51 report by selecting the relavant fields in the selection variant. If any of the required fields are not available than you can add those in img -going tothe Inv Mgt-Reporting - Define field selection for material document list.
    Dhruba

  • Report Toolkit Standard Report Print Problem

    We are trying to print a label out on a Zebra QL220+ Thermal Printer.  Using the Report Generation Toolkit and selecting the Report Type as "WORD" it works fine.  However by ONLY changing the Report Type to "STANDARD REPORT" it still prints out the label OK, but then scrolls out another blank label - it's like some sort of form feed character/command is somehow being appended.
    We don't want to use the WORD Report Type, because I assume we have to install MS Office, which we don't want.
    As you can see from the attached VI, it is just some very basic text that we are writing to the Label.
    Is there some way we can see what data is actually being sent to the Printer for the two different Report Types?
    Chris
    Attachments:
    Zebra Label Print.vi ‏43 KB

    If your printer is networked you would open a TCP connection on port 6101 to the printer. If serial simply send the data via normal VISA commands.
    Here is the CPCL for the one example label in your code:
    ! 0 200 200 440 1
    TEXT 0 2 10 10 Date: <DATE>
    TEXT 0 2 10 30 Time: <TIME>
    TEXT 0 2 10 50 Operator: <INITIALS>
    TEXT 0 2 10 70 Location: <LOCATION>
    TEXT 0 2 10 90 Reason: <REASON>
    TEXT 0 2 10 110 Post Comment: <COMMENT>
    TEXT 0 2 10 130 S/N: <SN>
    TEXT 0 2 10 150 Dryness Fraction:
    TEXT 0 2 10 170 Signature:
    LINE 100 190 300 190 1
    PRINT
    In the above label you would programmatically replace the "<x>" fields with the actual data you wanted printed. For your multiple S/Ns you would use a loop to add the lines with each S/N.
    From the CPCL manual here are the pages for the elements I used above:
    TEXT Commands
    The TEXT command is used to place text on a label. This
    command and its variants control the specific font number
    and size used, the location of the text on the label,
    and the orientation of this text. Standard resident fonts
    can be rotated to 90° increments as shown in the example.
    Format:
    {command} {font} {size} {x} {y} {data}
    where:
    {command}: Choose from the following:
    TEXT Prints text horizontally.
    (or T)
    VTEXT Prints text (vertically) rotated 90
    (or VT) degrees counterclockwise.
    TEXT90 (Same as VTEXT above.)
    (or T90)
    TEXT180 Prints text (upside down) rotated
    (or T180) 180 degrees counterclockwise.
    TEXT270 Prints text (vertically) rotated 270
    (or T270) degrees counterclockwise.
    {font}: Name/number of the font.
    {size}: Size identifier for the font.
    {x}: Horizontal starting position.
    {y}: Vertical starting position.
    {data}: The text to be printed.
    LINE Commands
    Lines of any length, thickness, and angular orientation
    can be drawn using the LINE command.
    Format:
    {command} {x0} {y0} {x1} {y1} {width}
    where:
    {command}: Choose from the following:
    LINE Prints a line.
    (or L)
    {x0}: X-coordinate of the top-left corner.
    {y0}: Y-coordinate of the top-left corner.
    {x1}: X-coordinate of:
    - top right corner for horizontal.
    - bottom left corner for vertical.
    {y1}: Y-coordinate of:
    - top right corner for horizontal.
    - bottom left corner for vertical.
    {width}: Unit-width (or thickness) of the line.
    <!> {offset} <200> <200> {height} {qty}
    where:
    <!>: Use '!' to begin a control session.
    {offset}: The horizontal offset for the entire label.
    This value causes all fields to be offset
    horizontally by the specified number of
    UNITS.
    <200>: Horizontal resolution (in dots-per-inch).
    <200>: Vertical resolution (in dots-per-inch).
    {height}: The maximum height of the label.
    The maximum label height is calculated by measuring
    from the bottom of the first black bar (or
    label gap) to the top of the next black bar (or label
    gap). Then 1/16” [1.5mm] is subtracted from this
    distance to obtain the maximum height. (In dots:
    subtract 12 dots on 203 d.p.i printers; 18 dots on
    306 d.p.i. printers)
    {qty}: Quantity of labels to be printed.
    Maximum = 1024.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to get the output of a standard report  RFBILA00 in PDF form.

    hi,
    I have to get the output of the standard report RFBILA00 in the PDF form.
    Thanks.

    Hi Rao,
    you can run your report RFBILA00 in background  and in background  job you can add one more step, next in that step you can add custom  report like zsubmit .
    job should be set like
    step1:  RFBILA00 with variant.
    Step2:  zsubmit report with variant.
    In Zsubmit report  you can  read, your first step spool using FM GET_JOB_RUNTIME_INFO
    and pass that spool  in the FM  CONVERT_ABAPSPOOLJOB_2_PDF.
    when second  report run in job  you can set your target like download in the server or  send email etc.
    Regards,
    Prasenjit

  • Layout in Standard report s_alr_87012357

    Hi,
        I just added few fileds that were hidden in this standard report by making a layout variant.
       But these fields comes in the second line.
        The report looks quite bad.
        Can any suggest what else do I need to do so that it comes in the first line.?
    regards,
    Shashank

    Made both Output tax and input tax variants fields the same and so it worked.

  • Serial number in Assets standard report

    Hi,
    We are maintaing serial number for some asset classes but we for reporting purpose this field is not available in standard Asset accounting reports. There no such field in select fields either. Please tell me customizing settings if any to get the field in standard reports.
    Br

    Dear:
                     Here you need to assign sort version to your asset standard reports. For doing that you need to configure the sort version . Please follow as
    SPRO...Financial Accounting (new)....Asset accounting...Information system...Define Sort versions.
    Take any standrd and copy it. Write the field name and table which i think should ANLA in this case.  Having creating this variant go to any asset report and assign this sort version and execute report.
    Regards

  • Want to convert Sap standard report  into alvgrid

    HI PLEASE HELP THIS IS CODE BELOW OF SAP STANDARD REPORT CODE  WANT TO CONVERT INTO ALVGRID
    LEAS HELP
    REPORT RFKOPR00
           MESSAGE-ID FR
           LINE-SIZE  132
           NO STANDARD PAGE HEADING.
    TABLES:   B0SG,
              LFA1,                        "Daten auf Mandantenebene
                LFB1,                      "Daten auf Buchungskreisebene
                  LFB5,                    "Mahndaten
                  LFC1,                    "Verkehrszahlen
                  LFC3,                    "Sonderumsätze
                  BSIK,                    "Offend Posten
                  BKPF,
                    BSEG,
                           BSEGA.
    TABLES:
              BHDGD,
              T001,
              T001S,
              *T001S,
              T074T,
              T074U,
              TBSL,
              TBSLT,
              TCURX,
              ADRS,
              RFPDO,
              RFPDO1,
              RFSDO,
              FAEDE.
    FIELD-SYMBOLS: .
    *Hilfsfelder
    *---Prüfung ob mehrere Hauswährungen verarbeitet werden.
    DATA:    CFAKT(3)      TYPE P,
             CHECKSALDO(8) TYPE P,
             CHECKAGOBL(8) TYPE P,
             WAERS LIKE T001-WAERS,
             WFLAG(1) TYPE P VALUE '0',
             WAERS2        LIKE T001-WAERS,
             WFLAG2(1)     TYPE P VALUE '0',
             PH-LINE(132)  TYPE C.
    *---Ermittlung aktuelles Geschäftsjahr über Funktionsbaustein.
    DATA: CURRY LIKE BSIK-GJAHR.
    *-Ermittlung Zahlungseingang bei Zahlungen mit Skontoabzug--
    *ATA: ZVTAGE LIKE KNB4-VZS01, "Verzugstage
        ZVSKONTO(8) TYPE P,     "Zahlungsvolumen bei Zahlung mit Skonto
        ZVNETTO(8)  TYPE P,     "Zahlungsvolumen bei Nettozahlung
        ZVVERZUG(8) TYPE P,     "Verzugstage
        ZVMALVZ(8)  TYPE P,     "Zahlungvolumen * Verzugstage
                                "KNB4-VZSxx)
        ZVTYP(1)    TYPE C,     "Skonto oder Nettozahler
        ZVPER(4)    TYPE C.     "Periode letze Zahlung
    *---Zeilenanzahl fü Adressausgabe -
    DATA: ZEILENANZAHL LIKE ADRS-ANZZL VALUE 7.
    DATA: KSALDO(6)  TYPE P.               "Saldovortrag
        BEABZUG(6) TYPE P,                   "Berechtigte Abzüge
        UBABZUG(6) TYPE P,                   "Unberechtigte Abzüge
        JAHRAUG(6) TYPE P,                   "Kumulierter Jahresausgleich
        KUMZINS(6) TYPE P.                   "Kumulierter Zins
    Ausgabe der Mahndaten pro Buchungskreis.
    DATA: INDEX(2) TYPE P VALUE 0.
    Hilfsfelder
    DATA: HF(1)    TYPE C.
    DATA: TXT_1(78) TYPE C,                "Mahnbereich
          TXT_2(78) TYPE C,                "Mahnart
          TXT_3(78) TYPE C,                "Mahnempfänger
          TXT_4(78) TYPE C,                "Mahndatum
          TXT_5(78) TYPE C,                "Mahnstufe
          TXT_6(78) TYPE C,                "Mahnsperre
          TXT_7(78) TYPE C,                "Mahnverfahren
          TXT_8(78) TYPE C.                "Sachbearbeiter
    DATA: BEGIN OF XMAHN OCCURS 10.
            INCLUDE STRUCTURE LFB5.
    DATA: END OF XMAHN.
    Hilfsfelder
    DATA: CHAR1(1)   TYPE C.
    DATA: FLAG1(1)   TYPE C.
    DATA: INTENS(1)  TYPE C.
    DATA: FLAG2(1)   TYPE C.
    *---- K o n s t a n t e n -
    *---- DNULL zum Vergleich mit Datumsfeldern -
    DATA: DNULL(8) TYPE C VALUE '00000000'.
    *---- DECKBLATT = 'N' ==> Kein Deckblatt bei NEW-SECTION -
    DATA: DECKBLATT TYPE C VALUE 'N'.
    *---- 'H' =   Hilfsfelder, die jederzeit fuer Berechnungen ver-  -
    *---- wendet werden koennen. -
    DATA: BEGIN OF H,
            STICHTAG(8),
            OFFSET(2) TYPE P,
            OFFSE1(2) TYPE P,
            SOLL      LIKE LFC1-UM01S,
            HABEN     LIKE LFC1-UM01H,
            SALDO     LIKE LFC1-UMSAV,
            SHBKZ     LIKE LFC3-SHBKZ,     "Sonderhauptbuchkennzeichen
            SALDV     LIKE LFC3-SALDV,     "Sonderhauptbuch-Saldovortrag
            SHBLS     LIKE LFC3-SOLLL,     "Sonderhauptbuch-Lfd.-Saldo
            SHBSL     LIKE LFC3-SOLLL,     "Sonderhauptbuch-Lfd.-SOLL
            SHBHB     LIKE LFC3-HABNL,     "Sonderhauptbuch-Lfd.-HABEN
          GBNUM     LIKE lfC1-GBN01,    "Geschaeftsber. Nummer ECKERT
          GBUMS     LIKE lfC1-GBU01,    "Geschaeftsber. Umsatz
            TEXT(15),
            UMLOW     LIKE BSIK-UMSKZ,     "Umsatzkennzeichen
            UMHIG     LIKE BSIK-UMSKZ,     "Umsatzkennzeichen
          END   OF H.
    ---- 'C' =   Zwischenergebnisse, die aus Feldern des C-Segmentes ---
    *---- berechnet werden. -
    DATA: BEGIN OF C,
            SALDO     TYPE P,              "Saldo
            UMKZ1     LIKE LFC3-SHBKZ,     "SHBKZ 1
            SUMS1     TYPE P,              "Sonderumsatz 1
            UMKZ2     LIKE LFC3-SHBKZ,     "SHBKZ 2
            SUMS2     TYPE P,              "Sonderumsatz 2
            UMKZ3     LIKE LFC3-SHBKZ,     "SHBKZ 3
            SUMS3     TYPE P,              "Sonderumsatz 3
            UMKZ4     LIKE LFC3-SHBKZ,     "SHBKZ 4
            SUMS4     TYPE P,              "Sonderumsatz 4
            UMKZ5     LIKE LFC3-SHBKZ,     "SHBKZ 5
            SUMS5     TYPE P,              "Sonderumsatz 5
            UMKZ6     LIKE LFC3-SHBKZ,     "SHBKZ 6
            SUMS6     TYPE P,              "Sonderumsatz 6
            UMKZ7     LIKE LFC3-SHBKZ,     "SHBKZ 7
            SUMS7     TYPE P,              "Sonderumsatz 7
            UMKZ8     LIKE LFC3-SHBKZ,     "SHBKZ 8
            SUMS8     TYPE P,              "Sonderumsatz 8
            UMKZ9     LIKE LFC3-SHBKZ,     "SHBKZ 9
            SUMS9     TYPE P,              "Sonderumsatz 9
            UMKZ10    LIKE LFC3-SHBKZ,     "SHBKZ 10
            SUMS10    TYPE P,              "Sonderumsatz 10
            SONOB     TYPE P,              "Sonstige Umsatz-Kz
            BABZG     TYPE P,              "Berechtigte Abzuege
            UABZG     TYPE P,              "Unberechtigte Abzuege
            KZINS     TYPE P,              "Zinszahlungen
            KUMUM     TYPE P,              "Umsatz
            KUMAG     TYPE P,              "Kum. Jahresausgleich
          KREUEB    TYPE P,         "Kreditueberschreitung
          AGOBLI    TYPE P,         "Gesamt-Obligo (absolut)
            AGOBLI LIKE LFC1-UMSAV,        "Gesamt-Obligo (absolut)
          RGOBLI    TYPE P,         "Gesamt-Obligo (relativ)
          LFTAGE(3) TYPE P,         "Langfristige Überzugstage
          MFTAGE(3) TYPE P,         "Mittelfristige Überzugstage
          KFTAGE(3) TYPE P,         "Kurzfristige Überzugstage
          END   OF C.
    ---- 'C2'=   Zwischenergebnisse, die aus Feldern des C-Segmentes ---
    *---- berechnet werden. -
    DATA: BEGIN OF C2 OCCURS 0,
            BUKRS     LIKE LFC1-BUKRS,
            SALDO     TYPE P,              "Saldo
          WEXOB     TYPE P,         "Wechsel-Obligo        W,S,B
          ANZOB     TYPE P,         "Anzahlungs-Obligo     A
          ZANFB     TYPE P,         "Zahlungs-Anforderung  F
            UMKZ1     LIKE LFC3-SHBKZ,     "SHBKZ 1
            SUMS1     TYPE P,              "Sonderumsatz 1
            UMKZ2     LIKE LFC3-SHBKZ,     "SHBKZ 2
            SUMS2     TYPE P,              "Sonderumsatz 2
            UMKZ3     LIKE LFC3-SHBKZ,     "SHBKZ 3
            SUMS3     TYPE P,              "Sonderumsatz 3
            UMKZ4     LIKE LFC3-SHBKZ,     "SHBKZ 4
            SUMS4     TYPE P,              "Sonderumsatz 4
            UMKZ5     LIKE LFC3-SHBKZ,     "SHBKZ 5
            SUMS5     TYPE P,              "Sonderumsatz 5
            UMKZ6     LIKE LFC3-SHBKZ,     "SHBKZ 6
            SUMS6     TYPE P,              "Sonderumsatz 6
            UMKZ7     LIKE LFC3-SHBKZ,     "SHBKZ 7
            SUMS7     TYPE P,              "Sonderumsatz 7
            UMKZ8     LIKE LFC3-SHBKZ,     "SHBKZ 8
            SUMS8     TYPE P,              "Sonderumsatz 8
            UMKZ9     LIKE LFC3-SHBKZ,     "SHBKZ 9
            SUMS9     TYPE P,              "Sonderumsatz 9
            UMKZ10    LIKE LFC3-SHBKZ,     "SHBKZ 10
            SUMS10    TYPE P,              "Sonderumsatz 10
            SONOB     TYPE P,              "Sonstige Umsatz-Kz
            BABZG     TYPE P,              "Berechtigte Abzuege
            UABZG     TYPE P,              "Unberechtigte Abzuege
            KZINS     TYPE P,              "Zinszahlungen
            KUMUM     TYPE P,              "Umsatz
            KUMAG     TYPE P,              "Kum. Jahresausgleich
          KREUEB    TYPE P,         "Kreditueberschreitung
          AGOBLI    TYPE P,         "Gesamt-Obligo (absolut)
            AGOBLI LIKE LFC1-UMSAV,        "Gesamt-Obligo (absolut)
          RGOBLI    TYPE P,         "Gesamt-Obligo (relativ)
            LFTAGE(3) TYPE P,              "Langfristige Überzugstage
            MFTAGE(3) TYPE P,              "Mittelfristige Überzugstage
            KFTAGE(3) TYPE P,              "Kurzfristige Überzugstage
            ZVTYP(1)    TYPE C,            "Flag Skonto oder Nettozahler
            ZVPER(6)    TYPE C,            "letze Zahlungsperiode
            ZVVERZUG(8) TYPE P,            "Durchschittliche Verzugst
          END   OF C2.
    ---- 'C3'=   Zwischenergebnisse, die aus Feldern des C-Segmentes ---
    *---- berechnet werden. -
    DATA: BEGIN OF C3,
            SALDO     TYPE P,              "Saldo
          WEXOB     TYPE P,         "Wechsel-Obligo        W,S,B
          ANZOB     TYPE P,         "Anzahlungs-Obligo     A
          ZANFB     TYPE P,         "Zahlungs-Anforderung  F
            UMKZ1     LIKE LFC3-SHBKZ,     "SHBKZ 1
            SUMS1     TYPE P,              "Sonderumsatz 1
            UMKZ2     LIKE LFC3-SHBKZ,     "SHBKZ 2
            SUMS2     TYPE P,              "Sonderumsatz 2
            UMKZ3     LIKE LFC3-SHBKZ,     "SHBKZ 3
            SUMS3     TYPE P,              "Sonderumsatz 3
            UMKZ4     LIKE LFC3-SHBKZ,     "SHBKZ 4
            SUMS4     TYPE P,              "Sonderumsatz 4
            UMKZ5     LIKE LFC3-SHBKZ,     "SHBKZ 5
            SUMS5     TYPE P,              "Sonderumsatz 5
            UMKZ6     LIKE LFC3-SHBKZ,     "SHBKZ 6
            SUMS6     TYPE P,              "Sonderumsatz 6
            UMKZ7     LIKE LFC3-SHBKZ,     "SHBKZ 7
            SUMS7     TYPE P,              "Sonderumsatz 7
            UMKZ8     LIKE LFC3-SHBKZ,     "SHBKZ 8
            SUMS8     TYPE P,              "Sonderumsatz 8
            UMKZ9     LIKE LFC3-SHBKZ,     "SHBKZ 9
            SUMS9     TYPE P,              "Sonderumsatz 9
            UMKZ10    LIKE LFC3-SHBKZ,     "SHBKZ 10
            SUMS10    TYPE P,              "Sonderumsatz 10
            SONOB     TYPE P,              "Sonstige Umsatz-Kz
            BABZG     TYPE P,              "Berechtigte Abzuege
            UABZG     TYPE P,              "Unberechtigte Abzuege
            KZINS     TYPE P,              "Zinszahlungen
            KUMUM     TYPE P,              "Umsatz
            KUMAG     TYPE P,              "Kum. Jahresausgleich
          KREUEB    TYPE P,         "Kreditueberschreitung
          AGOBLI    TYPE P,         "Gesamt-Obligo (absolut)
            AGOBLI LIKE LFC1-UMSAV,        "Gesamt-Obligo (absolut)
          RGOBLI    TYPE P,         "Gesamt-Obligo (relativ)
          LFTAGE(3) TYPE P,         "Langfristige Überzugstage
          MFTAGE(3) TYPE P,         "Mittelfristige Überzugstage
          KFTAGE(3) TYPE P,         "Kurzfristige Überzugstage
          ZVTYP(1)    TYPE C,       "Flag Skonto oder Nettozahler
          ZVPER(6)    TYPE C,       "letze Zahlungsperiode
          ZVVERZUG(8) TYPE P,       "Durchschittliche Verzugst
          END   OF C3.
    DATA: SHBETRAG LIKE BSEGA-DMSHB.       "TYPE P.
    *---- 'RTAB' = Rastertabelle fuer offene Posten -
    DATA: BEGIN OF RTAB OCCURS 30,
            SORTK(1)   TYPE C,             "0 = Summe Gesber
                                           "1 = Summe aller Gesber
                                           "2 = Umsatzdaten
            BUKRS LIKE BSIK-BUKRS,
            GSBER LIKE BSIK-GSBER,
            WAERS LIKE BSIK-WAERS,
            RAART TYPE C,                  "Rasterart
                                           "1 = Netto-Faelligkeit
                                           "2 = Skonto1-Faelligkeit
                                           "3 = Zahlungseingang
                                           "4 = Ueber-Faelligkeit
            SPERR TYPE P,                  "gesprrte Posten
            KUMUM TYPE P,                  "Umsatz
            ANZAH TYPE P,                  "Anzahlungen
            OPSUM TYPE P,                  "Offene Posten Summe
            RAST1 TYPE P,                  "Rasterfeld 1
            RAST2 TYPE P,                  "Rasterfeld 2
            RAST3 TYPE P,                  "Rasterfeld 3
            RAST4 TYPE P,                  "Rasterfeld 4
            RAST5 TYPE P,                  "Rasterfeld 5
            RAST6 TYPE P,                  "Rasterfeld 6
          END   OF RTAB.
    *---- 'RBUS' = Rastertabelle fuer Summen pro Sachbearbeiter -
    *ATA: BEGIN OF RBUS OCCURS 30,
          SORTK(1)   TYPE C,        "0 = Summe Gesber
                                    "1 = Summe aller Gesber
          BUKRS LIKE BSIk-BUKRS,
          GSBER LIKE BSIk-GSBER,
          WAERS LIKE BSIk-WAERS,
          RAART TYPE C,             "Rasterart
                                    "1 = Netto-Faelligkeit
                                    "2 = Skonto1-Faelligkeit
                                    "3 = Zahlungseingang
                                    "4 = Ueber-Faelligkeit
          KUMUM TYPE P,             "Umsatz
          ANZAH TYPE P,             "Anzahlungen
          OPSUM TYPE P,             "Offene Posten Summe
          RAST1 TYPE P,             "Rasterfeld 1
          RAST2 TYPE P,             "Rasterfeld 2
          RAST3 TYPE P,             "Rasterfeld 3
          RAST4 TYPE P,             "Rasterfeld 4
          RAST5 TYPE P,             "Rasterfeld 5
          RAST6 TYPE P,             "Rasterfeld 6
        END   OF RBUS.
    *---- 'RBUK' = Rastertabelle fuer Summen pro Buchungskreis  -
    DATA: BEGIN OF RBUK OCCURS 30,
            SORTK(1)   TYPE C,             "0 = Summe Gesber
                                           "1 = Summe aller Gesber
                                           "2 = Umsatzdaten
            BUKRS LIKE BSIK-BUKRS,
            GSBER LIKE BSIK-GSBER,
            WAERS LIKE BSIK-WAERS,
            RAART TYPE C,                  "Rasterart
                                           "1 = Netto-Faelligkeit
                                           "2 = Skonto1-Faelligkeit
                                           "3 = Zahlungseingang
                                           "4 = Ueber-Faelligkeit
            SPERR TYPE P,                  "gesprrte Posten
            KUMUM TYPE P,                  "Umsatz
            ANZAH TYPE P,                  "Anzahlungen
            OPSUM TYPE P,                  "Offene Posten Summe
            RAST1 TYPE P,                  "Rasterfeld 1
            RAST2 TYPE P,                  "Rasterfeld 2
            RAST3 TYPE P,                  "Rasterfeld 3
            RAST4 TYPE P,                  "Rasterfeld 4
            RAST5 TYPE P,                  "Rasterfeld 5
            RAST6 TYPE P,                  "Rasterfeld 6
          END   OF RBUK.
    ---- 'RSUM' = Rastertabelle pro Währung über alle Buchungskreise ---
    DATA: BEGIN OF RSUM OCCURS 30,
            SORTK(1)   TYPE C,             "0 = Summe Gesber
                                           "1 = Summe aller Gesber
          BUKRS LIKE BSIk-BUKRS,
          GSBER LIKE BSIk-GSBER,
            WAERS LIKE BSIK-WAERS,
            RAART TYPE C,                  "Rasterart
                                           "1 = Netto-Faelligkeit
                                           "2 = Skonto1-Faelligkeit
                                           "3 = Zahlungseingang
                                           "4 = Ueber-Faelligkeit
            SPERR TYPE P,                  "gesperrte Posten
            KUMUM TYPE P,                  "Umsatz
            ANZAH TYPE P,                  "Anzahlungen
            OPSUM TYPE P,                  "Offene Posten Summe
            RAST1 TYPE P,                  "Rasterfeld 1
            RAST2 TYPE P,                  "Rasterfeld 2
            RAST3 TYPE P,                  "Rasterfeld 3
            RAST4 TYPE P,                  "Rasterfeld 4
            RAST5 TYPE P,                  "Rasterfeld 5
            RAST6 TYPE P,                  "Rasterfeld 6
          END   OF RSUM.
    *---- interne Tabelle für Periodenabgrenzung----
    RANGES: BMONAT FOR RFPDO-DOPRBMON.
    ---- In die Felder RP01 bis RP05 werden dynamisch die von aussen ---
    *---- eingegebenen Rasterpunkte uebertragen -
    DATA: RP01(2)   TYPE P,                "   0
          RP02(2)   TYPE P,                "  20
          RP03(2)   TYPE P,                "  40
          RP04(2)   TYPE P,                "  80
          RP05(2)   TYPE P,                " 100
          RP06(3)   TYPE P,                "   1
          RP07(3)   TYPE P,                "  21
          RP08(3)   TYPE P,                "  41
          RP09(3)   TYPE P,                "  81
          RP10(3)   TYPE P.                " 101
    *---- In die Felder RC01 bis RC10 werden die Rasterpunkte in -
    ---- charakterform abgestellt. (fuer REPLACE-Funktion in Variabler -
    *---- Ueberschrift) -
    DATA: RC01(4)   TYPE C,                                     "  0
          RC02(4)   TYPE C,                "  20
          RC03(4)   TYPE C,                "  40
          RC04(4)   TYPE C,                "  80
          RC05(4)   TYPE C,                " 100
          RC06(4)   TYPE C,                "   1
          RC07(4)   TYPE C,                "  21
          RC08(4)   TYPE C,                "  41
          RC09(4)   TYPE C,                "  81
          RC10(4)   TYPE C.                " 101
    *---- Felder für Umsatzkennzeichen -
    *---- für Ausweis der Sonderumsätze----
    DATA: HUMKZ1    LIKE LFC3-SHBKZ,
          HUMKZ2    LIKE LFC3-SHBKZ,
          HUMKZ3    LIKE LFC3-SHBKZ,
          HUMKZ4    LIKE LFC3-SHBKZ,
          HUMKZ5    LIKE LFC3-SHBKZ,
          HUMKZ6    LIKE LFC3-SHBKZ,
          HUMKZ7    LIKE LFC3-SHBKZ,
          HUMKZ8    LIKE LFC3-SHBKZ,
          HUMKZ9    LIKE LFC3-SHBKZ,
          HUMKZ10   LIKE LFC3-SHBKZ.
    *---- GBZAEHL - In diesem Feld wird vermerkt, fuer wieviele Ge- -
    *----           schaeftsbereiche ein OP-Raster ausgegeben wird. -
    ----           Wird das Raster nur fuer einen Geschaeftsbereich ge- -
    *----           druckt, so entfaellt das Summen-Raster. -
    DATA: GBZAEHL(3) TYPE P.
    ---- TOP-FLAG '1' = bei TOP-OF-PAGE Einzelpostenueberschrift ausg. --
    *----          '2' = bei TOP-OF-PAGE Ueberschrift fuer Raster ausgeb. *
    *----          '3' = bei TOP-OF-PAGE ULINE ausgeben. -
    ----          '4' = bei TOP-OF-PAGE Stammsatzueberschrift ausgeben --
    DATA: TOP-FLAG(1) TYPE C.
    *---- SEL-STAMM  'J' = Stammsatz wird ausgewertet                     *
    *----            'N' = Stammsatz wird nicht ausgewertet               *
    *---- SEL-POSTN  'J' = Stammsatz hat Posten gerastert                 *
    *----            'N' = Stammsatz hat keine Posten gerastert           *
    DATA: BEGIN OF SEL,
            STAMM(1) TYPE C,
            POSTN(1) TYPE C,
            POST2(1) TYPE C,
          END   OF SEL.
    *---- SATZART  '1' = Stammdaten -
    *----          '2' = Faelligkeitsraster -
    *----          '3' = Einzelposten -
    DATA: SATZART(1) TYPE C.
    *---- RART  =  Erste ausgewaehlte Rasterart -
    DATA: RART(1)    TYPE C.
    *---- TAGE  =  Tage nach denen die Posten sortiert sind -
    DATA: TAGE(4)    TYPE P,
    *---- NTAGE =  Tage fuer Netto-Faelligkeit -
          NTAGE(4)   TYPE P,
    *---- STAGE =  Tage fuer Skonto1-Faelligkeit -
          STAGE(4)   TYPE P,
    *---- ATAGE =  Alter der Belege -
          ATAGE(4)   TYPE P,
    *---- UTAGE =  Tage fuer Ueber-Faelligkeit -
          UTAGE(4)   TYPE P.
    *---- RASTERUU dient zur Sortierung der Einzelposten. Die Posten -
    *----          gemaess ihrer Rasterung die Werte '1' bis '6' -
    DATA: RASTERUU(1) TYPE C.
    *---- RAART  Rasterart -
    ---- Die einzelnen Felder der Feldleiste werden bei SART-OF-SELECTION
    *---- mit 1 oder 0 bestueckt. -
    *ATA: BEGIN OF RAART,
          NET(1)   TYPE C,      "X = ausgewaehlt, ' ' = nicht ausgewaehlt
          SKT(1)   TYPE C,      "X = ausgewaehlt, ' ' = nicht ausgewaehlt
          UEB(1)   TYPE C,      "X = ausgewaehlt, ' ' = nicht ausgewaehlt
        END   OF RAART.
    DATA: BEGIN OF GB,
            GSBER  LIKE BSIK-GSBER,
            WAERS  LIKE BSIK-WAERS,
          END   OF GB.
    *---- Variable Ueberschriften -
    DATA: BEGIN OF VARUEB1,
            FELD1(45)   TYPE C,
            FELD2(14)   TYPE C,
            FELD3(14)   TYPE C,
            FELD4(14)   TYPE C,
            FELD5(14)   TYPE C,
            FELD6(14)   TYPE C,
            FELD7(14)   TYPE C,
          END   OF VARUEB1.
    DATA: BEGIN OF VARUEB2,
            FELD1(45)   TYPE C,
            FELD2(14)   TYPE C,
            FELD3(14)   TYPE C,
            FELD4(14)   TYPE C,
            FELD5(14)   TYPE C,
            FELD6(14)   TYPE C,
            FELD7(14)   TYPE C,
          END   OF VARUEB2.
    DATA: VARUEB3(132),
          VARUEB4(132),
          VARTXT1(40),
          VARTXT(40)  TYPE C.
    *---- Variable für Ausgabe der Sonderumsätze----
    DATA: SHBBEZ LIKE T074T-LTEXT.
    DATA: ASUMS  TYPE P.                                        "
    *---- Interne Tabelle für Bezeichnungen der SHBKZ----
    DATA: BEGIN OF BEZSHB OCCURS 10,
            SHBKZ LIKE T074T-SHBKZ,
            LTEXT LIKE T074T-LTEXT,
          END OF BEZSHB.
    *---- Interne Tabelle für Zwischenspeicherung -
    DATA: BEGIN OF BLKEY,
            BUKRS LIKE BSIK-BUKRS,
            BELNR LIKE BSIK-BELNR,
            GJAHR LIKE BSIK-GJAHR,
            BUZEI LIKE BSIK-BUZEI,
          END   OF BLKEY.
    DATA: BEGIN OF RTAGE,
            NTAGE LIKE NTAGE,
            STAGE LIKE STAGE,
            ATAGE LIKE ATAGE,
            UTAGE LIKE UTAGE,
         END   OF RTAGE.
    DATA: BEGIN OF HBSIK OCCURS 10.
            INCLUDE STRUCTURE BSIK.
            INCLUDE STRUCTURE BSEGA.
            INCLUDE STRUCTURE RTAGE.
    DATA: END   OF HBSIK.
    DATA: BEGIN OF REFBL OCCURS 10.
            INCLUDE STRUCTURE BLKEY.
            INCLUDE STRUCTURE RTAGE.
    DATA: END   OF REFBL.
    DATA: BEGIN OF HLFB1 OCCURS 10.
            INCLUDE STRUCTURE LFB1.
    DATA: END   OF HLFB1.
    DATA: BEGIN OF HT001 OCCURS 10.
            INCLUDE STRUCTURE T001.
    DATA: END   OF HT001.
    *---- Interne Tabelle für Ausgabe der Obligos -
    DATA: BEGIN OF AOBLIGO OCCURS 12,
            OBART TYPE C,             "Flag für Obligoart 1 = Kontokorrent
                                           "                   2 = SHBKZ
                                      "                   3 = sonstige SHB
            SHBKZ LIKE T074T-SHBKZ,        "SHB-Kennzeichen
            LTEXT LIKE T074T-LTEXT,        "Bezeichnung
            OBLIG TYPE P,                  "Obligobetrag
          END OF AOBLIGO.
    *---- Declarationen für Accessibility /ALV GRID -
    data: ACC_MODE type c.
    Data: UEBTEXT(22) type c.
    Data: UEKTEXT(15)  type c.
    Data: TITTEXT(100) type c.
    Data: DATTEXT(10) type c.
    DATA: BEGIN OF RTAB_ALV OCCURS 30,
          SORTK(1)   TYPE C,             "0 = Summe Gesber
                                         "1 = Summe aller Gesber
                                         "2 = Umsatzdaten
            BUKRS LIKE BSIk-BUKRS,
            lifnr LIKE LFA1-lifnr,
            busab like lfb1-busab,
            SORTL LIKE lfA1-SORTL,
            LAND1 LIKE lfA1-LAND1,
            GSBER LIKE BSIk-GSBER,
            WAERS LIKE BSIk-WAERS,
          hwaer like rf140-hwaer,
            RAART like RF140-RAART,        "Rasterart
          shkzg like bsik-shkzg,
          XGUTS TYPE C,                  "Gutschrift
            KUMUM LIKE RF140-KUMUMHW,      "Umsatz
            ANZAH like rf140-anzbthw,      "Anzahlungen
            OPSUM like RF140-gsaldd,       "Offene Posten Summe
            RAST1 like RF140-rast1,        "Rasterfeld 1
            RAST2 like RF140-rast2,        "Rasterfeld 2
            RAST3 like RF140-rast3,        "Rasterfeld 3
            RAST4 like RF140-rast4,        "Rasterfeld 4
            RAST5 like RF140-rast5,        "Rasterfeld 5
            RAST6 like RF140-rast6,        "Rasterfeld 6
          END   OF RTAB_ALV.
    *"General Data
    TYPE-POOLS: SLIS.
    *DATA: BEGIN OF GT_OUTTAB OCCURS 0.
           INCLUDE STRUCTURE rtab_alv.
    *DATA: END OF GT_OUTTAB.
    Data: GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
         G_EXIT_CAUSED_BY_CALLER,
         GS_EXIT_CAUSED_BY_USER TYPE SLIS_EXIT_BY_USER,
          G_REPID LIKE SY-REPID,
          G_GRID_TITLE TYPE  LVC_TITLE.
    *"Callback
    *Data: GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
         G_STATUS_SET   TYPE SLIS_FORMNAME VALUE 'PF_STATUS_SET',
    Data: G_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
         G_TOP_OF_PAGE  TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
         G_TOP_OF_LIST  TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST',
         G_END_OF_LIST  TYPE SLIS_FORMNAME VALUE 'END_OF_LIST'.
    *"Variants
    DATA: GS_VARIANT LIKE DISVARIANT,
          G_SAVE.
    Global structure of list
    fieldcatalog
    DATA:   LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    DATA:   GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE.
    sort
    *DATA:   GT_SORT     TYPE SLIS_T_SORTINFO_ALV.
    events
    *DATA:   GT_EVENTS   TYPE SLIS_T_EVENT.
    *----- Structure for specific color settings -
    *DATA:   COL_TAB_T TYPE SLIS_T_SPECIALCOL_ALV,
           COL_TAB   TYPE SLIS_SPECIALCOL_ALV.
    DATA:   G_TABNAME TYPE SLIS_TABNAME VALUE 'RTAB_ALV'.
    print
    *DATA:   GS_PRINT    TYPE SLIS_PRINT_ALV.
    *---- FIELD-GROUPS                            -
    FIELD-GROUPS:
              HEADER,
              STAMMDATEN,
              OP-RASTER,
              EINZELPOSTEN.
    INSERT
      LFB1-BUKRS                           " Buchungskreis
    lfB1-BUSAB         " Sachbearbeiter
      LFA1-LIFNR                           " Kontonummer
      SATZART                              " Satzart
      RTAB-SORTK                           " Sortkz fuer Tabelle RTAB
                                           " '0' = normale Eintraege
                                           " '1' = Summeneintraege
      GB                                   " Geschaeftsbereich
                                           " - GB-GSBER
                                           " - GB-WAERS
      RASTERUU         " Kennzeichen fuer Detailposten bzw Raster
    ab hier nur fuer Einzelposten -
      TAGE                                 " Rastertage  fuer Detailposten
      BSIK-UMSKZ                           " Umsatzkennzeichen
      BSIK-BLART                           " Belegart
    BSIK-ZUONR         " Zuordnungsnummer
      BSIK-BELNR                           " Belegnummer
      BSIK-BUZEI                           " Belegzeile
    INTO HEADER.
    INSERT
    Addressdaten
      ADRS-LINE0                           " 1. Zeile Adressenaufbereitung
      ADRS-LINE1                           " 2. "     "
      ADRS-LINE2                           " 3. "     "
      ADRS-LINE3                           " 4. "     "
      ADRS-LINE4                           " 5. "     "
      ADRS-LINE5                           " 6. "     "
      ADRS-LINE6                           " 7. "     "
    ADRS-LINE7         " 8. "     "
    ADRS-LINE8         " 9. "     "
    ADRS-LINE9         " 10."     "
    Umsatzdaten
      C-KUMUM                              " Umsatz
    C-BABZG          " Berechtigt. Abzuege
    C-UABZG          " Unberechtigt. Abzuege
    C-KZINS          " Zinszahlungen
    C-KUMAG          " Kum. Jahresausgleich
    Obligos
      C-SALDO                              " Saldo ohne SHB-Vorgänge
      C-UMKZ1                              "SHBKZ 1
      C-SUMS1                              "Sonderumsatz 1
      C-UMKZ2                              "SHBKZ 2
      C-SUMS2                              "Sonderumsatz 2
      C-UMKZ3                              "SHBKZ 3
      C-SUMS3                              "Sonderumsatz 3
      C-UMKZ4                              "SHBKZ 4
      C-SUMS4                              "Sonderumsatz 4
      C-UMKZ5                              "SHBKZ 5
      C-SUMS5                              "Sonderumsatz 5
      C-UMKZ6                              "SHBKZ 6
      C-SUMS6                              "Sonderumsatz 6
      C-UMKZ7                              "SHBKZ 7
      C-SUMS7                              "Sonderumsatz 7
      C-UMKZ8                              "SHBKZ 8
      C-SUMS8                              "Sonderumsatz 8
      C-UMKZ9                              "SHBKZ 9
      C-SUMS9                              "Sonderumsatz 9
      C-UMKZ10                             "SHBKZ 10
      C-SUMS10                             "Sonderumsatz 10
      C-SONOB                              " Sonst. Obligen
    Limits
      C-AGOBLI                             " Absolutes Gesamtobligo
    Zahlungdaten
      LFB1-ZTERM                           "Zahlungsbedingung
      LFB1-ZAHLS                           "Sperrschlüssel für Zahlung
      LFB1-ZWELS                           "Zahlwege
      LFB1-XVERR                           "Zahlungsverrechnung
      LFB1-WEBTR                           "Wechsellimit
      LFB1-BUSAB                           " Sachbearbeiter
      lfa1-sortl
      lfa1-land1
    INTO STAMMDATEN.
    INSERT
      RTAB-RAART                           "Rasterart
      RTAB-SPERR                           "gesperrte Posten
      RTAB-KUMUM                           "Umsatz
      RTAB-ANZAH                           "Anzahlungen
      RTAB-OPSUM                           "Offene Posten Summe
      RTAB-RAST1                           "Rasterfeld 1
      RTAB-RAST2                           "Rasterfeld 2
      RTAB-RAST3                           "Rasterfeld 3
      RTAB-RAST4                           "Rasterfeld 4
      RTAB-RAST5                           "Rasterfeld 5
      RTAB-RAST6                           "Rasterfeld 6
    INTO OP-RASTER.
    INSERT
      BSIK-BUDAT                           " Buchungsdatum
      BSIK-BLDAT                           " Belegdatum
      BSIK-CPUDT                           " CPU-Datum
    BKPF-USNAM         " User-ID
      BSIK-WAERS                           " Wahrungsschluessel
      BSEGA-NETDT                          " Nettofaelligkeitsdatum
    FAEDE-NETDT        " Nettofaelligkeitsdatum
      BSIK-ZFBDT                           " Zahlungsfristen-Basisdatum
      BSIK-BSCHL                           " Buchungsschluessel
      BSIK-ZLSCH                           " Zahlungsschluessel
    BSIK-MANST         " Mahnstufe
      SHBETRAG                             " Hauswaehrungsbetrag
      BSEGA-DMSHB                          " Hauswaehrungsbetrag
      BSEGA-WRSHB                          " Fremwaehrungsbetrag
    INTO EINZELPOSTEN.
    BEGIN_OF_BLOCK 1.
    *ELECT-OPTIONS:
         GESBER   FOR BSIK-GSBER.
    PARAMETERS:
           MONAT    LIKE RFPDO-DOPRBMON.
    SELECT-OPTIONS:
           KKSALDO2 FOR RFSDO-KOPRSAL2,    "Saldovortrag
           AGOBLIG2 FOR RFSDO-KOPRAGO2.    "Absolutes Obligo
         RGOBLIGO FOR RFSDO-DOPRRGOB.          "Relatives Obligo
    SELECT-OPTIONS:
         LAND     FOR LFA1-LAND1,
         KONTENGR FOR LFA1-KTOKK,
         SACHBEAR FOR LFB1-BUSAB,
           AKONTS   FOR LFB1-AKONT,
           AKONTP   FOR BSIK-HKONT.
    SELECT-OPTIONS:
           BUDAT    FOR BSIK-BUDAT,
           BLDAT    FOR BSIK-BLDAT,
           NETDT    FOR BSEGA-NETDT.
    PARAMETERS:     N_BELEGE    LIKE RFPDO-BPETNBEL
                                       DEFAULT 'X',   "Normale Belege.
                    STAT_BLG    LIKE RFPDO-BPETSBEL.  "Statistische Belege
    END_OF_BLOCK 1.
    *ELECT-OPTIONS:
         BERABZU1 FOR LFC1-BABZG,
         UNBABZU1 FOR LFC1-UABZG,
         ZINSE1   FOR LFC1-KZINS,
         JHRAUSG1 FOR LFC1-KUMAG.
         BERABZUG FOR BEABZUG NO-DISPLAY,       "Berechtigter Abzug
         UNBABZUG FOR UBABZUG NO-DISPLAY,       "Unberechtigter Abzug
         ZINSEN   FOR KUMZINS NO-DISPLAY,       "Kumulierter Zins
         JHRAUSGL FOR JAHRAUG NO-DISPLAY.       "Kumulierter Jahresausgl.
    BEGIN_OF_BLOCK 2.
    PARAMETERS:
           SORTART  LIKE RFPDO1-KOPRSOAR DEFAULT '1',          "Doku
           VERDICHT LIKE RFPDO1-KOPRVERD DEFAULT '1',          "Doku
           RASTVERD LIKE RFPDO1-KOPRRAST DEFAULT '0',          "Doku
           KONZVERS LIKE RFPDO-DOPOKONZ,   "Konzernversion
           XBUKRDAT LIKE RFPDO3-ALLGBUKD DEFAULT 0, "Bukr.daten
           KAUSGABE like rfpdo3-ALLGKAOR.
         SELECTION-SCREEN BEGIN OF LINE.
         SELECTION-SCREEN COMMENT 01(30) TEXT-030.
    PARAMETERS: RART-NET LIKE RFPDO-DOPRRNET DEFAULT 'X'.
         SELECTION-SCREEN COMMENT 33(01) TEXT-028.
    PARAMETERS: RART-SKT LIKE RFPDO-DOPRRSKT DEFAULT 'X'.
         SELECTION-SCREEN COMMENT 35(01) TEXT-028.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: RART-ALT LIKE RFPDO1-KOPRRALT DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 03(28) TEXT-031.
    SELECTION-SCREEN POSITION POS_HIGH.
    PARAMETERS      RBLDAT   LIKE RFPDO2-KORD10BD.
    SELECTION-SCREEN COMMENT 61(12) TEXT-032.
    SELECTION-SCREEN END OF LINE.
         SELECTION-SCREEN COMMENT 37(01) TEXT-028.
    PARAMETERS: RART-UEB LIKE RFPDO-DOPRRUEB DEFAULT 'X'.
         SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(31) TEXT-026.
    PARAMETERS: RASTBIS1 LIKE RFPDO1-ALLGROGR DEFAULT '000'.
         SELECTION-SCREEN COMMENT 35(02) TEXT-027.
    PARAMETERS: RASTBIS2 LIKE RFPDO1-ALLGROGR DEFAULT '020'.
         SELECTION-SCREEN COMMENT 41(02) TEXT-027.
    PARAMETERS: RASTBIS3 LIKE RFPDO1-ALLGROGR DEFAULT '040'.
         SELECTION-SCREEN COMMENT 47(02) TEXT-027.
    PARAMETERS: RASTBIS4 LIKE RFPDO1-ALLGROGR DEFAULT '080'.
         SELECTION-SCREEN COMMENT 53(02) TEXT-027.
    PARAMETERS: RASTBIS5 LIKE RFPDO1-ALLGROGR DEFAULT '100'.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 01(31) TEXT-029.
    PARAMETERS:  FAKTOR LIKE RFPDO-DOPRFAKT DEFAULT '0'.
    SELECTION-SCREEN COMMENT 35(1) TEXT-028.
    PARAMETERS:  STELLEN LIKE RFPDO-DOPRFAKT DEFAULT '0'.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PZUOR    LIKE RFPDO2-DOPRZUOR.
    PARAMETERS: UMSATZKZ LIKE RFPDO1-DOPRSHBO. "DEFAULT 'WSABIMVD'.
    PARAMETERS:
           TITLE       LIKE RFPDO1-ALLGLINE,
           LISTSEP     LIKE RFPDO-ALLGLSEP,
           MIKFICHE    LIKE RFPDO-ALLGMIKF.
    PARAMETERS:
           P_LVAR    LIKE Gs_VARIANT-VARIANT DEFAULT SPACE modif id 508.
    END_OF_BLOCK 2.
    AT SELECTION-SCREEN OUTPUT.
    if acc_mode is initial.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = '508'.
          SCREEN-active    = '0'.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
    endif.
    AT SELECTION-SCREEN ON AKONTS.
       Konvertierung der Kontonummer
      LOOP AT AKONTS.
        PERFORM ALPHAFORMAT(SAPFS000)
          USING AKONTS-LOW AKONTS-LOW.
        PERFORM ALPHAFORMAT(SAPFS000)
          USING AKONTS-HIGH AKONTS-HIGH.
        MODIFY AKONTS.
      ENDLOOP.
    AT SELECTION-SCREEN ON AKONTP.
       Konvertierung der Kontonummer
      LOOP AT AKONTP.
        PERFORM ALPHAFORMAT(SAPFS000)
          USING AKONTP-LOW AKONTP-LOW.
        PERFORM ALPHAFORMAT(SAPFS000)
          USING AKONTP-HIGH AKONTP-HIGH.
        MODIFY AKONTP.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LVAR.
      Gs_VARIANT-REPORT  = SY-REPID.
      Gs_VARIANT-VARIANT = P_LVAR.
      PERFORM F4_FOR_S_LVAR   USING Gs_VARIANT.
      P_LVAR = Gs_VARIANT-VARIANT.
    AT SELECTION-SCREEN.
      IF NOT RASTBIS5 IS INITIAL.
        IF  RASTBIS5 GT RASTBIS4
        AND RASTBIS4 GT RASTBIS3
        AND RASTBIS3 GT RASTBIS2
        AND RASTBIS2 GT RASTBIS1.
        ELSE.
          MESSAGE E379.
        ENDIF.
      ELSE.
        IF NOT RASTBIS4 IS INITIAL.
          IF  RASTBIS4 GT RASTBIS3
          AND RASTBIS3 GT RASTBIS2
          AND RASTBIS2 GT RASTBIS1.
          ELSE.
            MESSAGE E379.
          ENDIF.
        ELSE.
          IF NOT RASTBIS3 IS INITIAL.
            IF  RASTBIS3 GT RASTBIS2
            AND RASTBIS2 GT RASTBIS1.
            ELSE.
              MESSAGE E379.
            ENDIF.
          ELSE.
            IF NOT RASTBIS2 IS INITIAL.
              IF  RASTBIS2 GT RASTBIS1.
              ELSE.
                MESSAGE E379.
              E

    Hi Laxman,
    I have checked the program and found out following:
    the field "acc_mode" which gets populated by FM "GET_ACCESSIBILITY_MODE".
    If this field is initial, then normal list gets displayed and
    If this field has value, then ALV grid gets displayed.
    regards,
    Dharitree

  • Hiding a selection screen field for Standard Report Transaction

    Hello All,
    We are trying to hide a check box on the selection screen for a standard sap report transaction (s_alr....). We can hide it by creating a variant but then if the users don't select it, the checkbox will be visible. We can't use transaction variant to hide this since its not a dialog transaction.
    We don't want any users to select that option by clicking on the checkbox and then running the report. Any suggestions or help is much appreciated.
    Thanks,
    Sal

    Did you think about modifying the standard report by adding NO-DISPLAY to the parameter option?
    If you are not allowed to modify another option - although much more effort - would be to replicate the standard selection screen in an own Z-report and at the end do a SUBMIT standard report WITH parameter
    In your won report you can easily hide that parameter and always pass a space to the standard report.
    To submit data to the standard report just use
    DATA: lt_par  TYPE TABLE OF rsparams.
    build the selection table based on the selection criteria the user entered and do:
    SUBMIT rep USING SELECTION-SCREEN 1000
           WITH SELECTION-TABLE lt_par.
    Then just remove access to the standard transaction and create an own transaction for your custom report which is added to the users authorized transactions.
    Not the easiest way to do it, but it does work.
    Regards,
    Michael

  • ECCS : custom characteristics into standard report selection screen

    Hello guys,
    I have added a custom characteristic which is also a subasignment to the EC-CS module.
    This field now appears into the standard report selection screen as expected.
    I want to define this field as a mandatory selection field, do you know if this is possible? (exemple of standard report CX34A)
    Thank you in advance for your help
    best regards
    Pascal.

    Hi Thereza,
    This field is already flaged
    I have found the following solution : create a variant and assign it to the standard transcation with transaction SE93..
    Best regards

  • Standard reports required in FI

    HI Guru's,
    1) BILLS RECEIVABLES & COLLECTION
    2) CURRENCY FLUCTUATION
    3) Financial cost (key raw material price trend)
    4) List of Negative Items
    5) Operating Expenses
    6) DEBTORS AGEING
    7) CREDITORS AGEING
    Please can any one tell me for above list is there any standard reports are available in FI. Please could you tell me where i can get these reports  it's urjent.
    Regards,
    Rajesh

    Hi,
    In FI-AP (Accounts Payable Accounting) - 0FIAP_C03, 0FIAP_C02, ZFIAP_03, 0FIAP_O03, 0FIAP_O07, 0FIAP_O06 info cubes are there. ZMAP_C03 is the multiprovider also exist in it.
    IN FI-AR (Accounts Receivable Accounting) - 0FIAR_C03, 0FIAR_C05, 0FIAR_C02 infocubes
    ZMAR_C02, ZMAR_C05- multiproviders
    0FIAR_O08, 0FIAR_O09, 0FIAR_O03, 0FIAR_O10, 0FIAR_O07, 0FIAR_O06- DSO's are there for reporting
    FI-GL(General Ledger Accounting)- 0FIGL_C02, ZFIGL_REC, 0FIGL_C01 infocubes
    0FIGL_O06, 0FIGL_O07, 0FIGL_O02- DSO's are available
    0FIGL_VC1, 0FIGL_VC2 - Virtual cubes are available for reporitng.
    0FITAX(Taxes on Sales/Purchases)- 0FITX_O03 DSO is available for reporting.
    FI/CO Frequently Used Reports
    Controlling    
      S_ALR_87013611 Cost Centers: Actual/Plan/Variance
      S_ALR_87013612 Range: Cost Centers
      S_ALR_87013613 Range: Cost Elements
      S_ALR_87013614 Cost Centers: Current Period/Cumulative
      S_ALR_87013616 Cost Centers: Breakdown by Business Transaction
      S_ALR_87013617 Range: Activity Types
      S_ALR_87013618 Range: Statistical Key Figures
      S_ALR_87013619 Range: Assigned Orders/WBS Elements
      S_ALR_87013620 Cost Centers: Actual/Plan/Commitments
      S_ALR_87013621 Range: Actual/Plan/Commitments
      S_ALR_87013623 Cost Centers: Quarterly Comparison
      S_ALR_87013624 Cost Centers: Fiscal Year Comparison
      S_ALR_87013625 Cost Centers: Actual/Target/Variance
      S_ALR_87013626 Range: Cost Elements
      KSBL Cost Centers: Planning Overview
      S_ALR_87013630 Activity Types: Plan Receivers
      KSBT Cost Centers: Activity Prices
      KSB1 Cost Centers: Actual Line Items
      KSB2 Cost Centers: Commitment Line Items
      KSBP Cost Centers: Plan Line Items
      KSB5 CO Documents: Actual Costs
      KABP CO Plan Documents
      KS13 Cost Centers: Master Data Report
      KA23 Cost Elements: Master Data Report
      KL13 Activity Types: Master Data Report
      KK04 Statistical Key Figures: Master Data Report
      S_ALR_87013631 Cost Centers: Rolling Year
      S_ALR_87013632 Cost Centers: Average Costs
      S_ALR_87013633 Cost Centers: Actual/Plan/Variance/Previous year
      S_ALR_87013635 Area: Actual/Plan 2 Currencies
      S_ALR_87013636 Cost Centers: Object Comparison
      S_ALR_87013637 Area: Internal Business Volume
      S_ALR_87013638 Cost Centers: Current/Cumulative/Fiscal Year
      S_ALR_87013639 Cost Centers: Actual/Target from Summarization
      S_ALR_87013640 Cost Centers: Period Breakdown Actual/Plan
      S_ALR_87013641 Cost Centers: Period Breakdown Actual/Target
      S_ALR_87013642 Cost Centers: Breakdown Resources
      S_ALR_87013643 Range: Orders
      S_ALR_87013645 Statistical Key Figures: Period Breakdown
      S_ALR_87013646 Activity Types: Period Breakdown
      S_ALR_87013648 Range: Actual/Budget/Commitments
      S_ALR_87012993 Orders: Actual/Plan/Variance
      S_ALR_87012994 Orders: Current Period/Cumulative
      S_ALR_87012995 List: Orders
      S_ALR_87012996 List: Orders by Cost Element
      S_ALR_87012997 List: Cost Elements by Order
      S_ALR_87012998 Orders: Breakdown by Partner
      S_ALR_87012999 Orders: Actual/Plan/Commitments
      S_ALR_87013000 List: Actual/Plan/Commitments
      S_ALR_87013001 Orders: Actual Yearly Comparison
      S_ALR_87013002 Orders: Actual quarterly comparison
      S_ALR_87013003 Orders: Actual Period Comparison
      KABL Order: Planning Overview
      S_ALR_87013004 Order: Plan Yearly Comparison
      S_ALR_87013005 Orders: Plan Quarterly Comparison
      S_ALR_87013006 Orders: Plan Period Comparison
      KOB1 Orders: Actual Line Items
      KOB2 Orders: Commitment Line Items
      KOBP Orders: Plan Line Items
      KOB4 Orders: Budget Line Items
      KSB5 CO Documents: Actual Costs
      KABP CO Plan Documents
      KO2B Display Budget Document
      KOK5 Internal Orders
      KOSRLIST_OR Settlement Rules
      KA23 Cost Elements
      KK04 Statistical Key Figures
      S_ALR_87013010 Orders: Breakdown by Period
      S_ALR_87013011 Orders: Actual/Plan/Price Variance
      S_ALR_87013012 Orders: Actual/Plan/Consumption
      S_ALR_87013013 Orders: Actual in Transaction/Object/Group Currencies
      S_ALR_87013014 List: Cost Elements (True Postings)
      S_ALR_87013015 List: Actual Debit/Credit
      S_ALR_87013016 List: Plan Debit/Credit
      S_ALR_87013017 List: Actual/Plan/Variance, Cumulative
      S_ALR_87013018 List: Total Plan/Actual/Commitments
      S_ALR_87013019 List: Budget/Actual/Commitments
      KOC4 Cost Analysis
    General Ledger    
      S_PL0_86000028 Fin. Statement: Actual/Actual Comparison
      S_ALR_87012284 Financial Statements
      S_PL0_86000029 Fin. Statement: Plan/Actual Comparison
      S_ALR_87012271 Cash Flow (Direct Method)
      S_ALR_87012272 Cash Flow (Indirect Method) Variant 1
      S_ALR_87012273 Cash Flow (Indirect Method) Variant 2
      FSIB Background Processing
      S_ALR_87012277 G/L Account Balances
      S_PL0_86000030 G/L Account Balances (New)
      S_PL0_86000031 Transaction Figures: Account Balance
      S_ALR_87012301 Totals and Balances
      S_PL0_86000032 Structured Account Balances
      S_ALR_87012282 G/L Line Items, List for Printing
      S_ALR_87012332 G/L Account Statements
      S_AC0_52000887 Profit Center Receivables
      S_AC0_52000888 Profit Center Payables
      S_ALR_87012287 Document Journal
      S_ALR_87012289 Compact Document Journal
      S_ALR_87012291 Line Item Journal
      S_ALR_87012293 Display of Changed Documents
      S_ALR_87012341 Invoice Numbers Allocated Twice
      S_ALR_87012342 Gaps in Document Number Assignment
      S_ALR_87012344 Posting Totals
      S_ALR_87012346 Recurring Entry Documents
      S_ALR_87012347 Line Items Extract
      S_ALR_87012326 Chart of Accounts
      S_ALR_87012328 G/L Account List
      S_ALR_87012330 Account Assignment Manual
      S_ALR_87012308 Display Changes to G/L Accounts
      S_ALR_87012333 G/L Accounts List
    Bank    
      S_ALR_87012309 Cashbook
      S_ALR_87012348 Cashed Checks per Bank Account
      S_ALR_87012349 Outstanding Checks Analysis per G/L Account and V
      S_ALR_87012351 Payment Advice Overview
      S_ALR_87012350 G/L Account Payment Advice Notes
      S_ALR_87012353 Payment Advice Overview (Header and Item Data)
      S_ALR_87012352 G/L Account Payment Advice Notes
      S_ALR_87012355 Payment Advice Notes: Reorganization
      S_ALR_87012354 G/L Account Reorganization
      S_ALR_87012322 Bill of Exchange List
      S_ALR_87012321 SAP Minimal Variant
      S_ALR_87012324 Extended Bill of Exchange Information
      S_ALR_87012323 SAP Minimal Variant
    Accounts Payable    
      S_ALR_87012077 Vendor Information System
      S_ALR_87012082 Vendor Balances in Local Currency
      S_ALR_87012093 Vendor Business
      S_ALR_87012079 Transaction Figures: Account Balance
      S_ALR_87012080 Transaction Figures: Special Sales
      S_ALR_87012081 Transaction Figures: Sales
      S_ALR_87012078 Due Date Analysis for Open Items
      S_ALR_87012103 List of Vendor Line Items
      S_ALR_87012083 List of Vendor Open Items for Printing
      S_ALR_87012084 Open Items u2013 Vendor Due Date Forecast
      S_ALR_87012085 Vendor Payment History with OI Sorted List
      S_ALR_87012104 List of Cleared Vendor Items for Printing
      S_ALR_87012105 List of Down Payments Open On Key Date u2013 Vendors
      S_ALR_87012086 Vendor List
      S_ALR_87012087 Address List
      S_ALR_87012089 Display Changes to Vendors
      S_ALR_87012090 Display/Confirm Critical Vendor Changes
      S_P99_41000099 Payment List
      S_P99_41000101 Check Register
      S_ALR_87012119 Cashed Checks
      S_P99_41000102 Number Ranges for Checks
    Accounts Receivable    
      S_ALR_87012167 Accounts Receivable Information System
      S_ALR_87012172 Customer Balances in Local Currency
      S_ALR_87012186 Customer Sales
      S_ALR_87012169 Transaction Figures: Account Balance
      S_ALR_87012170 Transaction Figures: Special Sales
      S_ALR_87012171 Transaction Figures: Sales
      S_ALR_87012168 Due Date Analysis for Open Items
      S_ALR_87012197 List of Customer Line Items
      S_ALR_87012173 List of Customer Open Items for Printing
      S_ALR_87012174 List of Customer Open Items
      S_ALR_87012175 Open Items u2013 Customer Due Date Forecast
      S_ALR_87012176 Customer Evaluation with OI Sorted List
      S_ALR_87012177 Customer Payment History
      S_ALR_87012178 Customer Open Item Analysis by Balance of Overdue Items
      S_ALR_87012198 List of Cleared Customer Items for Printing
      S_ALR_87012199 List Of Down Payments Open On Key Date u2013 Customers
      S_ALR_87012179 Customer List
      S_ALR_87012180 Address List
      S_ALR_87012182 Display Changes to Customers
      S_ALR_87012183 Display/Confirm Critical Customer Changes
      S_ALR_87012195 Customer Master Data Comparison
    Fixed Assets    
      AW01N Asset Explorer
      S_ALR_87011963 u2026 by Asset Number
      S_ALR_87011964 u2026 by Asset Class
      S_ALR_87011965 u2026 by Business Area
      S_ALR_87011966 u2026 by Cost Center
      S_ALR_87011967 u2026 by Plant
      S_ALR_87011968 u2026 by Location
      S_ALR_87011969 u2026 by Asset Super Number
      S_ALR_87011970 u2026 by Worklist
      S_ALR_87010125 Sample for address data for an asset
      S_ALR_87010127 Real Estate and Similar Rights
      S_ALR_87010129 Transportation Equipment
      S_ALR_87011978 Asset Balances for Group Assets
      S_ALR_87011979 u2026 by Cost Center
      S_ALR_87011980 u2026 by Location
      S_ALR_87011981 u2026 by Asset Class
      S_ALR_87011982 u2026 by Plant
      S_ALR_87010137 Bar Codes
      S_ALR_87010139 Leasing
      S_ALR_87010141 Liabilities from Leasing Agreements
      S_ALR_87011990 Asset History Sheet
      S_ALR_87011992 Liabilities from Leasing Agreements
      S_ALR_87011994 Asset Balances
      S_ALR_87012004 Total Depreciation
      S_ALR_87012006 Ordinary Depreciation
      S_ALR_87012007 Special Depreciation
      S_ALR_87012008 Unplanned Depreciation
      S_ALR_87012009 Transfer of Reserves
      S_ALR_87012011 Write-Ups
      S_ALR_87012013 Depreciation Comparison
      S_ALR_87012015 Manual Depreciation
      S_ALR_87012018 Depreciation and Interest
      S_ALR_87010173 Revaluation
      S_P99_41000192 Posted depreciation by asset and posting period
      S_ALR_87010175 Posted depreciation, related to cost centers
      S_ALR_87012936 Depreciation on Capitalized Assets (Depreciation Simulation)
      S_ALR_87012026 Depreciation Current Year
      S_ALR_87012028 Net Worth Valuation
      S_ALR_87012030 Insurance Values
      S_ALR_87012033 Gain for transfer of reserves
      S_ALR_87012035 Depreciation Current Year
      S_ALR_87012037 Changes to Asset Master Records
      S_ALR_87012039 Asset Transactions
      S_ALR_87012041 Asset Portfolio (Current Book Values)
      S_ALR_87012043 G/L Account Balances
      S_ALR_87012048 Asset transactions
      S_ALR_87012050 Asset Acquisitions
      S_ALR_87012052 Asset Retirements
      S_ALR_87012054 Intracompany Asset Transfers
      S_ALR_87012056 Directory of Unposted Assets
      S_ALR_87012058 List of Origins of Asset Debits
      S_ALR_87012060 List of Origins by Cost Elements
      S_ALR_87012075 Asset History
    Edited by: Venkadesh S on Feb 25, 2012 6:39 AM

  • Standard Report VA05 Adds up Returns Value and Qty :(

    Hi Gurus,
    We have an issue the standard Report VA05 Adds up Qty and Value of Returns Orders/ Credit or Debit Request which gives up a wrong value when you look at the Total.
    I checked up with IDES and it is just the same. Any Help how to overcome the issue
    Regards
    SK

    Hi
    VA05 being a standard order display report it will give you all the order types.
    There are 2 ways of doing this.
    1. Click on addtional selection criteria button and select the sales document type in your selection. You will only get the order types you want.
    2. Run the full report and then filter out the order types you dont want and save that as a variant.  You can set this as defualt variant so when your run next time the unwanted order types like Debit memos, etc will not come in the report.
    Regards
    Yatin Thakkar

Maybe you are looking for