SAP Technical Invoice

download SAP Technical Invoice

of 3

Transcript of SAP Technical Invoice

  • 8/10/2019 SAP Technical Invoice

    1/3

    invoicelist

    Home Tra in ings Quiz T ips Tutor ia ls Funct iona l Cer t Q 's In te rv iew Q 's J o b s Test imon ia ls Ad v er t is e Contact Us

    SAP Virtual/Onsite

    Trainings

    Document Categories:

    ABAPTM

    Adobe Forms

    ABAP-HR

    ALE & IDocs

    ALV

    BAPI

    BASIS

    BSP

    Business Objects

    Business Workflow

    CRMNEW

    LSMW

    SAP Script/Smart Forms

    BI/BW

    eXchange Infrastruc ture (XI)

    Enterprise Portals (EP)

    eCATT

    Object Oriented Progr amming

    SAP Query

    Userexits/BADIs

    WebDynpro for Java/ABAPTM

    Others

    What's New?

    ABAP Test Cockpit HOT

    SAP ABAP Pragmas

    Understanding SE32 (ABAP TextElement Maintenance)

    Creating an IDoc File on SAPApplication Server

    Understanding Advance withdialog opt ion of SAP Workflow

    SAP Workflow Scenario:Maintenance Notification Approval

    Enhancements to a standard class

    Working wit h Floating Field inAdobe Forms

    Inserting data fr om Internal Table

    into th e step Send Mail

    Display GL Account long textusing enhancement fr amework

    Differences betweenpolymorphism in JAVA and ABAP

    Passing multiline parameters froman ABAP Class event to aWorkflow container

    Concept of Re-evaluate agents foractive work it ems in SAPWorkflow

    Dynamic cr eation of componentusage in ABAP WebDynpro

    Adobe Forms: Display symbolslike copyright and others

    Deactivate Hold funct ionality inPurchase order (ME21N)

    Quiz on OOABAP

    Add fields i n FBL5N using BADIs

    Tutorial on Wide casting

    Defining a Range in Module PoolProgram

    Copy fields from onestructure/table into another

    structure/table

    Side Panel Usage in NWBC

    Contribute?

    Sample Specs

    What's Hot?

    Web Dynpro for ABAP Tutorials

    Solution to the exercise on printing Invoices

    ...Previous

    Step 11 :

    Displaying contents in BOTTOMWIN (Footer Details)

    Create a TEXT under the Node BOTTOMWIN to display the Footer Information.

    Give the Name for the TEXT and a Description an Enter the Text you want to Display in the window. Soyour screen looks something like this:

    Step 12 :

    Finally Save and Activate the Form.

    As we know, when we Activate the Smart Form it generates a Function Module automatically. To viewthe Function Module generated for this Smart Form, Go to Environment Function Module Name.

    By Clicking on the Function Module Name, a pop up appears which gives the name of the FunctionModule.

    PTechnical.COM - Solution to the exercise on printing Invoices http://www.saptechnical.com/Tutorials/Smartforms/Exercises/Solution...

    r 3 24/11/2014 20:13

  • 8/10/2019 SAP Technical Invoice

    2/3

    Join the Mailing List

    Enter name and email address below:

    Name:

    Email:

    Subscribe Unsubscribe

    Note down the Function Module name.

    Step 13 :

    Driver program to Execute the form ZSF_INVOICE

    Go to Transaction SE38 from the SAP Easy Access Screen and create an Executable Program withsome name say ZSF_PRINTINVOICE.

    As in the following program, declare the Selection screen elements, Work variables, Internal Tablesetc and call the Functions 'SSF_FUNCTION_MODULE_NAME' and /1BCDWB/SF00000201 (The onewhich we got in Smart form by going to Environment Function Module Name). After calling the Function/1BCDWB/SF00000201 just replace it by FM_NAME as shown in the code below:

    REPORT zsf _pri nti nvoi ce.

    *" Tabl e Decl ar at i ons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .TABLES:

    kna1, vbrk, vbrp.

    * "Sel ect Scr een El e ment s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .PARAMETERS : p_kunnr LI KE vbrk- kunag, p_vbel n LI KE vbr k- vbel n.

    *" Dat a Decl ar at i ons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .* " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** Work Vari abl es ** " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *DATA : f m_name TYPE r s38l _f nam. " Name of t he Funct i on Modul e

    * " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** I nter nal Tabl e t o Hol d Bi l l i ng Document Header Detai l s ** " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *DATA : t _vbrk LI KESTANDARD TABLE

    OF vbrk.

    * " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** I nternal Tabl e t o Hol d Bi l l i ng Document I t emDetai l s ** " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *DATA: t _vbrp LI KESTANDARD TABLE OF vbr p.

    DATA : f s_kna1 TYPE kna1, " Hol ds Cust omer Det ai l s f s_vbr k LI KE LI NE OF t _vbr k, " Hol ds Bi l l i ngDoc Header Detai l s f s_vbr p LI KE LI NE OF t _vbr p. " Hol ds Bi l l i ngDoc I t emDetai l s

    * " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ** START- OF- SELECTI ON EVENT ** " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *

    START- OF- SELECTI ON.

    SELECT SI NGLE * FROM kna1

    I NTO f s_kna1 WHERE kunnr EQ p_kunnr .

    SELECT * FROM vbrk I NTO TABLE t _vbr k WHERE kunag EQ p_kunnr AND vbel n EQ p_vbel n.

    PTechnical.COM - Solution to the exercise on printing Invoices http://www.saptechnical.com/Tutorials/Smartforms/Exercises/Solution...

    r 3 24/11/2014 20:13

  • 8/10/2019 SAP Technical Invoice

    3/3