WD(ABAP) table as event parameter

Is i possible to pass an inernal table as an event parameter. if so, how?

Yeah, got it working.
I made a schoolboy mistake of defining a database table instead of an internal table
Thanks though.

Similar Messages

  • ABAP Table Maintenance Events

    Hello All ,
    I have created the Table Maintenance with Events .
    When the user enter the sales order number  & item in the Txn code screen of the table  .The Event  05  triggers & pulls out information for Sales Order Customer ,Material ,Plant  & show it in the  screen .
    There are two more fields for user input Valid to & Valid from , the user now fills in these fields & then press Save button in the screen .
    Now He gets the Short dump related to duplicate entries .
    I checked the standard code & it  is trying to enter data into the Internal table
    MOD_ELEM_TAB  & since already the same entry exsist in this table so program dumps out .
    Kindly suggest the way to solve this issue .
    Best regards,
    Anurag Goel .

    Check with table primary keys and if you are creating same data again and again,
    then you will get short dump..
    so keep the validation like if record already exits then give message.
    else you want to create same data again and again then create one more field and it is like count (keep as primary key ).
    Reward Points if it is helpful
    thanks
    Seshu

  • How to capture username in ABAP table

    Hi experts,
    I have this case:
    A webdynpro application calling a BAPI throught adaptive RFC.
    The problem is the last updated username captured in my ABAP tables is the one supplied when i created the logical system names. (JCO)
    What i actually want to capture is username of the user who login.
    What am i missing ?
    Thanks a lot.
    Regards,
    Daniel

    Hi Daniel
    Use the foll. code to get the user id
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    Pass this is as a parameter to RFC. Your ABAPer will have to do a change in RFC to capture and insert this User id in the respective table.
    Regards
    Nikhil Bansal
    xxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 18, 2008 7:24 PM

  • How to use ABAP include in SLT parameter

    Hi Frzz,
    Could some one guide me how to use ABAP include in SLT parameter to perform calculations.
    Best Regards,
    Krishna.

    Hi,
    We can have ABAP includes within SLT advanced replicaiton settings.
    Go to IUUC_REPL_CONTENT select the applicable schema configuration name.click on "Select Configuration" button.
    you could see all the tables that are in replication.
    select the required table and then click on "edit settings for selected tables".
    in the next screen select "IUUC_***_RUL_MAP" tab . here we hve the option to insert line of code or abap include as per the requriement.
    please refer the techincal manual of SLT as well for more detailed information on advanced replicaitons within SLT.
    Thank you.
    Shishupal

  • ABAP Table Type in RFC Callable Object in GP

    Hi Experts,
    I have created a RFC in ABAP that has as one of its export parameters a table type. I am trying to call this RFC in my GP process. So I created the external service callable object as required. However, when I look at the output parameters for the callable object, the table type is not shown as a list (the is list column is not checked for this parameter).
    Do you know if ABAP table types is supported/recognized by GP as a list? or is this a limitation?
    Any help is welcomed!
    Thanks in advance.
    Robert

    Hi Aneel,
    You can try the following:
    e.g.
    for j = 1 to ActiveCell.SpecialCells(11).Column
      oParam4.Rows.Add
      if j=1 then oParam4.Value(j, "NAME") = ActiveSheet.Cells(1,j).Value
      if j=2 then oParam4.Value(j, "TYPE")  = ActiveSheet.Cells(1,j).Value
      if j=3 then oParam4.Value(j, "NUMB") = ActiveSheet.Cells(1,j).Value
    next j
    Regards,
    ScriptMan

  • WD ABAP Table, LinkToAction

    Hello,
    I have added a LinkToAction into a cell of a wd table column. To call the correct action in the event handler I need to know the selected row and column. How can I receive this necessary information?
    Thanks in advance and kind regards,
    Dagmar

    Hi,
    in the wdevent parameter  of your linktoaction u will a parameter name 'CONTEXT_ELEMENT' which is of type if_WD_CONTEXT_ELEMENT from which u can get the index of the element in the talbe .using this u will know on which row the action is performed . for column u can use the ID parameter means the ID of the ELEMENT i.e ur link which column link is clicked.
    set a debug point in ur action and analyse the event parameter of it. under that object see the paramters list . u will get ur required things.
    Regards
    Yashpal

  • Event parameter setting

    Hi All,
    I have a event DISPLAY of the BOR Object ZTESTBOR.
    The Event DISPLAY has a parameter 'Matnr' of type mara-matnr.
    Now i want to start a work flow when the event is triggered.
    So i have done the binidng in the worl flow.
    How can i pass a value say '1000001' to Matnr ( i.e the event parameter ) and then trigger the event so that the work flow container element can take the value in the container element so that i can use it in the WF.
    Can u suggest any FM's or documents where this could be found.

    This program might Help:
    REPORT ZTESTING1 .
    tables :
    ZOPM_OBJKEY.
    data :
    * object key
    objectkey type SYSUUID_C,
    objkey like sww_contob-objkey.
    * defining the event container..........................................
    data begin of event_container occurs 0.
    include structure swcont.
    data end of event_container.
    * workitem list
    data :
    t_wid like SWOTOBJID occurs 0 with header line.
    clear event_container.
    refresh event_container.
    CALL FUNCTION 'SYSTEM_GET_UNIQUE_ID'
    EXPORTING
    DCE_COMPATIBLE = 1
    IMPORTING
    UNIQUE_ID = objectkey.
    objkey = objectkey.
    clear objectkey.
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'CONTEXT'
    field = 'UAD'
    tables
    container = event_container
    exceptions others = 1.
    call function 'SWC_ELEMENT_SET'
    exporting
    element = 'SUBJECT'
    field = '3333'
    tables
    container = EVENT_CONTAINER
    exceptions others = 1.
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'ZPSKUMAR'
    objkey = objkey
    event = 'GENERIC'
    * CREATOR = ' '
    * TAKE_WORKITEM_REQUESTER = ' '
    * START_WITH_DELAY = ' '
    * START_RECFB_SYNCHRON = ' '
    * NO_COMMIT_FOR_QUEUE = ' '
    * DEBUG_FLAG = ' '
    * NO_LOGGING = ' '
    * IDENT =
    * IMPORTING
    * EVENT_ID =
    TABLES
    EVENT_CONTAINER = EVENT_CONTAINER
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF
    Hope That Helps
    Anirban M.

  • PL/SQL TABLE AS A PARAMETER TO PSP

    Hello !
    In a PSP application one of the pages is retrieving rows more than 10, and the limitation for the same is to display only 10 rows a page. Same can be done using OWA_UTIL but only if you are having a query to pass as one of the parameters.
    I'm processing a PL/SQL block and storing the outcome in a PL/SL table. After showing 10 rows of a table on the first screen, would like to pass the PL/SQL table as a parameter to other .PSP so that I can display another set of 10 out there. The calling page is not getting compiled if passed a PL/SQL table as a parameter flashing an error 'number or type mismatch'.
    regards,
    [email protected]

    user445394,
    Have you looked at the collections examples on this Web page:
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/jdbc20/jdbc20.html
    Good Luck,
    Avi.

  • How to create a table with events in smartforms?

    How to create a table with events view in smartforms?
    It doesn't like general table with header, main area and footer.
    for example:
    in smartforms: LE_SHP_DELNOTE
    table name is TABLEITEM(Delivery items table)

    Vel wrote:
    I am creating XML file using DBMS_XMLGEN package. This XML file will contain data from two different database tables. So I am creating temporary table in the PL/SQL procedure to have the data from these different tables in a single temporary table.
    Please find the below Dynamic SQL statements that i'm using for create the temp table and inserting the data into it.
    Before insert the V_NAME filed, i will be appending a VARCHAR field to the original data.
    EXECUTE IMMEDIATE 'CREATE TABLE TEMP_TABLE (UNIQUE_KEY NUMBER , FILE_NAME VARCHAR2(1000), LAST_DATE DATE)';
    EXECUTE IMMEDIATE 'INSERT INTO TEMP_TABLE values (SEQUENCE.nextval,:1,:2)' USING V_NAME,vLastDate;What exactly i need is to eliminate the INSERT portion of it,Since i have to insert more 90,000 rows into it. Is there way to have the temp table created with data in it along with the sequence value as well.
    I'm using Oracle 10.2.0.4 version.
    Edited by: 903948 on Dec 22, 2011 10:58 PMWhat you need to do to eliminate the INSERT statement is to -- as already suggested by others - eliminate the temporary table. You don't need it. It is just necessary overhead. Please explain why you (apparently) believe that the suggestion of a view will not meet your requirements.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • Table maintenance events

    Hello,
    Does anyone has a code example of table maintenance events?
    I have a custom table ( zitab ) , with a maintenance view in SM30. I would like to use the table maintenance events for some authorisation check before the data is displayed, then, depending on the authorisation, display what the user is authorised to see. After data input, perform validation, if errors occur, inform the user what the problem is, if not, save in tha z table.
    Can this be done in sm30 or I need to write a new program?
    Thank you!

    Can someone please explain me why I have this short dump (before save event)?
    Error analysis
        The statement
          "MOVE src TO dst"
        requires the operands "dst" and "src" to be comvertible.
        Since this statement occurs in a Unicode program, the special
        convertibility rules for Unicode programs apply. In this case, the
        following rules have been broken:
    Source Code Extract
    Line  SourceCde
        1 ----
        2 ***INCLUDE LYTableF04 .
        3 ----
        4
        5 form before_save.
        6
        7 DATA: l_field_is_blank.
        8   DATA: BEGIN OF s_ytable.
        9           INCLUDE STRUCTURE ytable.
       10           INCLUDE STRUCTURE vimtbflags.
       11   DATA: END OF s_ytable.
       12
       13   LOOP AT total.
       14     CLEAR s_ytable.
    >>>>>     MOVE total TO s_table.
       16
       17   ENDLOOP.
       18
       19 endform.
    In all examples that i read on this forum this code works, I don't know why it fails for me.

  • Issuing an Error in Table Maintenance Event

    Hi,
    How can I issue an error in the table maintenance event without exiting the screen.
    When an event is triggered (Before Save), it will perform a check in the data changed or created. It will issue an error when the changes are not correct. But when I press enter or click on the check button, it will exit the table maintenance screen.
    What do I have to do in order to issue an error but will still go back to the table maintenance view.
    Making the message as information or type I, will not work because it will still save.

    Hi,
    I came to the same problem, maybe this will help someone.
    You can move check into view cluster event.
    1. load the view
         PERFORM vcl_set_table_access_for_obj
              USING 'view'
              CHANGING error_flag.
    2. assing to structure
         LOOP AT <vcl_total> INTO ls_view
    3. perform check, set VCL_STOP which will stop saving and will display message
         VCL_STOP = 'X'.
         MESSAGE ....

  • Pass table name as parameter in prepared Statement

    Can I pass table name as parameter in prepared Statement
    for example
    select * from ? where name =?
    when i use setString method for passing parameters this method append single colon before and after of this parameter but table name should be send with out colon as SQL Spec.
    I have another way to make sql query in programing but i have a case where i have limitation of that thing so please tell me is it possible with prepared Statment SetXXx methods or not ?
    Thanks
    Haroon Idrees.

    haroonob wrote:
    I know ? is use for data only my question is this way to pass table name as parameterI assume you mean "how can I do it?" As I have already answered "is this the way?" with no.
    Well, I would say (ugly as it is) String concatenation, or stored procedures.

  • Dynamic configuration- Is file name stored in any abap table in PI

    Hi.
    Is there any ABAP table in XI containing the dynamic configuration's xml of a message.
    For any file scenario Can I get the file name from any of the abap table in PI
    Regards,
    Deepak

    Interesting ABAP tables in XI
    Interesting ABAP tables in XI – Part I
    Regards,
    Phani

  • Dynamic configuration in ABAP tables

    Hi,
    is there any ABAP table in XI containing the dynamic configuration's xml of a message (or an equivalent information in any format)?
    Thanks,
    Daniele

    hi
    Dynamic configurations will be a part of the xi message header
    chk these tables
    1.SXMSPMAST: (Integration Engine: Message Queue (Master)) The table is the master table for the monitoring information. You can get the timestamp, interface status, message id, and many more information.
    2.SXMSPEMAS: (Integration Engine: Enhanced Message Queue (Master)) The table provides the namespaces, the business systems and message interfaces involved in the interface.
    3.SXMSMSTATT: (Exchange Infrastructure: Message Status Description) This table provides a message status description.
    4.SXMSMSTAT: (Exchange Infrastructure: Message Status) This table is helpful if you want to show the process status icon for the corresponding message state.
    refer this for code sample
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/909760cb-0ec8-2a10-4a96-ee8417acfbc9
    rgds
    arun

