Item data in Smart Form

What is Item data in Smart Form?
In which table Item data of Smart form are stored?

Hi,
What did u mean by item data in Smartform?
Please Clarify.

Similar Messages

  • Can we get the item data in smart form

    i have a header table with 3 records and item with 10 records.. i am passing both of them to the function module ( fm_name) and then in the smartform i have to get 3 pages output. but right now i am getting only one page..
    to display the header data i am using secondary windows and for displaying the item data i am using tables node in the main window ( in the data tab of the tables node i am giving it as loop it_item1 into wa_item1 ). before the header row of that table node i have created a table node and in that i am prearing the item table it_item..as
    describe table i_hdr line h_lines.
    if h_idx LE h_lines.
    READ TABLE i_hdr into wa_hdr index h_idx.
    if sy-subrc eq o.
    loop at it_item into wa_item where belnr = wa_item-belnr.
    move wa_item to wa_item1.
    append wa_item1 to i_item1.
    clear wa_item1.
    endloop.
    endif.
    this is what i am doing it right now.. and at the last row in the footer of table node i have created a command node and in that i have selected the option go to page : first page.
    please correct me if my approach is wrong
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 29, 2009 12:03 PM

    Hi,
    You try ur logic in
    do                      ---endo.
    after describing the table .
    Do the loop for the number of records available.
    i.e. as per your logic.
    describe table i_hdr line h_lines.
    do h_lines times.
    put your above code and enddo.
    Hope this will work.

  • How to get item text in smart form

    Hi ABAP Gurus,
                 i want to know how to get the item text in smart forms procedure i know but the logic where to define the variable ect.
    code to get item text in purchase order.

    Hi
    Smartform itself have a functionality to get
    Item Text
    create a text
    change the Text Type to include type
    der in u pass the required entery in the same way how u pass to read text entry
        Text Name         &ZXEKKO-EBELN&
        Text Object       EKKO
        Text ID           F03
        Language          EN
    with Regards
    Rohan Shetty

  • Passing data to smart forms...

    Hi,
    I am learning smartforms and so far have done the following.
    1. Using transaction smartforms, created a Ztestsmartform with one page named "coverpage". the page contains two window elements named, vendorname and faxnum. saved and activated the form.
    2. wrote a zprogram to retrieve data from tables and pass on to the form. I have created an internal table to hold the data. i am  not clear on how to pass that data to my form ?? should i loop the itab and call the function "SSF_FUNCTION_MODULE_NAME" ?? how to pass my itab data then ??
    please explain !!
    whats the purpose of calling function FM_NAME ??
    i took the function module code from a sample available on the net.
    thanks
    REPORT  ZPROGFORSMARTFORMS.
    TABLES: LFA1, LFB1.
    DATA: BEGIN OF VENDOR_DATA OCCURS 0,
          VENDORNAME LIKE LFB1-LIFNR,
          FAXNUM LIKE LFA1-TELFX,
          END OF VENDOR_DATA.
    DATA: VENDOR_LIST LIKE VENDOR_DATA OCCURS 0 WITH HEADER LINE.
    SELECT ALIFNR BTELFX INTO TABLE VENDOR_LIST FROM LFB1 AS A INNER JOIN LFA1 AS B ON ALIFNR = BLIFNR.
    LOOP AT VENDOR_LIST.
    ENDLOOP.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZTESTSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3.
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.

    Hi Sha,
    1) As client dependency is one of the drawback in the scripts, we use smart forms.
    2) When you run a Smartform it gives you a function module, using tha you can run the smart form from your driver program by calling it in the same.
    3) You give the smartform name and the function module name in the SSF_FUNCTION_MODULE_NAME.
    4) While calling the function module in the driver program, first run the smart form and call it using PATTERN, then you change the Call function name as the below example.
    5) You can pass the tables to the table parameters which will come from the function module.
    Please see the below Driver program of a smartform.
    report  zsree_temp_smart                        .
    data: it_sree type standard table of zsree_marc.
    data: x_sree1 type zsree_temp.
    parameters: p_matnr type mara-matnr.
    start-of-selection.
      perform select_data.
    end-of-selection.
      perform smart_form.
    *&      Form  SELECT_DATA
          text
    form select_data .
      select single
             matnr
             ersda
             ernam
             mtart
       from  mara
       into  x_sree1 where matnr = p_matnr.
      if x_sree1 is not initial.
        select matnr
               werks
               pstat
               lvorm
         from  marc
         into  table it_sree
         where matnr = x_sree1-matnr.
      endif.
    endform.                    " SELECT_DATA
    *&      Form  SMART_FORM
          text
    form smart_form .
      data: l_p_form type tdsfname.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = 'ZSREE_TEMP'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        importing
          fm_name                  = l_p_form
       exceptions
         no_form                  = 1
         no_function_module       = 2
         others                   = 3.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      call function l_p_form
        exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          x_sree                     = x_sree1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        tables
          it_zsree                   = it_sree
    exceptions
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       others                     = 5.
      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.                    " SMART_FORM
    Please do not forget to give rewards if it can help you better.
    Thanks,
    Sreekanth

  • To display data in smart form

    hi experts ,
    I want to know how to display the data from a database table into a smart form .
    thanks in advance .

    Hi,
    Have a lok at the below link, you will get all the details about the smart forms
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://www.erpgenie.com/abap/smartforms.htm
    http://www.erpgenie.com/abap/smartforms_detail.htm
    Regards
    Sudheer

  • Printing data in Smart form side by side.

    Hi Abap Guru's,
                          I have data in internal table. i dont know how many records are there in it. I need to print the data, side by side in smart form.
    For example:
    Mr James was a member of the above-mentioned plan. you and <b>your children, Tom , jane , Harry and Michael,</b> are entitled to receive pension.
    > children must be printed side by side in smart form.
    Thank you in advance,
    -Anil

    Hi anil,
    In case you are having problems in finding the no of records in the internal table use the following command.
    DESCRIBE TABLE itab LINES w_lines.
    w_lines gives u the no of records.
    For further help u need to tell the structure of the internal table.
    Hope it is helpfull to u.

  • Is it possible to CREATE an XML data with Smart Forms??

    Hello at all,
    i have an Smart Form Formular, which contains all information about a customer.
    My question is, if i want to send this Formular to another System, can I send this as a XML File or something else???
    I have no idea, how i can send my smart forms formular to another System.
    With kind regards.
    ETN

    I guess you want to send "spools" in XML format, not the definition of smart forms. So, the XML for Smart Forms is called XSF: read [SDN article - SAP SMART FORMS XSF - XML OUTPUT FOR SMART FORMS|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b6bc290-0201-0010-5b87-a0e7c7eb55d0] and [sap library - smart forms - output in XSF format|http://help.sap.com/saphelp_nw70/helpdata/EN/a5/28d3b6d26211d4b646006094192fe3/frameset.htm]

  • To pass data to smart forms

    i want to print a form which is developed in webdynpro fo rjava,here adobe is not working.So what iam trying is to use smart forms ,But  is it  possible to display that smartforms in portal...?
    or is there any other way to print the details which are in the webdynpro application.
    This is very urgent for me pls reply to me.
    Surely i'll give points,,,,,
    Warm regards
    shanto aloor

    Hi ,
    U can display a Smart form in portal.
    In RFC Export add a field of type Binary and populate smart form into that binary field.
    In Webdynpro view after Executing the RFC
    byte[] pdfContent =
    wdContext.current<output_node>.get<BinaryExport>();
    IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
              try
             /* PdfUrl is of type String */          wdContext.currentContextElement.setPdfUrl(pdfResource.getURL());
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);     
    Thanks,
    Sunitha

  • How to avoid printing a page if does not contain data in smart forms

    deat all,
    here is urgent requirement for me .
    i have 3 pagelayouts in smartforms.
    if there is no data in page 2 how to avoid it from printing(the second page should not come in even if it contains hedings and logo)

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • Smart forms and global data

    are parameters defined in global data in smart forms unavailable in form routines to be used
    I am working on lbbil_invoice std smart form for invoices and trying to use gs_it_gen type lbbil_it_gen that is been defined in global data. Will I have to define another wa of the same type in my sub routine ?

    I am working on a smart form right now
    I define in global data
    gv_fabrictext type char64
    gv_fabriccode type mara-j3afcc
    then in my form routines i create a sub routine
    FORM fcc_values USING gv_fabrictext.
    and making computations to calculate gv_fabrictext
    then i use a program code and call perform fcc_values using gv_fabrictext with gv_fabrictext as input and output parameters
    Is this correct? Why do I have to define gv_fabriccode type mara-j3afcc  in the form routine even though its been defined in global data

  • Hi! i am new to abap.Now i am having doubt in smart forms

    I am creating a table in smart form for that ztable i create a driver program.I am getting an output for driver program.But in smart while i am executing i am getting only header fields in the table. I am not getting body and also the table format also i am not getting.
    While executing the driver program in the print prieview i am getting the body data also.
    But in the smart form i am not getting the table format as well as body data. Plz give me the solution

    Hi,
    There are 2 approcahes..
    (1) user enters data and smartform is displayed based on his/her filters and requirements
    (2) no user input data required.....a predefined criterion fetched data
    (1) For custom programs -user interactive : If you run the driver program only data will be passed to the smartform based on user filters and selection ..once data is passed it will be populated in the table/item of the smart form and it is seen...If the smart form is executed directly without a driver program the table will not be populated and it will not show...since header fields have been created with text elements or hardcoded text it may show up if we test run smartforms in t-code smartforms...
    Usually we assign a custom transaction and assign the driver program to it..end users will not be directly running smartforms ...so as long as we have a driver program and the smartforms work ok on running the driver program..it is fine
    (2)No user interaction :We write code in "program lines" in the smart form to fetch data and/or write code in initialisation part of the global data for fetch and data manipulations...it works without the driver program -> used mainly in cases of replacing forms for standard t-codes(through SPRO) where driver program attachement option is not available or a case where we just go and fetch data based on predefined conditions not changable by user
    Hope it helps
    Regards
    Byju

  • How to print the overflow entries in Smart Form

    Hi all ,
    I am having a problem regarding smart forms . I have 30 entries in may data base table . Bt while I am going to print these data in smart form table it is showing only 16 entries .How to print rest of the entries in smart form ? Can anybody give me any solution .
    Thanks,
    Regards,
    Swashrayee
    Edited by: Matt on Feb 20, 2012 10:15 AM

    Hi,
    Are you sure you are entering the data in the main window .
    If you are using the secondary window,there is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. Text and data that do not fit into the subwindow are truncated and not displayed.
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • Smart form for different header level data

    Hi,
    I need to design a smart form,in th samart form i have 2 header records and for each header reocrd again 10 item records.
    My form shd print with fst header record  and its item records and after ending fst header record details it shd give 2nd header record and its item records.
    For example I have Header records A and B
    A have 1 2 3 4   5 item records and
    B have 7 8 9 10 11 item records
    My form shd be
    A----
    1
    2
    3
    4
    5
    b----
    7
    8
    9
    10
    11
    Any inputs please
    Regards
    Rasheed
    Edited by: Rasheed salman on Mar 19, 2009 5:33 PM

    You can use the SORT to have different header.
    You must be having some indicator in your ITEM table to distinguish different set of data.
    In the TABLE node, Under the DATA tab, give your field in the Sort Criteria.
    Select the check box Event on Sort Begin.
    This will create a new node under the HEADER and MAIN area of your table. In this Node, you can put your Header to have it different for different set of records.
    Like:
    MAIN window
    .. TABLE with sort of field1
    .... HEADER
    .... FIELD1 sort begin "use this for Header
    .... MAIN
    Regards,
    Naimesh Patel

  • Need to draw line after the 2nd line item(Smart Forms)

    Dear Friends,
    I need to draw horizontal line after the 2nd line item  and 3rd line item in smart forms.How can i achive this.
    Plz help.
    Edited by: farook shaik on May 19, 2009 8:19 AM

    This is what you need to do:
    1> In the tables->details section define two line types LT1 and LT2.
    2> Come back to tables section pressing the table painter button.
    3> Select a line type for which you want to have an underline(say LT2).
         a] If the anchor cursor does not come click the draw lines and columns button( the pencil icon nutton)
         b] select the line type ( it will become black after selection. Press and hold down ctrl to select
             multiple cells.
         c] after selection click the lower 'frame button' ( which is right at the top of box and shading).
    4> Now goto data section where you have given your internal table name and work area.
         a] in the sort criteria put your field POSNR and check the Event on Sort end chk box.
         b] you will see an extra node under the main area of the table.
         c] Create a table line with the line type LT2 in the node.
         d]Also in the Main area add another table line with LT1 as the line type.
    5> If POSNR remains unchnged LT1 will be triggered.
    6> if Posnr changes then LT2 will be triggered with the underline.
    This will suffice your requirement.

