How can i print data in smartforms from ABAP program.

Dear gurus:
in my abap program i process require data, and saved in a internal table.
how can l print the data in smartforms.?
who can give me a code sample is better:)
reward all helpful advise.

Try this....
1) Tcode --> SmartForms
2) Form name --> Z_SF_TEST Create
3) Under Global settings
a) Form Interface  
    Table Tab
   ITAB LIKE EKPO
b) GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
4) RT CLick on main Window
   CREATE --> TABLE
  Click Table painter
DEFAULT %LTYPE will be Created
a) If you want more like Header footer etc add by rt click on %LTYPE1
Table (Tab)
%LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
CLICK on DATA (Tab)
INTERNAL TABLE ITAB LIKE ITAB
5)RT click on table control and create --> program lines
General attribute (Tab)
INPUT PARAMETER               OUTPUT PARAMETER
itab                               WA_NETPR
Code Area
WA_NETWR = ITAB-NETPR.
6) RT CLcick on table ctl and create 3 text to display the fields
a) % text1 +button(insert field)
   FIELD name &itab-ebeln&
Output options (tab)
Check New line   LINETYPE   %Ltype1
check new cell
b) % text2
   & itab-ebelp&
output options
check new cell
c) % text2
   & wa_netpr&
output options
check new cell
<b>Report ac
Tables ekpo.
Data: itab1 like ekpo occurs 0 with header line.
select * into table itab1 from ekpo.
Call function module --> smart form function module and pass your internal table</b>
Regards,
SaiRam

