When we define itabs or global definitions

at form interface of a smartform creating screen, are we required to use Line type, is not is possible to use a database table we have created?
For example ZST table has been created as a db table and has data in it.
If I want to print this data via a smartform, I have to declare an itab at form interface of the smartform and a work area at global definitions...
How can I print these data?
Do I need a loop or what other thing is required?
I had headache because of this subject since 2 days.
Please help.
Deniz.

hi deniz,
FORM INTERFACE  -  is to pass variable,internal table etc from print program to  smartform so you cannot declare any thing until you are passing it in your print program.
Print program will have one function module which will export several parameters,
that can be imported to smart form by this form interface. you cant declare on ur own
hope it will clear
more please revert back.
regards
prabhu

Similar Messages

  • Define itab in smartforms

    Hi,
    Can any one tell me how to (and where to) define <b>ITAB</b> and <b>variables</b> in smartforms.
    I want to define variable something like
    g_add(10) type c,
    g_str(10) type n.
    Reward guaranteed
    cheers
    kaki

    Hi,
    U can define variables in GLOBAL DEFINITIONS->Global Data:
    g_add TYPE     C LENGTH 10
    g_str TYPE     N LENGTH 10
    and u can define ur internal table in form interface->tables:
    for Example :
    it like vbrp
    Regards,
    Digesh Panchal

  • Global definitions error  in Smart Forms

    Hi friends ,
    I'm printing invoices of 3 tables....in this i have to print VBRP net value details field is netwr,for this field already i have assigned waerk in currency/quant fields...even i am getting this below  error..
    "Global Definitions     The data object "IM_FS_VBRK" does not have a component called "WAERK"."
    would u tell me how can i rectify this error.

    Hi,
    How have you defined IM_FS_VBRK in Global definitions of smart forms?
    Regards,
    Jayesh

  • What parameters should i give in Global Definition or in code

    Hi all,
    the below program is the sample code,was done by my col...and we getting output correctly in se38...but the same if i give in smartform...its not coming out in the print/output form.....
    in global definition...i've given as
    itab like tline.
    in my text window(after the coding tree)....i mentioned as &text&
    i.e,im moving the itab-tdline(field) to text.(in my coding)(c the below code...for reference)
    data text(100).
    data itab like tline occurs 0 with header line.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    * CLIENT                        = SY-MANDT
        id                            = '0001'
        language                      = 'E'
        name                          = '0080000055'
        object                        = 'VBBK'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = itab.
    *LOOP AT ITAB.
    **write: itab-tdline.
    *text = ITAB-TDLINE.
    *WRITE:text.
    *ENDLOOP.
    read table itab index 1.
    move itab-tdline to text.
    write:/ text.

    If guess you have written this code in your program lines, don't forget to pass input and output parameters. Note : your variable text should be passed to the output parameter in program lines. Declare this variable text in GLOBAL PARAMETERS
    If that is not the case let me know whether itab is getting populated or not... if not goto SE37, use read_text and  give the below data and see it contains any header text for your selection or not.
    Regards,
    SaiRam

  • Difference between Form Interface and Global definitions in Smartforms.

    Hi guys!
    I'm learning about Smartforms.
    I would like to know which is the difference between Form Interface from the Global Settings and Global Definitions from Global settings as well, because in both of them I have to declare tables, structures, variables, etc. Could you please explain to me when should I use them?
    Thanks!
    Gaby

    Two ways to use Smart Form:
    1.     by using Application Program
    2.     By coding in Smart form itself.
    Now, if the 1st method is used then same interface can be used  for multiple requirements. For eg two different programs Z1 and Z2, may use same interface. Hence a lot of efforts are reduced.
    On the other side in 2nd method, multiple forms have to be created to fulfill different requirements.
    Now, Global Definiton is something that is irrespective of which Program is being used, the form nodes can use the Global definition in all cases.
    Also all tables etc must be declared in the Global setting.
    Regards,
    Sana

  • No rfc destination is defined in SAP Global Trade Services

    when doing MB1C transaction the above mentioned error is displayed(errror: No rfc destination is defined in SAP Global Trade
    Services ).doing MB1C transaction through movement type 561 the system is accepted,but through MT 501 when we are doing
    the process, the system will generate the aove mentioned error.pls give the correct solution.
    regards
    Maran

    Re: Getting dump MESSAGE_TYPE_X while posting in MIGO

  • Variable declared in global definition smart form

    Hi,
    We have defined an internal table 'it_table' in the global definition. We are unable to use  'it_table' in 'Page and Windows' loop statement.
    Kindly suggest.
    Regards,

    Hi Sanjay,
      There are 2 cases exist for your problem :
       1. If you are filling the desired internal table and wants to pass that table to your smart form for loop processing than you have to declare it in the form interface ; As the name itself sounds the interface ,Which means it provide an interface to pass data from Print program (Driver program) to smart form.
        But for this the table type can be only the DDIC structure not the one you are declaring in your print program as it will not recognize it.
      2. But in second case if you are filling the internal table into your smart from than ,table should be declared in the Global definition.
         The way is as :
         Go to ->global definition->type tab declare the type as :
          types : begin of t_vbap,
              vbeln type vbeln_va,
              posnr type POSNR_VA,
              matnr type matnr,
              netwr type NETWR_AP,
            end of t_vbap.
         Now declare a table type for the previously created type as follows :
         types : it_vbap type t_vbap occurs 0.
         (You can go to SE11 and create a table type there also for same)
         Now go to the Global data tab and declare your table as follows :
         I_VBAP    TYPE   IT_VBAP
         Now I_VBAP will be a table. and you can carry on your processing.
    Please award point by clicking star.

  • Address with Type 'Define Dynamically' using Global Data

    Hello,
    in a new created Adobe form Program Lines are no longer available. How can a global variable be set?
    The global variable is used in an Address as Dynamic Address Type.
    Thank you very much for your help.
    Kind regards, Marion Hergert

    hi,
    generally the global parameters will be declared and do some logic in the intrface. in the address node,for dynamic address type  parameter should be 3rd one ( am not sure), drag the global parameter into that field and  you can proceed further.
    The following logic I have used when I developed the forms when there is no address number.
    I think you can use the similar logic in your case.
    If your application makes no use of the Business Address Services but you still want to have country-specific addresses, you must use ABAP coding to achieve this. It is possible to do this in the application program or in the initialization coding of the interface. The example here describes the latter option. You need to call the function module ADDRESS_INTO_PRINTFORM. Among its parameters, you will find address_1. This structure contains all relevant address fields, like name, street, city, or country. These fields must be filled with the address data from your application. In other words, you must take care to create a correct mapping of the address fields from your application and the individual address fields of structure address_1.
    You should determine the value of parameter number_of_lines. It equals the maximum number of lines that will be created from the address data. Function module ADDRESS_INTO_PRINTFORM returns an internal table address_printform_table, which has only one column. Every line contains one line of the address that has been assembled according to the addressee's country. These lines need to be converted into a two-column internal table of type tline that can be used as the source of a dynamic text in a PDF form. Its two columns are:
    TDFORMAT - contains the paragraph format of the line (e.g. an asterisk for the default format)
    TDLINE contains the text itself.
    Addresses Without Business Address Services - Coding
    TYPE-POOLS: szadr.
    DATA:
      ls_address       TYPE adrs1,
      lt_address_lines TYPE szadr_printform_table,
      ls_address_line  LIKE LINE OF lt_address_lines.
    *map address fields from work area to fields from function module
    ls_address-title_text = is_customer-form.
    ls_address-name1      = is_customer-name.
    ls_address-street     = is_customer-street.
    ls_address-post_code1 = is_customer-postcode.
    ls_address-city1      = is_customer-city.
    ls_address-country    = is_customer-country.
    CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
      EXPORTING
        address_1               = ls_address
        address_type            = '1'                       "normal/company
        sender_country          = iv_sending_country
        number_of_lines         = 6
      IMPORTING
        address_printform_table = lt_address_lines.
    DATA: ls_dynamic_text TYPE tline.
    LT_DYNAMIC_TEXT would be defined as a global field
    of the interface as follows:
    lt_dynamic_text TYPE TABLE OF tline
    LOOP AT lt_address_lines
      INTO ls_address_line.
      ls_dynamic_text-tdformat = '*'.
      ls_dynamic_text-tdline   = ls_address_line-address_line.
      APPEND ls_dynamic_text TO lt_dynamic_text.
    ENDLOOP.
    pass this internaltable to the context. drag that table  in the layout.

  • Lines are breaking in global definition of a smartforms

    HI,  
              Every one, today I am facing issues with smartforms.
              In initialization tab of global definition,the lines are breaking when am scroll it down.
              the screen shot attached here with(if being needed).
              tried to find out solution over web for this particular lagging.but failed.
              Any solution? for this.
              will be sincerely thankful.

    Did you check OSS notes for ("Microsoft Word" "editor" "Smartforms")
    your system level (SAP_BASIS component), which version ?
    your SAP GUI, which version ?
    Have you same problem with other transaction that use text edit control, else you could roll back to "Table Control Editor"
    Regards,
    Raymond

  • When I define a variable in BO it automatically turns it into a detail

    i have made a user prompt in my report
    so the user can input a value that does not exist in universe so i can use it as condition or a filter,
    i have done this by using the followiing condition in the query
       object = object
    or
       object = ToPrompt("Give number")
    As you can see by the logic this condition will ALWAYS be true because object  = object  is always true. So this logic will not impact the rest of the query it will just allow to enter any value in the user prompt
    in the report when i try to create a new variable
    =ToNumber(UserResponse ("Query 1 with NEW_UNIV" , "Give number"))
    it automatically turns it into a detail and i cant change it to measure or dimension.
    is there a way to fix this
    thanks in advance

    some one answered in the following link
    [When I define a variable in BO it automatically turns it into a detail;

  • RFC destination not defined for SAP global trade services

    HI friends,
    I have created a delivery against a sales order. Maintained the storage location and the picking quantity for the item.
    Now trying to post the goods issue but system is giving short dump and error message says:
    "RFC destination is not defined for SAP global trade services"
    We are not using SAP global trade services module and no IDocs are involved in the process.
    Please help
    Thanks in advance
    Veer

    Hi Mohit,
    Thank you for replying.
    It was not an issue with RFC destination but to do with transfer of outbound delivery processes to SAP global trade services.
    As we were not using global trade services, we had to deactivate the transfer of data from SD application to global trade services.
    The settings are under IMG>SD>foreging trade>SAP global trade services-plug-in> control data transfer to SAP global trade services
    Deactivate all the activities.
    Now this issue has been resolved.
    Thank you again for replying.
    Regards
    Veer

  • SELECT returns no result when there is a default namespace definition inXML

    Hi,
    I have a problem that my select doesn't return any result when there is a default namespace definition in my XML file.
    I'm using oracle 11g release 1
    XML file stored as a binary XML:
    <SIMS xmlns="http://sims.ics.muni.cz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    This select return no result:
    SELECT student.jmeno FROM jh_sims_bin_no_schema s, XMLTable('/SIMS/Vystup/Student' PASSING s.OBJECT_VALUE COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno') student
    When I remove default namespace definition (xmlns="http://sims.ics.muni.cz") everything works fine and the same SELECT returns "Petr". Also when the file is stored in object relational storage everything works fine!
    <SIMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    Thanks for any help!
    Jan Hruby

    Hi Jan,
    You need to specify the default namespace of the document in the XMLNamespaces clause :
    SELECT student.jmeno
    FROM jh_sims_bin_no_schema s,
         XMLTable(
          XMLNamespaces(default 'http://sims.ics.muni.cz'),
          '/SIMS/Vystup/Student'
          PASSING s.OBJECT_VALUE
          COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno'
         ) student
    ;

  • No RFC destination is defined for SAP Global Trade Services

    Hi Team,
    I am getting error No RFC destination is defined for SAP Global Trade Services while transferring master data from one ECC Client to GTS.
    Both clients has built in GTS. The situation is like this.... Client A which has ECC & GTS and Client B also has ECC and GTS. Client B we are intended
    to use only for GTS. This is basically for proto type purpose we need to establish connectivity between A and B. B we intended to use as a feeder system
    1) All the three BADI'sin SD0A,SD0B and SD0C level activated
    SLL_PI_SD0A_TRANSFER
    SLL_PI_SD0B_TRANSFER
    SLL_PI_SD0C_TRANSFER
    2) /SAPSLL/RFC_DEST Badi also active
    I asked BASIS people to check in SM59  Client A is connected with Client B (here Client B as RFC destination) even connection test / remote logon also
    tested and it is working between A an B
    Where i am missing
    Regards,
    Ramji

    Hi Dave,
    Thanks for your reply.Sorry i forgot to include in my points already done.
    BD97
    BD64
    Just to clarify one more point
    sender should be EH6CLNT800 (ECC)
    Receipient should be EICCLNT800 (GTS). Is it correct
    Regards,
    Ramji

  • New version of initialization tab in global definition.

    hi all,
    i want new version of initialization tab of global definitions as it appears in abap editor. and also im not able to increment the lines of types tab of global definition .e.g. after 25th line of type tab i can't write any extra line.plz help
    regards,
    Mukesh

    Hi,
         You can check in Utilities->settings-> Editor Tab.
          Change the option to 'Text Edit Control' and try

  • ERROR in TYPE-POOLS cihal - Global definitions. Sentence not permitted...

    Hi guys,
    My ERROR is: "Global definitions. Sentence not permitted in context" in transaction SMARTFORMS.
    My code is:
    TYPE-POOLS cihal. " error here
    TYPES:
    typ_rcgstdrecn TYPE TABLE OF rcgstdrecn,
    typ_ccihs_ialhiot TYPE TABLE OF ccihs_ialhiot,
    typ_cihal_resltapi_tab_type TYPE TABLE OF cihal_resltapi_tab_type,
    typ_ccihs_ihvaliot TYPE TABLE OF ccihs_ihvaliot,
    typ_ccihs_ipiot TYPE TABLE OF ccihs_ipiot,
    typ_ccihs_ipevaiot TYPE TABLE OF ccihs_ipevaiot,
    typ_ccihs_ipevinjiot TYPE TABLE OF ccihs_ipevinjiot,
    typ_cih01_ihprapi_tab_type TYPE TABLE OF ccihs_prapi,
    typ_ccihs_ipabsiot TYPE TABLE OF ccihs_ipabsiot,
    typ_ccihs_iprestriot TYPE TABLE OF ccihs_iprestriot,
    type_ccihs_ipevinjiot TYPE TABLE OF ccihs_ipevinjiot,
    typ_tline TYPE TABLE OF tline.
    TYPES: BEGIN OF typ_datos_acc,
            nachn TYPE pad_nachn,
            name2 TYPE pad_name2,
            vorna TYPE pad_vorna,
            years TYPE i,
            werks TYPE persa,
            berkt TYPE berkt,
      END OF typ_datos_acc.
    " end code
    This code is in the tab "types" belonging to the definitions of global smartform.
    Anybody can help me with this error?
    Where can include the "TYPE-POOLS cihal." in my smartform without giving me this error?
    Thanks for your help.

    Hi Anup Verma,
    What you say is correct, to include the TYPE-POOLS in the initialization tab.
    What was happening is that the Line:
    typ_cihal_resltapi_tab_type TYPE OF TABLE cihal_resltapi_tab_type,
    declared in the types tab was obsolete and I had to comment to activate correctly.
    Thank you very much for your help.

