Replacement of i_wrap table in oops for FM 'ALVDG_WORD_WRAP' ?

Replacement of i_wrap table in oops?
**This declaration is not allowed in oops?
how to replace i_wrap declaration, occus 0**
**if i convert into types....i am unable to pass in below function module. **
DATa:  BEGIN OF I_WRAP OCCURS 0,
          text(60) type  c,
           END OF I_WRAP.
     CALL FUNCTION 'ALVDG_WORD_WRAP'
          EXPORTING
            textline                  = w_text1
           DELIMITER                 = ' '
           OUTPUTLEN                 = 35
*         IMPORTING
*           OUT_LINE1                 =
*           OUT_LINE2                 =
*           OUT_LINE3                 =
         TABLES
           OUT_LINES                 = I_WRAP
*         EXCEPTIONS
*           OUTPUTLEN_TOO_LARGE       = 1
*           OTHERS                    = 2
        BREAK-POINT.
        IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
pls suggest.

Hello Anee
Quite simple:
"DATa:  BEGIN OF I_WRAP OCCURS 0,
"          text(60) type  c,
"           END OF I_WRAP.
TYPES: BEGIN OF ty_s_wrap.
TYPES: text(60)  TYPE c.
TYPES: END OF ty_s_wrap.
TYPES: ty_t_wrap  TYPE STANDARD TABLE OF ty_s_wrap
                             WITH DEFAULT KEY.
DATA: lt_wrap  TYPE ty_t_wrap.
     CALL FUNCTION 'ALVDG_WORD_WRAP'
          EXPORTING
            textline                  = w_text1
           DELIMITER                 = ' '
           OUTPUTLEN                 = 35
*         IMPORTING
*           OUT_LINE1                 =
*           OUT_LINE2                 =
*           OUT_LINE3                 =
         TABLES
           OUT_LINES                 = lt_wrap
*         EXCEPTIONS
*           OUTPUTLEN_TOO_LARGE       = 1
*           OTHERS                    = 2
Regards
  Uwe