Similar Messages

  • How can i print data in bi publisher template across wise

    Hi,
    Please let me know how can i print data in bi publisher template across wise.
    eg.
    In my C1 field there is a data coming like
    S
    JR
    MR
    i want to print this filed
    S JR MR
    Thanx
    Arjun

    Hi ,
    Now i am able to print S JR MR horizontally.Thanx a lot for that.Now my problem is
    There is one column field which displaying value like S JR MR
    Now i am calculating a value using a function and want to display that value for each vale of above column
    For eg
    The report should display like this
    C1 C2 C3
    45 1-2-3 S JR MR
    45*1 2*45 3*45
    I have created package to make the string 1-2-3 separeate and the fuction is working fine .But unable to print value in bi
    Its displaying like this for each S JR MR
    45*1 2*45 3*45 45*1 2*45 3*45 45*1 2*45 3*45
    45*1 is in different group that should display also horizontally thats why i tried this <?for-each@cell:G_STR_ID?>
    Please help me
    Thanks in advance

  • Hi, how can I print a weekly view from my iCloud calendar?

    Hi, how can I print a weekly view from my icloud calendar?

    There is no way except to take a screenshot of the calendar and print it. Send a feature request to Apple via http://www.apple.com/feedback/ical.html and  http://www.apple.com/feedback/macosx.html
    OT

  • How can i import data to ipad from pc ?

    how can i ımport data to ipad from pc ?

    It would help if you said what sort of data you want to transfer - documents, spreadsheets, powerpoint, etc .
    In order to transfer files to the iPad you will first need one or more apps on the iPad that supports those file types - without an app the files cannot be saved (apart from as email attachments), as unlike 'normal' computers the iPad doesn't have a file system and files/documents have to be stored/associated with an app. Once you've got an app then, depending on what it is, transfer might be done via the file sharing section at the bottom of the iPad's apps tab when connected to your computer's iTunes, via wifi, email attachments, Dropbox etc.
    If you want to transfer/support Word and Excel documents then Documents To Go is one option (http://itunes.apple.com/au/app/documents-to-go-office-suite/id317117961?mt=8) and how to transfer to/from it is described on this pagehttp://support.dataviz.com/support.srch?docid=14497&pid=198 (the 'premium' version of the app also supports editing Powerpoint files instead of just viewing them)
    Apple's Pages app supports Word documents :http://itunes.apple.com/us/app/pages/id361309726?mt=8 (how to transfer files http://help.apple.com/pages/ipad/1.4/#tanb5b5c055)
    and their Numbers apps supports Excel documents :http://itunes.apple.com/au/app/numbers/id361304891?mt=8#(transferring files http://help.apple.com/numbers/ipad/1.4/#tanb5b5c582)

  • TS1503 How can I delete data like movies from my main Toshiba HD in my MacMini?

    How can I delete data like movies from my main Toshiba HD in my MacMini?

    What does this have to do with the iPhone?

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • How can I print only Selected pages from a Multipage document?

    HP Envy 114 e-All-in One Printer
    How can I print only pages 2 and 4 from a 10 page document using my Envy 114 Printer?
    This question was solved.
    View Solution.

    Hi,
    Where do you print from ? Under Word or PDF you can select page(s) you want to print.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I print out all texts from one person

    How can I printall of my texts from my very bad lawyer?

    It's not a file, so you can't "open" one file. Every message (and note) is a single file on the computer.
    This Applescript will grab all the notes in the selected mailbox (i.e. the selected Notes item in Mail) and put them in a textEdit document.
    Note that Mail doesn't differentiate between a note and an email message, so if you run this while a normal email mailbox is selected, it will gather all of your email messages.
    tell application "Mail"
    set theMailboxes to the selected mailboxes of message viewer 0
    repeat with aMailbox in theMailboxes
    set theNotes to the messages of aMailbox
    set theText to ""
    repeat with aNote in theNotes
    set theText to theText & content of aNote & return
    end repeat
    end repeat
    end tell
    tell application "TextEdit"
    set myDocument to make new document at end of documents with properties {text:theText}
    end tell
    Copy and paste this into a new AppleScript Editor Document, select the Notes mailboxes you want to print the notes from, and click the Run button (Green button with arrow).
    This may take a while.

  • How can I print out my contacts from my ipad

    HHow can I print out my contacts from my iPad or iPhone?

    Hi Ken, there is an app, Contact Sheet (http://itunes.com/apps/appiota/contactsheet) that will not only print your contacts, it can also print the pictures!  This app can be used to back up, share, or extract information from your contacts.  You can select which contacts to use by creating a group and you can choose which fields to include.  So, for example, if you were creating a phone list to distribute to your bowling group, you could just include names and phone numbers and not include address or other information that people may not want shared.  It can even be used to send group emails and group text messages.  Please check it out!

  • How i can acces to web ( with login) from abap program?

    Hello.
    I need to acces to web that have user/password from abap program. Is there any function to do this?
    And, is it possible, to do this in background process?
    Regards.
    Antonio.

    Hi Antonio,
    Yes this is possible. Check out class cl_http_client, particularly method IF_HTTP_CLIENT~AUTHENTICATE in which you can provide the user credentials. Here's some example code:
    DATA:  client    TYPE REF TO if_http_client,
                 l_url       TYPE string,
                 l_content TYPE string.
    CALL METHOD cl_http_client=>create_by_url
      EXPORTING
        url    = l_url
      IMPORTING
        client = client
      EXCEPTIONS
        OTHERS = 1.
    client->request->set_header_field( name  = '~request_method'
                                       value = 'GET' ).        "#EC *
    CALL METHOD client->authenticate
      EXPORTING
    *    proxy_authentication = ' '
    *    client               =
        username             = 'user'
        password             = 'password'
    *    language             =
    ****Make the call
    client->send( ).
    ****Receive the Response Object
    CALL METHOD client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    ****Get the response content in Character format
    l_content = client->response->get_cdata( ).
    Hope this helps you!
    Cheers, Roel

  • How can i insert data into DB from my page programatically in Oracle ADF..?

    Hai, this is praveen.
    I have created  an EO and VO, when i have inserted data by dragging and dropping from DataControl -->Operations-->Create. I have successfully inserting data. But how can i do it programatically. What are the pre-defined steps that i can use over there to insert data into table programatically. Could u plz help me?

    Hi,
    You have to create an action Listener in the bean for any button.
    Then call an AM method.
    In that you have to do the following
    ViewObject yourVO = getYourVO();
    Row r = yourVo.createRow();
    r.setAttribute("Column1", value1); //the name of column should be as it is in your vo attribute.
    yourVO.insertRow(r);
    this.getDbTransaction().commit();
    Thanks

  • How can I print grocery store receipts from an iPad?

    I run a natural food grocery store and am considering using iPads as our checkout device. (We currently use iMacs, which are nearly 5 years old now.) I think I could set up a nice system using FileMaker Go. I have done quite a bit of searching, and I don't see a clear answer as to how and whether I could print receipts on an industrial-quality receipt printer, wireless or otherwise, from the iPad. I'm not interested in anything that has a slow response time or requires printing through a separate computer (otherwise, I'll stick with using iMacs!). The receipts must be printed quickly and on the spot.
    Apple's Camera Connection Kit appears to be a straightforward way to get a USB port onto the iPad, and I assume (correct me if I'm wrong) I could get multiple USB ports by attaching a self-powered hub to that port. So that should take care of the input devices, namely the barcode scanners and credit card swipes.
    But it sounds like printing requires an additional application or a driver. I don't even have an iPad to test yet. Can anyone clue me in?

    You cannot connect a USB hub to an iPad and you cannot connect just any USB device to an iPad via the Camera Connection Kit. The only supported printing from an iPad is using AirPrint which is supported by only a few printers, which won't meet your printing requirements.
    I suggest sticking with iMacs, although I don't know why you don't use a standard cash register system.

  • How can I convert date in FOX (from DEC to date[DEC])

    Hi everyone!
    In my planning layout I have a field called "MYDATE" of the date-type "DEC: Calculation or amount field with comma and +/- sign" (-> BPS does not allow using DATS as date-type).
    Since I import that date from a different system, I have to use a temporary workaround field "WADATE" (WorkaroundDate) of type DEC (alternatively integer or float) which contains the date in a format YYYYMMDD (e.g. 20070604).
    How can I transfer the date from WADATE to MYDATE? I tried using FOX, but for some reason it does not work. When I use the following function, MYDATE remains empty:
    DATA TMPDATE TYPE F.
    DATA MYPROJECTS TYPE B906_PROJ.
    FOREACH MYPROJECTS.
    "MYDATE" is the field I want my date in
    "WADATE" is my workaround field that contains the date
    TMPDATE = {WADATE,000,0000000001,0000000001,001}.
    BREAK-POINT.
    {MYDATE,000,0000000001,0000000001,001} = TMPDATE.
    ENDFOR.
    Is it possible to solve my problem with FOX? Or do I have to work with an EXIT function?
    Best regards, Daniel

    Daniel,
    The better approach is the one Marc said but if you have tomake a work around work, I think you might need to try and define your temporary date variable as String and another for the converted date as of type of the final date.  I would not define any date type as float unless you can have part days and it is very important to have part days, integer might work by I would try String first myself.
    It has been a while but on a BW 3.5 project I had to do some manipulation to read the attribute value of material master data to get the launch date and use it to derive the start period (definited as type 0FISCPER) and proportion of month based on number of days remaining after launch date vs the # of days for the month.  I think I used string type function in FOX to derive some of the component...
    Hope this helps,
    mary

  • Visual composer how can i populate data in backend from front end.

    Hi Guru's
          I have designed a basic screen using zbapi_salesorder_getlist.  I have requirement in which i have to enter some details in the output screen, it then should come back to back end and update a Ztable.
    For this i have created and deployed till intial output screen(i will enter some values in the input and i get some result in the output----> i ma using a RFC to get the data from backend) in the output the user enters some values which needs to updated a ztable in the back end. Give ur inputs how can this be done any link if possible so that i can complete this concept.

    Thanks Marcel,
       I am working on your blog example.
    Nutan,
    3.> Then for updating backend. You just drag and drop the second bapi in your model and then create the forms as per your requirement. This will be helpful.
    can u please elaborate, what ever input i am giving is not coming to the back-end. Any sample example will help me to solve this. what ever you have mentioned in step 1 and step 2 are working properly, but i am not able to get past afer the two steps.

  • Iphone sync is making me crazy how can I get data to and from my iphone without syncing?

    I'm a pc user and i'm sick of the iphone sync process jacking up my life when I decide to reinstall windows and the old itunes data is no longer there. how can I etup my iphone to not have to sync but transfer data to and from it like an android?

    The only way to get data onto the phone is by syncing.  To get some photos off the phone you can connect the phone to the computer with USB cable and use windows explorer to view and copy the photos from the phone to the computer.  You could use a program like ibackupbot or something similar on your computer and get data off the phone to your computer using that

Maybe you are looking for