How to use structure in ABAP program

I developing a report in smartforms but i want some fields to be display on the report but unable to find the relvent table as the field is show in structure.i can not find the actual table . is there any specfic way to find the table .or is there any way to use the fields defind in structure in my ABAP program.

Hi,
  May be iam not clear with the question. But why you want to use structure. In report you can define your own structure, also you can declare your fields directly using standard datatypes.
Hope this will help!!!
Amol

Similar Messages

  • How to use RSAN_PROCESS_EXECUTE in abap program

    Hi all,
    Does someone know how to use RSAN_PROCESS_EXECUTE in a abap program to execute an analytical process created in the transaction RSANWB?
    I create a variant 'ZPC_ALIM_DL' for RSAN_PROCESS_EXECUTE. I would like to execute this program with this variant in a background job, but it seems that the job executed but it does nothing.
    See below a part of the code.
    SUBMIT RSAN_PROCESS_EXECUTE
                 WITH VARIANT = 'ZPC_ALIM_DL'
                 USER SY-UNAME VIA JOB L_JOBNM1 NUMBER L_JOBCOUNT1
                 AND RETURN.
    Thanks in advance,
    L.

    Hi Ludovic,
              I am using RSAN_PROCESS_EXECUTE with a variant in process chain. simply include 'abap program' type in process chain mention RSAN_PROCESS_EXECUTE as the program name and mention the variant you created for your apd process and run. I have tested it in dev and it has worked for me. let me know if this helps!
    Thanks
    Suresh R Kovvuru

  • How to use PUSHBUTTON in ABAP Program?

    Hi, I'm not able to get any output for the below code.
    SELECTION-SCREEN BEGIN OF BLOCK TT WITH FRAME TITLE TEXT-004.
    PARAMETERS : X(15) TYPE C DEFAULT 'HI SAPERS'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(70) TEXT-000.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN PUSHBUTTON 1(10) TEXT-001 USER-COMMAND pb01.
    SELECTION-SCREEN PUSHBUTTON 20(10) TEXT-002 USER-COMMAND pb02.
    SELECTION-SCREEN END OF BLOCK TT.
    *DATA: OK_CODE LIKE SY-UCOMM.
    AT SELECTION-SCREEN.
    AT USER-COMMAND.
      CASE SY-UCOMM.
      WHEN 'PB01'.
      write:/ 'hello'.
        WRITE : / 'STRING ENTERED IS :', X.
      WHEN 'PB02'.
        LEAVE PROGRAM.
    ENDCASE.
    WRITE : / '!! AFTER EVENT !!'.
    ty

    Hi
       Check below sample code.
    TABLES sscrfields.
    DATA flag(1) TYPE c.
    SELECTION-SCREEN:
        BEGIN OF LINE,
          PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
          PUSHBUTTON 12(10) but2 USER-COMMAND cli2,
        END OF LINE,
        BEGIN OF LINE,
          PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
          PUSHBUTTON 12(10) but4 USER-COMMAND cli4,
        END OF LINE.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'CLI1'.
          flag = '1'.
        WHEN 'CLI2'.
          flag = '2'.
        WHEN 'CLI3'.
          flag = '3'.
        WHEN 'CLI4'.
          flag = '4'.
      ENDCASE.
    INITIALIZATION.
      MOVE: 'Button1' to but1,
            'Button2' to but2,
            'Button3' to but3,
            'Button4' to but4.
    START-OF-SELECTION.
      CASE flag.
        WHEN '1'.
          WRITE / 'Button 1 was clicked'.
        WHEN '2'.
          WRITE / 'Button 2 was clicked'.
        WHEN '3'.
          WRITE / 'Button 3 was clicked'.
        WHEN '4'.
          WRITE / 'Button 4 was clicked'.
        WHEN OTHERS.
          WRITE / 'No Button was clicked'.
      ENDCASE.
      Note that WRITE statements will not work in AT SELECTION-SCREEN events, alternativey you can use some popup to display the same.
       You can also check demo program: DEMO_SEL_SCREEN_PUSHBUTTON
       Hope this clarifies you.
    Kind Regards
    Eswar

  • Why and how to use events in abap objects

    Dear all,
      Please explain me why and how to use events in abap objects with real time example
    regards
    pankaj giri

    Hi Pankaj,
    I will try to explain why to use events... How to use is a different topic.. which others have already answered...
    This is same from your prev. post...
    Events :
    Technically speaking :
    " Events are notifications an object receives from, or transmits to, other objects or applications. Events allow objects to perform actions whenever a specific occurrence takes place. Microsoft Windows is an event-driven operating system, events can come from other objects, applications, or user input such as mouse clicks or key presses. "
    Lets say you have an ALV - An editable one ...
    Lats say - Once you press some button  you want some kind of validation to be done.
    How to do this ?
    Raise an Event - Which is handled by a method and write the validation code.
    Now you might argue, that I can do it in this way : Capture the function code - and call the validate method.
    Yes, in this case it can be done.. But lets say .. you change a field in the ALV and you want the validation to be done as soon as he is done with typing.
    Where is the function code here ? No function code... But there is an event here - The data changed event.
    So you can raise a data changed event that can be handled and will do the validation.
    It is not user friendly that you ask the user to press a button (to get the function code) for validation each time he enters a data.
    The events can be raised by a system, or by a program also. So in this case the data changed event is raised by a system that you can handle.
    Also, Lets say on a particular action you want some code to trigger. (You can take the same example of validation code). In this case the code to trigger is in a separate class. The object of which is not available here at this moment. (This case happens very frequently).
    Advantage with events : Event handlers can be in a separate class also.
    e.g : In the middle of some business logic .. you encounter a error. You want to send this information to the UI (to user - in form of a pop up) and then continue with some processing.
    In many cases - A direct method call to trigger the pop up is not done. Because (in ideal cases) the engine must not interact with UI directly - Because the UI could be some other application - like a windows UI but the error comes from some SAP program.
    So - A event is raised from the engine that is handled in the UI and a pop up is triggered.
    Here -- I would have different classes (lets say for different Operating Systems). And all these classes must register to the event ERROR raised in application.
    And these different classes for different Operation systems will have different code to raise a pop-up.
    Now you can imagine : If you coded a pop-up for Windows (in your application logic) .. it will not work for Mac or Linux. But of you raise a event.. that is handled separately by a different UI classes for Win, Linux or Mac  they will catch this event and process accordingly.
    May be I complicated this explanation .... but I couldn't think of a simpler and concrete example.
    Cheers.
    Varun.

  • How to use upload condition record program RV14BTCI

    Hi
    how to use upload condition record program RV14BTCI.
    kathir.

    Hi,
    To run this program we have to maintain Upload file in Application Directory,
    We have to maintain 3 levels of records in that file.. my feel you upload through BDC or LSMW.
    For your information,
    The batch input program RV14BTCI reads the parameters is necessary
    Giving sequential file and creates (depending on the data
    In the file seq) one or more batch input sessions.
    The data are seq file in the following structure expected:
    - The session a session intent (Table KOBTCI, Record 0)
    All other records until the next session, the intent
    Last session assigned to read
    - The head condition Sentence (Table KOBTCI, record 1)
    All other records until the next condition,
    Last read head appropriate rate
    This includes the corresponding condition
    Condition table
    - The key sentence of a Main (Table KOBTCI, record 2)
    It must be directly on the head set to follow
    It contains the key condition of the table
    + Detail fields
    - The season record has a subordinate clause (Table KOBTCI, record 3)
    The teams relate to the key sentence in the main
    Best Regards,
    KSK

  • How to use Enhancement spot in program

    Hi gurus,
    now i am working ecc 6.0, so how to use Enhancement spot in program, can anybody explain step by step.
    Rewarded with points.
    Thanks
    Naveen

    Hi Naveen ,
    Enhancement Spot are available.
    Examples:
    -End of Executable Program, Include, Function group, Dialog module
    -Begin/End of Form routine / Function module / Method
    -End of a structure
    -End of Private/Protected/Public Section of a local class
    If you want to create Implementation , You have to right click on yellow color line and gve Zxxx and save it in any
    transport request under any dev class. Then you can write your own code and save it and activate it .
    Later If you want to Transport it you need to transport this request.
    Reqward if usefuil
    Thanks
    Jagadeesh.G

  • How to copy/download  all ABAP programs in a text with a single report  ?

    How to copy/download  all ABAP programs in a text format with a single report/TC  ?
    How to copy/download  ABAP source code with all include programs ?....
    we need to search & copy all include programs everytime....

    Hi,
    check this link
    downloading programs
    Regards

  • Regarding structure of abap program

    hi,
    can any one exaplain to me what is the structure of the abap program.
    thank&regards,
    ramnaresh

    Hi..
    This is the Structure of ABAP program.
    REPORT <NAME>.
    **Global Data definitions
    TYPES:
    DATA:
    **Selection Screen Definition
    SELECT-OPTIONS
    PARAMETERS
    **Event Blocks
    INITIALIZATION .
       perform X.
    START-OF-SELECTION.
       perform Y.
    ****Form routines definition
    FORM X.
    ENDFORM.
    FORM Y.
    ENDFORM.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Structure of ABAP program

    hi SDNs,
               what is the typical structure of an ABAP program?
               thanks and regards,
                   aravind.

    hi
    plz check the structure of ABAP Program under..
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    below the typical structure...
    1.data declaration
    2.selection-screen declartion
    3.data validation
    4.output.
    Cheers
    Abdul Hakim

  • How to use wildcards in ABAP query where condition?

    Hi,
    Please tell me how to use wildcards in ABAP qurey where condition.
    e.g. select * from mara where matnr = * (wildcard we need to use.
    Thanks & Regards,
    Gaurav T

    Do you want to query asterix * ?
    select * from mara where matnr = '*'.  "then just put it in apstrophes
    or you want certain part of string be used as * ?
    select * from mara where matnr like '%*'  "then use % sign before it
    or maybe you want something like this
    select * from mara where matnr like '%1' . "then it will look for all materials having '1' inside it
    Regards
    Marcin

  • How to use Structures of Variant Configuratin in BAPI_QUOTATION_CREATEFROM2

    Can any one help me by telling How to use Structures of Variant Configuratin in BAPI_QUOTATION_CREATEFROM2
    the structures are :QUOTATION_CFGS_REF, QUOTATION_CFGS_INST, QUOTATION_CFGS_PART_OF, QUOTATION_CFGS_VALUE.
    What the necessary parameters to be passed ?
    Thanks,
    Mohan

    Ankur,
    I change the Structure Scope to B and Application SD01, but it seems conflict with the config strategy and variant matching. So, in VA21, material can't be determined by system automatically through choosing characteristics. System expands all the material of the top material. Like this:
    AA
    Aa
    aa
    ab
    Ba
    ba
    bb
    Are there some mistakes in my Item Category configuration?
    Thanks.
    Edited by: wayne wu on Jun 21, 2011 4:41 AM

  • How to use structure QUOTATION_CFGS_VALUE in BAPI_QUOTATION_CREATEFROMDATA2

    Hi All,
      I am using bapi for quotation creation BAPI_QUOTATION_CREATEFROMDATA2
    I want to know how to use structure QUOTATION_CFGS_VALUE in BAPI_QUOTATION_CREATEFROMDATA2.
    This structure is used for Variant Configuration.
    Can you please help me.
    Thanks in advance.
    Mohan kumar

    Hi
    I am also looking for same code(Create quotation using BAPI)..could you please share the code
    Thanks a lot

  • How to find hardcoded in ABAP programs

    Dear Experts,
    Please tell me how to find hardcoded in ABAP programs.

    Hi Sam,
    Generally in Abap program hardcoded strings are declared in single quotes '         .
    for ex :
    write : 'Report heading'. " search for  '   in the entire program.
    press FIND button in menu bar and type single quote  '  . and select radio button ' IN MAIN PROGRAM '
    Regards,
    Aby.

  • Query: how to use structure and selection and what's the difference between

    Query: how to use structure and selection and what's the difference between these two?
    Would be appreciated if some experts here give examples to demenstrate on how to use structure and selection in query and what's the difference between these two?
    Thanks in advance!

    Hi Kevin,
    1. Well by default all the KF that you include in your query go into a Key Figure Structure. You can additionally have another structure for defining how your chars are laid out. A common example is a Calmonth structure where you have selections for 12 months, quarers and YTD values. This would be a char structure with different selections (for each month, qtr etc)
    2. Yes, a selection with a KF is the same as restricting a KF. You can use am RKF is you have one on the left hand side, or if you need to do this locally in the query, right click the structure and choose New Selection, then proceed to choose your KF and reqd char values.
    Hope this helps...

  • Explain How to use Structure mapping button

    Hi All
    Iam Developing an application "Implementing and Using Exceptions in Guided Procedures"
    Can you please explain How to use Structure mapping button,
    Plz give me steps in details
    Thanks
    Srinivas

    Hi
    Create a project using 0020 as method.
    Max

Maybe you are looking for

  • CCOD E-mail routing and creation of SR

    I am trying to find out if there is a process or a workflow that would allow for an e-mail that has been routed to the communications tab to have an SR created via workflow or some other method.

  • EDI-- Idoc .. Steps needed... Using Seeburger .

    Hi All, Iam doing a scenario for EDI file to Idoc scenario. My client asking me to use the AS2 adapter.Can you pls tell me whether the below steps are correct ?? EDI File ---> Idoc Scenario : AS2 SND adapter -- > File Rcv adapter -> File Sender adapt

  • Troubleshooting Blending Pixelation Problems

    When I try to blend, layers, the top layer is extemely pixelated. I am trying to merge two photos, but with anything less than 100% opacity, it looks like the top layer is sprayed on with microsoft paint rather than a nice smooth blend. Any ideas wha

  • Adobe documents print out in Martian

    We have Adobe Acrobate 8.0.   When we print out a document to our Canon MP620 the English comes out in unintelligible characters and symbols.  So far we have rebooted and called Canon (who said to call Adobe). Any solutions? thanks Zach

  • Duplication of Billing doc

    Hi Guys i have a problem regarding duplication of invoice. Lets understand by following Example: Invoive F2 Generated Accounting Document (Not Cleared) Then Cancellation Invoice Genrated ......( But With Future Date) Accounting Doc ( Not Cleared) New