Maybe you are looking for

  • How to get a list of all the clients logged in to the network

    hiii how can i fetch a list of all the users who are currently logged on the network...so that the list can then be sent to a database..plz tel me what techniqe can followed to do this....thanx

  • Customers - FI reports on basis ship to party and sold to party.

    Hello Experts, In my scenario, sold to party and ship to party are different. For ex: My customer (sold to party / payer / bill to party) is Mr. A (on whom bill is raised and accounting is done). Ship to Party is B (where goods are delivered). Now, I

  • Abap SQL question

    Hi, I need to select the set of records only in Table A, but not in Table B. I think that the correct SQL is: select k~vbeln into data from vbak as k inner join vbfa as f on kvbeln = fvbelv where f~vbelv is null. But the following message appears: u2

  • How to convert bytes to GB inside of a text file

    I'm using a PS script to automate WSUS cleanup and then output the results to a text file which is then emailed to me. The output for Diskspace Freed is displayed in bytes, I would like to convert this to GB, but I am having trouble getting this to w

  • Java API/dbms_aw_xml Package

    Hello, can somebody tell me the coherences between the Java API and the dbms_aw_xml Package? I Know that the dbms_aw_xml Package is a set of the Java API, with this Package I can create Java Code for creating an Analytic Workspace. But how can i crea