Maybe you are looking for

  • ICal consolidated all of my calendars into one! No undo option!

    I have four calendars in my iCal, I did this so I could publish just one of these to my .Mac account. Things seemed to be going okay, I had three calendars turned-off from view by unchecking them, as I started to look at the calendar I got the spinni

  • IPhone 6 plus screen freezes intermittently - forced restart required

    I'm on an iPhone 6 plus with 128gb running 8.1.2. It seems that intermittently (recently mostly in iMessage; which hasn't been behaving since 8 & yosemite) my phone screen freezes. By freeze, I mean it is visible. It will even paralax on the home scr

  • Port 113

    I just visited the Shields UP!! website (after seeing a demonstration at my local users group). The demonstrator's computer at the meeting passsed all the tests, but mine (at home) failed the "Solicited TCP Packets". It said that port 113 was in "clo

  • Recover with level 1's

    Hello all. please give me some comments about this. I have one level 0 backup and then i was doing each week incremental level 1 . Now i have one level 0 that's old alsmost two months and several leve 1. If i did level 1 today and a week ago level 1

  • Javaagent and class data sharing with Java 6.0

    Hi, I'm trying to use instrumentation (using the -javaagent) but I noticed that when I run the my application with JDK 1.6 it loads all system classes from the "shared objects file" and the transformer has no chance to run. With JDK 1.5 it works fine