Similar Messages

  • How to define FORMAL parameters for TABLES in OOPS?

    Hello Experts,
    Below is the custom code, would like to put in a user-exit
    PERFORM my_routine
    IN PROGRAM my_report
    TABLES standard_sap_vbap_tab
    USING standard_sap_variable
    CHAGING standard_sap_variable
    Pls. let me know How to write the FORM in perspective of data objects defination in OOPS for the above routine.
    FORM here_pl_let_me_know_how_to_define_the_data_objects
    ENDFORM.
    Thank you
    Moderator message: please search for available information/documentation before asking.
    Edited by: Thomas Zloch on Nov 10, 2010 3:40 PM

    This is a very basic question. F1 help on statement form will do.

  • Alternative to replace use of Table BDCP

    Hi Guys,
    SAP table BDCP which is used in START-OF-SELECTION is obsolete in SAP ERP 6.0 EHP7 SP Stack 4 and Data in this table is not maintained any more. I need to find an alternative to replace use of table BDCP. Any one have any idea what can be the alternative?
    Thanks and best regards.
    Fahad

    Hi Fahad,
    I do not see any such information published in SAP. If you have valid documentation please educate the community.
    For your information BDCP contents can be moved to BDCP2 to improvise performance.
    Refer SAP note 305462 - MOD: Migrating change pointers to table BDCP2
    you may query on BDCP2 for faster selection.
    Hope this helps.
    Regards,
    Deepak Kori

  • Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)

    Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
    Exemple:
    Table1
    Cliente name:
    John
    Client number:
    12345
    Survay number of negative answers:
    3
    Table2
    Questions and answers that were negative:
    Question: How much time where you waiting
    Avaluation: 3 (from 1 to 10)
    Answer: They only called me 1 mouth later
    Can you please help me?

    Hi,
    Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
    In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
    References:
    Subreports (Report Builder and SSRS)
    Add a Subreport and Parameters (Report Builder and SSRS)
    If I have any misunderstanding, please feel free to contact me.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • No data in Active table of DSO for fields populated by End Routine

    Hi,
    I have a Standard DSO where we are populating few fields by using End Routine.
    Last week we added 5 more fields to DSO and wrote a logic in End ROutine to populate the DSO. These new fields dont have any mapping and these are just populated by end routine only.
    When I loaded the data from Data Source TO DSO, Data is loaded correctly into NEW DATA Table of DSO for all the fields. I could see correct data as per the logic in NEW Table including old and new fields.
    However, when I activate the DSO, I could not find the data for new fields which I added last week. Remaining fields are getting data as per the logic. Only these five fields are not having any data.
    Can you please let me know if any one had similar issue. I was under impression that all the data in the new table will go to Active table when we activate the DSO.
    Your inputs are highly appreciated.
    Thanks
    Krishna

    What version of BW are you using?  When editing your end-routine, a pop-up should display saying which fields you want populated/transferred from the end routine.  This pop-up will not display if you are using a lower version of BW 7.x.  To get around this, make sure that your newly added fields have a transformation rule type set to constant.  This will make sure that the fields get populated when transferring from new to active tables.

  • Issue with table ROOSPRMSF entries for data source 0FI_AP_4

    Hi Experts,
    I am facing with an issue where we found incosistencies with table ROOSPRMSF in R/3 system.
    In BW , we have done initializations based on fiscal period selections (none of the selections overlap) for data source 0FI_AP_4.
    We have done in total 7 initializations. So in BW system in table RSSDLINITSEL we have 7 initialization requests.
    But in R/3 system we have 49 records for data source 0FI_AP_4 in ROOSPRMSF table out of which 42 are invalid records.
    I suspect that these 42 invalid records are created due to the execution of program RSSM_OLTP_INIT_DELTA_UPDATE when the tables ROOSPRMSF are actually holding the 7 initialization request entries.   Due to this each and every initialization request is linked to rest of the other intialization requests and ended with 49 records in table ROOSPRMSF table.
    Now our data loads are running fine but daily a short dump is raised . In the daily loads, BW init records in RSSDLINITSEL are compared with ROOSPRMSF entries and all the other 42 records which are invalid are written into system log and a short dump is raised.
    In order to fix these inconsistencies i checked for OSS note 852443. (Point 3 in OSS note)
    But it is specified to delete the delta queue for data source 0FI_AP_4 in RSA7 and instructed to execute the program RSSM_OLTP_INIT_DELTA_UPDATE so that the ROOSPRMSF table will be reconstructed with valid records available in RSSDLINITSEL. 
    From OSS note 852443 point 3
    "3. If the RSSDLINIT table in the BW system already contains entries, check the requests listed there in the RNR column in the monitor (transaction RSRQ). Compare these entries with the entries in the ROOSPRMSF and ROOSPRMSC tables with the INITRNR field. If, in the ROOSPRMSF and ROOSPRMSC tables for your DataSource source system combination, there are more entries with different INITRNR numbers, use transaction RSA7 in an OLTP source system to delete all entries and then use the RSSM_OLTP_INIT_DELTA_UPDATE report mentioned in the next section. For a DataMart source system, delete the entries that you cannot find in the RSSDLINIT table using the procedure described above."
    My question is if we delete the delta queue in RSA7 then all the tables in R/3 (ROOSPRMSF, ROOSPRMSC, Time stamp table) and BW (RSSDLINITSEL, initialization requests will be deleted) will be cleared. Then how will the program RSSM_OLTP_INIT_DELTA_UPDATE  copy entries into ROOSPRMSF table in R/3 ?
    Could any one please clarify this ?
    Thanks
    Regards,
    Jeswanth

    Hi Amarnath,
    Did you unhide the new field in RSA6 and regenerated the DataSource?
    Often SAP will populate newly added fields (belonging to the same (set) of table(s) used for extraction) automatically (e.g. SAP uses 'move-corresponding' in it's extractor-code, or, in this case, reading all fields from the DD, FM BWFIU_TRANSFORM_FIELDLIST).
    If the DataSource looks fine to you and the field is still not populated in RSA3 you can't go without a user-exit.
    Grtx,
    Marco

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • Table to look for change documents for users

    Hi friends,
    Is there any standard table to look for change documents for a user?change document through SUIM does not give the correct log.
    Thanks for you support.

    Julius
    Looking at another of Tracy's other post (http://scn.sap.com/thread/3598947) she's trying to use ACL. Hence needing to know the tables to write joins/queries to hit tables within ACL
    I've seen ACL used and have had the fun experience of Auditors using Google to find tables to perform checks on without context of what has actually been implemented in their particular system.
    Regards
    Colleen

  • VLD-1119: Unable to generate Multi-table Insert statement for some or all t

    Hi All -
    I have a map in OWB 10.2.0.4 which is ending with following error: -
    VLD-1119: Unable to generate Multi-table Insert statement for some or all targets.*
    Multi-table insert statement cannot be generated for some or all of the targets due to upstream graphs of those targets are not identical on "active operators" such as "join".*
    The map is created with following logic in mind. Let me know if you need more info. Any directions are highly appreciated and many thanks for your inputs in advance: -
    I have two source tables say T1 and T2. There are full outer joined in a joiner and output of this joined is passed to an expression to evaluate values of columns based on
    business logic i.e. If T1 is available than take T1.C1 else take T2.C1 so on.
    A flag is also evaluated in the expression because these intermediate results needs to be joined to third source table say T3 with different condition.
    Based on value taken a flag is being set in the expression which is used in a splitter to get results in three intermediate tables based on flag value evaluated earlier.
    These three intermediate tables are all truncate insert and these are unioned to fill a final target table.
    Visually it is something like this: -
    T1 -- T3 -- JOINER1
    | -->Join1 (FULL OUTER) --> Expression -->SPLITTER -- JOINER2 UNION --> Target Table
    | JOINER3
    T2 --
    Please suggest.

    I verified that their is a limitation with the splitter operator which will not let you generate a multi split having more than 999 columns in all.
    I had to use two separate splitters to achieve what I was trying to do.
    So the situation is now: -
    Siource -> Split -> Split 1 -> Insert into table -> Union1---------Final tableA
    Siource -> Split -> Split 2 -> Insert into table -> Union1

  • 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.

  • How do I make a table of contents for a collection of six short stories that is after the legal page and NOT in the front on an unnumbered page?

    How do I make a table of contents for a collection of six short stories that is after the legal page and NOT in the front on an unnumbered page?
    When I first started I made a title page and then pasted in my first story from a .TXT file. After cleaning up I went back to the front a couple of empty lines ahead of the story and typed in the story title.  Unlarged the font size and centered it, then

    You can't do that. This is what the Pages User Guide, downloadable from your Pages Help menu, says:
    Creating and Updating a Table of Contents
    Each table of contents (TOC) you create using a Word Processing template lists only the content that follows it, up until the next table of contents. If you want a master table of contents for the entire document, it must be the only table of contents, and it must be at the beginning of the document.
    You can do it manually though.

  • Problem in creating table maintenance generator for 61 fields in table

    Hi Experts,
    I am facing problem in creating a table maintenance genarator for a ZTABLE which has 61 fields
    i am using below details whicle creating the TMG
    in Maintenance screen
    i am giving maintenance type as two step
    Maint screen no overview screen 2
                              single screen        3
    Dialog Data Transport details
    Recording routine    standard recording routine
    but it is giving following error
    screen SAPL<ZTABLE NAME>    0003 could not be generated
    In DYNPFIELD_ATTR mandatory field LINE has no value
    please let me know how to sort out these errors.
    Is there any limit on the number of fields for which we can create table maintenance generetor.
    Thanks a lot in advance
    Sudipto

    Hi Sudipto,
    There is not limit to the number of fields of the Table which can be used in TMG for generation. But, from the usability point of view this will horrible.
    I created a Z table and added 64 fields and was able to generate the TMG with the screens perfectly. So, I guess there should not be any problem.
    Well, have a look at the Function Group. I guess the screen numbers are already used by some other screens. You can set the system to propose freely available screen numbers from the pool.
    Also, check whether proper authorization is assigned or not.
    And if nothing is working, you can degenerate all the generated screens and then can have a new regeneration of it.
    Hope these tips will work.
    Thanks,
    Samantak

  • Reg :-maintain a table maintenance view for the z table.suggest me the code

    i have question.i have created a z table related to pp module.the requirement is to maintain {table maintenance view} for this z table.how could this be done.can any one suggest me the code for this?

    Hi ,
    We have a lots of queries on table maintainance creation in the forum posted and replied to.Pls have a look at it first.
    In se11 -> change mode of the ztable -> goto -> utilities -> table maintainance generator -> click on it...
    it will give a new screen-> enter the required details like function group , authorisation(use &NC& or leave it blank if you dont know)  and screens
    2 step and 1 step means=> number of screens displayed in maintainace
    if step1 is selected then we have a screen which will be like a table control for data entry.........
    for step2 we have a table control screen and a more detailed individual field display as second screen
    click on the button 'find screen numbers' so that system automatically proposes the screen numbers
    after which click on the "create" button and follow the required instructions/messages
    once done go to SM30 enter the table name to check if maintainance has been created properly
    Hope it helps,Pls check and revert
    Regards
    Byju

  • Customizing tables not asking for Customizing Request while saving data

    Hi,
    I have some customizing tables in my development server (Delivery Class = 'C').
    These always used to ask for a Customizing Request whenever data was saved in them.
    Suddenly, I have noticed they are no more asking for any Customizing Request. I cross-checked in the Transport Organizer and confirmed that there are no customizing requests of mine which may be already holding any data entries of these tables.
    I wonder why this may be happening (believe it to be some basis configuration issue. also asked my basis guy but he has no clue).
    Kindly suggest.
    Thanks,
    Z

    Thanks Navneet and Gautham.
    My problem is now solved. Let me summarize the problem and the solution now.
    -> The customization tables suddenly stopped asking for a request while saving data.
        Somehow the settings had been reset, and as Gautham pointed out, it was corrected in the tcode SCC4
    -> Most of the tables now worked fine, but still few of them didnt ask for requests
        Here, I found out that the developers had chosen "no, or user, recording routine" instead of  "standard recording routine". For such tables, when i check in the tcode SE54, menu path Environment -> Maintenance Objects -> Change, I find the Transport category 'No Transport'. Regenerating the maintenance generator choosing "standard recording routine" fixes this and the tables now ask for a customizing request.
    Thanks, both, for the quick response.

  • No table entries found for specified key

    Hi All,
    I have developed a program to upload data from flat file with the help of GUI UPLOAD. It is succesfully updating data in my Z-table.
    Whenever I tried to view the content of table for specific field, message shows No table entries found for specified key. However if I add * as a suffix, it shows the data & when I directly Execute table it also displays the data.
    I have also cross checked the spaces before or after the specific content, no space found.
    Only two fields are creating this issue Individually (one of them is key field)
    Regards
    Mukul Maheshwari

    Hi Dear ,
    Here i had implemented program go through it you can understand easily.
    While creating table give one field as primary as you know that.
    tables zdata1.
    data it_tab type TABLE OF zdata1 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\E50039\Desktop\data.txt'     ***************File path
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = it_tab
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_tab.
    zdata1-no1 = it_tab-no1.
    zdata1-name = it_tab-name.
    zdata1-empid = it_tab-empid.
    insert zdata1.
    ENDLOOP.
    Flat file
    1 name1 empid1
    2 name2 empid2
    note: Give the tabspace between values in flat file.
    Edited by: Aditya.G on Oct 12, 2011 10:22 AM

Maybe you are looking for

  • DI Server with SQL Server 2008

    Hello. In the company where I work we develop an application that uses B1WS. In the development environment had the following characteristics: SAP Business One 2007 SP01, PL 09 SQL Server 2005 Developer Edition Windows XP Professional SP 3 SAP Busine

  • Time to upgrade my machine...HELP!

    Alright, so it's time to build up my new mac empire...move up from the very tired Dual G4 I've been using to the next (or at least current) generation. Basically, I need to go "balls out" on this machine--I'll have about 10k to spend. I'd like to hea

  • ICal bug with month view

    I primarily use week view on iCal, but sometimes i switch to month view for a larger perspective. Often, i use month view to check for any leftover events from the previous month in case i forgot to delete one or two. I just found a bug concerning th

  • Toshiba E-Studio 250 FAX PROBLEMS

    Hi! I don't know if this is the place to poste my problem...... I have a Toshiba E-Studio 250, and i have a fax problem. I have a fax / tel connection from (RDS&RCS - my local provider) Now, my problem: When i'am reciving a FAX - my "PHONE LED" is fl

  • Dynamic Structures

    Hi All, As the below code is works only for the condition table 306 as  I created my header structure based on the following fields header, vkorg, vtweg, pltyp, waerk .Bu t I want my header structure  to be  dynamic so that it should work for all the