Maybe you are looking for

  • OBI 11.1.1.7.0 - upgrade from 11.1.1.6.5

    Hello, I'm attempting to upgrade to 11.1.1.7.0 from 11.1.1.6.5 via a Software Only Install on a Win2008 R2 64-bit server. Prior to the upgrade OBI 11.1.1.6.5 was running with no issues. I've downloaded the four 11.1.1.7.0 zip files and extracted via

  • Error while rendering: Export file not found - what to do?

    Hi, I have been editing my video in four different premiere pro projects (as I got adviced to do from these forums because it's AVCHD clips). I have rendered these four projects and burned to four DVD's (total playtime is around 1.5hours) - which is

  • Aaargh! 3000 N200 crippled/dumbed-down BIOS options and lack of VESA modes

    Hi, I have a Lenovo 3000 N200. The actual hardware is okay for the price (cheapest computer with Penryn CPU and 1680x1050 screen), but the BIOS settings are another matter... The biggest issue is that Lenovo has disabled the CPU PAE/NX feature in the

  • Two Notification icons in menu bar

    I am getting two Icon's showing up in Menu bar for Notifications? Just showed up and when I click either one the Notifications side bar opens? Very strange since I do not even use Notifications for anything? Wonder if anyone else has seen this?

  • Cache and Load Balancing for the Oracle APEX Listener

    Hi, I intend to use only HTTP access. My database is Oracle 11gR2, SE, 32 bit. How to implement a Cache and Load Balancing with the Oracle APEX Listener? Is it possible to do with the the standalone running APEX Listener? Thanks by advance for any ti