SQLLDR - Unable to use field defined as FILLER

Why doesn't SUBSTR(VJOB_NO, 1, 1) work?
What am I doing wrong?
Portion of control file:
FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
cycle_no CONSTANT '0002',
VJOB_NO FILLER CHAR,
spaces FILLER,
RETRIEVAL_STATUS EXPRESSION "CASE WHEN SUBSTR(VJOB_NO, 1, 1) ='C' THEN 'CE' ELSE 'X' END"
Portion of log file entry:
SQL*Loader: Release 9.2.0.1.0 -
CYCLE_NO CONSTANT
Value is '0002'
VJOB_NO NEXT * | O(") CHARACTER
(FILLER FIELD)
SPACES NEXT * | O(") CHARACTER
(FILLER FIELD)
RETRIEVAL_STATUS EXPRESSION
SQL string for column : "CASE WHEN SUBSTR(VJOB_NO, 1, 1) ='C' THEN 'CE' ELSE 'X' END"
Record 1: Rejected - Error on table INV_SUPPORT_RETRIEVAL_CONTROLS, column RETRIEVAL_STATUS.
ORA-00984: column not allowed here
Additional info:
-RETRIEVAL_STATUS is not in the input file, does exist in table
-When VJOB_NO is replaced with :MyCol which exists in both the file and the table, it works fine.

Yes, that works like what I currently have in production, with the CASE instead of DECODE though.
Just like the current temporary solution, VJOB_NO is loaded into RETRIEVAL_STATUS, then RETRIEVAL_STATUS is reduced.
I hope to be able to define VJOB_NO as FILLER, then place a value into RETRIEVAL_STATUS based on the value in VJOB_NO.
Any other suggestions?
Thanks.
I added Rec_ID for linkage; Re-executed prior tests with Rec_ID, no change in results.
==============================
Test input file - 1st record is a header, and vjob_no is allowed to be null.
Rec_ID|VJOB_NO|Filler
1|C1234567|xxx
2|D1234567890123456|xxx
3||xxx
==============================
Export of table after execution - Empty prior to test.
RETRIEVAL_STATUS,REC_ID
"CE",1
"X",2
"X",3
==============================
SQLLDR Log
SQL*Loader: Release 9.2.0.1.0 - Production on Tue May 23 16:59:04 2006
Number to load: ALL
Number to skip: 1
Errors allowed: 1000
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Silent options: FEEDBACK
Table MYTEST_1, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
REC_ID FIRST * | O(") CHARACTER
RETRIEVAL_STATUS NEXT * | O(") CHARACTER
SQL string for column : "decode(SUBSTR(:RETRIEVAL_STATUS, 1, 1),'C', 'CE', 'X')"
CODE1 NEXT * | O(") CHARACTER
(FILLER FIELD)
Table MYTEST_1:
3 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Message was edited by:
user508348
Message was edited by:
user508348

Similar Messages

  • Unable to use field value as link icon in linked column

    I am building an interactive report which includes a linked column. I would like to display an image link which is based on a value in the row named ICON. On the Report Attributes tab, in the Link Icon field of the Link Column attribute, I have set up the Link Icon definition to be <img src="#WORKSPACE_IMAGES##ICON#" alt="">. It resolves the #WORKSPACE_IMAGES# substitution string, but does not resolve the #ICON# placeholder. The only workaround I have found is to build out the entire href string as part of the query and simply display it as a field in the report. However, I would prefer to use the attribute method as it is much cleaner. Can anyone tell me if this is possible or have I hit a bug? Thanks.

    Hi,
    it works the same if you put the placeholder into your column attributes of the ICON-column in your dynamic report. As I read your previous post again, I came to the conclusion you want to use the column in the more "general" "Link Column" of your interactive report. I agree that you can choose the column from your report using "Pick Dynamic Query Column", but the substitution will not work. I'm not sure whether the bug is the non-working substitution or that the Picker-widget is provided, since you don't have the column as a javascript link below the text field as you would have in the column attributes. I think it's not intended to be possible to reference other columns in that context, but you'll either have to put the reference into the actual column's link attribute or use a static image for all links.
    -Udo

  • I paid for exportpdf and everytime i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable.  how can i export only form fields that were filled in?

    i paid for exportpdf and every time i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable. Some forms can't be saved so having to log in and only use webtool to upload a saved pdf won't work.
    as well, how can i export only form fields that were filled in if I can get pdf to save to computer?

    Hi kstine,
    I can see why that would be frustrating! Have you tried selecting Stayed Signed In underneath the Adobe ID and Password boxes when you try to log in?
    What did you use to create the PDF form? If you used FormsCentral, form data is saved to your online FormsCentral account. If you have Acrobat, you can export form data as described  here: Adobe Acrobat X Pro * Manage form data files
    Best,
    Sara

  • Using a formula to fill a field

    Post Author: dura13
    CA Forum: Formula
    Hi
    Is there a means to use a formula to fill a field or add a filled text box.
    I have a report that shows monthly sales for a year and i'm building a EOQ report that has a variable time frame (ie 5mnths, 6mnths,1 mnth, etc) that the user chooses to generate the EOQ numbers. I want to fill the monthly totals for the timeframe selected so they are highlighted and easier to distinguish on the report.
    I've grouped the data by product and total sales for each month using whileprintingrecords. In this while printing records i'd like to fill or create a text box around the monthly total if the monthly timeframe is equal to or less than this month.
    Is this possible?

    Post Author: dura13
    CA Forum: Formula
    I finally found the solution to this. It so much easier figuring out logic than the fancy bells and whistles to make the report work.
    I used the format field and entered my formula into the background formula area.
    I prompt the user for the number of months to go back to determine the avg monthly sales.
    I then use this prompt in each months field :
    IF 1 <= {?months}  *this is the first months total field*
    then
        craqua
    else
       crnocolor
    and repeat for each of the 12 months, using  IF 2 <=, IF 3 <=, etc
    Prob will try to get this to work for the font color as well by printing the font in black if its one of the months included and grey if its not.

  • Error ! No field defined for function Code in MENU EXIT

    Hello All,
    I've created a project in CMOD for the MENU EXIT for handling one menu item in the SAP Standard Menu Bar .
    i.e  under the HELP MENU Item I've included one more sub menu item.
    I've activated the project and I'm able to se the newly added Sub-Menu Item in the activated mode.
    But when I press the newly created Sub Menu Item I'm getting a Message in the Status Bar saying :
    No field defined for the function code
    The Help of it says :
    Message no. 00125
    Diagnosis
    The function code field (OK code field) has not been defined on this screen. If the user selects an application function (not a system function), the system usually provides it in the function code field (OK code field) as well as in SY-UCOMM. This is no longer possible.
    System Response
    The system is unable to inform the application of the current function code. The application should not use field SY_COMM. This field always contains the code of the last function chosen, which is not always identical to the application-relevant code.
    Procedure
    You should always define a field for the function code on every screen. The Screen Painter always proposes such a field (OK category), you only need to assign a name and include the definition in the ABAP program.
    Please let me know what shud be done ?
    Regards,
    Deepu.K

    Don't use this scanrio ! Instead got Access Key and chamged the Std. Program.

  • Purpose of using parameters defined below in FM 'REUSE_ALV_GRID_DISPLAY'

    Hi,
    Iwant to know the purpose of using parameters defined below in FM   ''REUSE_ALV_GRID_DISPLAY'   :---
    EXPORTING.
      I_INTERFACE_CHECK                   =
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                        =
      IS_SEL_HIDE                                =
      IS_PRINT                                      =
      IS_REPREP_ID                             =
      I_SCREEN_START_COLUMN        =
      I_SCREEN_START_LINE               =
      I_SCREEN_END_COLUMN            =
      I_SCREEN_END_LINE                   =
      IT_ALV_GRAPHICS                       =
      IT_HYPERLINK                              =
      IT_ADD_FIELDCAT                        =
      IT_EXCEPT_QINFO                       =
      I_HTML_HEIGHT_TOP                   =
      I_HTML_HEIGHT_END                   =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER      =
      ES_EXIT_CAUSED_BY_USER       =
    small example codes are most welcome.
    Regards,
    Rahul

    <b>Go To SE37 AND Give the function module name and press Button 'FUnction Moudule Documentation' There you will get the documentation for each parameter</b>
    <b>* I_INTERFACE_CHECK =</b>
    Interface consistency check log output
    Description
    So that the performance of the list output is not reduced due to interface consistency checks, these checks are performed in a special call mode.
    If this parameter is set to 'X', interface consistency is checked when the function module is called and an error log is displayed.
    You should only set this parameter for testing purposes during the development process (for example, for debugging).
    You can also perform the interface check on the result list by entering function code &SOS.
    THIS PARAMETER IS CURRENTLY NOT SUPPORTED IN FULLSCREEN MODE! As a workaround, go to the print preview from within the list and enter function code &SOS there.
    Default
    SPACE
    <b>*IS_SEL_HIDE = </b>
    Description
    This parameter is currently not supported!
    Only relevant if layout parameter
    LAYOUT-GET_SELINFOS of IMPORTING structure IS_LAYOUT is set.
    Complex type for modifying information displayed on the selection dialog box:
    mode:              'R' = Only entries passed in internal table
                              IS_SEL_HIDE-T_ENTRIES are output on
                              the dialog box. Selection information
                              obtained by the list tool by reading the
                              selection screen again (only if the report
                              is called with selection screen) are
                              replaced by the entries passed.
                       'S' = The selection information obtained by the
                              list tool by reading the selection screen
                              of the calling report again, are modified
                              by the entries of table
                              IS_SEL_HIDE-T_ENTRIES.
    t_entries:         Table with selection information
    t_entries-mode:   'A' = Display selection information of the current
                             table row on the information dialog box.
                      'D' = Do not display selection information of the
                             the Select option or of parameter SELNAME
                             on the dialog box.
    t_entries-selname: (required only if t_entries-mode = 'D')
                       name of Select option or parameter
    The following table fields are only required if t_entries-mode = 'A'. They contain the selection information to be added.
    t_entries-field:  DDIC field name of the field for which selection
                       information is to be displayed
    t_entries-table:  DDIC table name of t_entries-field.
    t_entries-stext:  Field description on the information dialog box.
                      If t_entries-field and t_entries-table were
                      filled, this text is taken from the DDIC.
    t_entries-valuf:  Selection condition from-value (external format)
    t_entries-valut:  Selection condition to-value (external format)
    t_entries-sign0:  (I)nclusive (E)xclusive
    t_entries-optio:  All values of the option field of the Select
                      option are allowed.
    The remaining fields are used internally and are irrelevant to the caller.
    <b>* IS_PRINT =</b>
    Print information
    Description
    Control parameters relevant for printing
    PRINT
    Value range: SPACE, 'X'
    'X' = Print list and do not display it on the screen. Further settings can be made on the print parameter screen.
    NO_PRINT_SELINFOS
    Value range: SPACE, 'X'
    'X' = Do not print existing selection information (see also LAYOUT-GET_SELINFOS)
    NO_COVERPAGE
    Value range: SPACE, 'X'
    'X' = Print selection information and list status, if available, on a separate page.
    NO_NEW_PAGE
    Value range: SPACE, 'X'
    Internal use only
    RESERVE_LINES
    Value range: 0, n
    n = Number of lines output in the footer by the user during printout at END_OF_PAGE in the corresponding callback event.
    NO_PRINT_LISTINFOS
    Value range: SPACE, 'X'
    'X' = Do not print list status (sort information, subtotals information and filter information).
    NO_CHANGE_PRINT_PARAMS
    Value range: SPACE, 'X'
    SPACE = (default) The output format (number of columns) is dynamically adjusted depending on the list width (255 at most).
    'X' = The current print parameters are always used. If the list is wider, the output width is not adjusted dynamically.

  • How do you use user defined error messages in Value Help?

    Hi,
    I'm currently working on a Modifiable Value Help Selector in Web Dynpro Java, and I want to use a user defined error message when I validate the values entered by a user. Currently, it's returning its default error message ("Character <string> does not match...").
    Since the project requires a different error message, is there a way to override the default error message and use my defined error message instead?
    Thanks!

    Hi Angelo,
    I am not sure why message area is showing both Custom and inbuilt messages but you can try the following:
    i guess you must be using reportContextAttribute exception for showing Error messages on the input fields as well.in that case you can disable the message area so messages will appear only on the Context level ie; on input fields.
    For other messages apart from validation messages you can enable the message area before reporting the exception.
    make sure the boolean context variable which will be used for enabling and disabling the message area should have Readonly property set as true.
    I am not sure whether this is the only solution for this but you can try and see if it works.
    Siddharth

  • How do I disable printing of my PDF if a text field isn't filled in?

    Hello all I'm currently trying to find a way to make the print button of my pdf not work if say a necessary textfield wasn't filled in?
    I take it that the standard validation scripts won't work?
    The very helpful fellow from a thread seemed pretty sure it couldn't be done.
    In short in order the print button to work the form must have certain textfields populated with content if the combo box next to them has a certain value selected.
    Say for example
    A text field by the name AIMCode_R1 has no content in it but it's related combobox "Loc_R1" has value 2 currently selected then before printing the pdf must validate that textfield "AIMCode_R1" has content and visversa if "AIMCode_R1" has content then "Loc_R1" must have  value 2,3 or 4 selected before the pdf will allow the user to print.

    In that case all the responses above are incorrect. You can write whatever conditions you want before calling the print command.
    Of course, the user will still be able to print the file using the built-in Print command, in which case you can use some of the ideas mentioned above, but the file will still print. One approach I like to use is to reset the form if some required fields are not filled-in, so the printed copy is blank, and then re-fill it afterwards, so the user can complete it.

  • Unable to use iTunes Match

    Hello everybody! Being Italian I apologise in advance for my english, if something isn't clear feel free to ask!
    Now, to the problem: since two days I'm unable to use iTunes Match at all.
    In the past days I was organising my library in playlists, when yesterday I noticed that some songs weren't in the playlists they were supposed to be in. I noticed also that near the Music tab there wasn't the usual empty cloud icon, but instead there was a cloud with a lightning bolt in it.
    I searched and discovered that I had a connection problem. I restarted my PC and my router, only to notice that everything was the same as before I restarted the PC. I then tried to click the cloud, it became filled with the usual "barbershop pole" pattern, and then it seemed to work. When I tried to put a song in a random playlist, again the lightning bolt.
    I tried to turn off iTunes Match (both with or without the Shift key), I unauthorized the PC, I logged out of my account, but to no avail. The iTunes Match "Add this computer" procedure works fine, but afterwards I cannot update any of my playlists.
    Thinking that all this could be Windows-related, I tried the same with my MacBook Pro, but everything wasn't working as well. I couldn't use iTunes Match on my iPhone and on my iPod touch either.
    Yesterday night, at around 11.30PM GMT+1, everything seemed to work, but having to go to university the day after I turned off the PC and went to sleep, only to find out that today we're back to square one. Nothing works on any device, when I click the lightning bolt the cloud becomes empty, but when I do something on my playlists the bolt appears again. Having said that, I don't think I have a network problem. I can connect to the internet as usual, i can use the iTunes store and the App Store and (from time to time) I can even download songs from my iTunes Match on my main PC. The playlists changes and the whole music library still don't appear on the iPhone/iPod touch and the Mac though.
    I just entered in the second year of subscription to iTunes Match. Almost no problems at all for more than a year, and less than two months after I paid for the second year all this happens... I'm not very happy. I just hope someone of you has an answer, because I searched in every corner of this community but I didn't find any solutions.
    Thanks in advance for your answers,
    Alessandro

    Just to let everybody know, the problem disappeared totally on friday. Now everythiing works again, I lost nothing and I still can access all of my songs.
    I waited a bit because you never count your chicken before they're hatched, but after three days I can cry "victory".
    Thanks anyway to anybody who viewed my question and thought a possible solution for my problem!
    Alessandro

  • Using a MAC to fill out PC Created PDF forms creating problems

    We have created a number of forms using LiveCycle to be filled out by clients.  They include submit buttons that send the form back as a PDF (rather than a data file).  The forms were then opened in  Acrobat 8 Professional and usage rights enabled to allow the clients to save a copy of the completed form.
    They work great...unless the client is using a MAC.  We have encountered the following problems with MAC filled forms:
    1) client entered data is present but only visible when the field is clicked on
    2) the Print and Submit by E-mail buttons do not work for MAC users
    3) the tabbing order is inconsistent
    Any ideas of ways we can make our forms more compatible for MAC users??
    Many Thanks!

    Hi Rod,
    Sorry I replied a few days ago, but for some reason it didn't seem to get added to the thread.  So, here we go again ...
    The "fix field" script worked great for me.  So, we have been using that solution when needed.  Unfortunately, I am not enough of an expert on these things to provide an intelligent answer as to why it may not be working for you.
    But, it also became evident from dialogue and testing that the issue only occurs when recipients use MAC Preview to complete the forms.  So, on some forms I have just added a note saying - MAC Users: Please complete the form using Adobe Reader.  As this is, of course, free software, which most people already have installed on their computer, this seems to prevent the problem from occurring as well.
    Hope that is at least a little bit helpful.

  • Get the parameter fields defined in crystal report

    I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
    Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
    I have a set of already created .rpt files.
    I have written a function in .net to export the crystal report.
    Its a generic function and will be called for multiple crystal reports.
    I am passing the parameter values to the report by making use of the following function :
         ReportDocument repDoc;
         repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
         repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
    Similarly I are setting other parameter values.
    The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
    They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
    field, then it gives error on setting parameters and subsequently fails.
    Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
    parameter fields?
    Please guide how can this be done.
    Thanks
    Sonam

    Not as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report.  I get a headache just thinking about this...
    Dim crSections As Sections
    Dim crSection As Section
    Dim crSubreportObject As SubreportObject
    'set the crSections object to the current report's sections
    crSections = crReportDocument.ReportDefinition.Sections
    'loop through all the sections to find all the report objects
    For Each crSection In crSections
    crReportObjects = crSection.ReportObjects
    'loop through all the report objects to find all the subreports
    For Each crReportObject In crReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    'you will need to typecast the reportobject to a subreport
    'object once you find it (***you'd go to setting the parameter here - or not...)
    crSubreportObject = CType(crReportObject, SubreportObject)
    'open the subreport object
    crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    'set the database and tables objects to work with the subreport
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Unable to use Navigational Attr in the query ?

    Hi experts,
    We are using BEx 3.X.
    We have a report based on an infoset. We want to use some navigational attributes in the query and
    restrict the values of these attributes.
    But we are unable to use them as navigational attr. They are displayed as display attributes only.
    We are unable to restrict them. This is because the query is on Infoset.
    When i use the same navigational attr in a query based on a infocube, it is displaying as Navigational Attr.
    We are in BI 7 but using BEx 3.X.
    How to resolve this ?
    Regards,
    Nishuv.

    Hi,
    Master Data Read
    A simple master data read should be done using generic BI functionality in the update rules. Choose the
    option u201CMaster Data Attribute ofu201D in the update rule details for the selected characteristic and select an
    attribute by using the F4 help. With this setting, the value of the characteristic to be updated is read from the
    master data table of the specified characteristic.
    Characteristic Material is provided by the InfoSource.
    Characteristic Material Group is not provided by the InfoSource.
    Characteristic Material Group is an attribute of characteristic Material
    Therefore you can fill Material Group from the master data table of Material: Select the method Master Data
    Attribute from and Material as source.
    The generic master data read only works for characteristics that are available in the communication
    structure.
    For a more complex master data read or if the characteristic is not available in the communication structure,
    you have to implement the master data read yourself in a routine for the specific characteristic. If so, the
    function module RSAU_READ_MASTER_DATA should be used to read the master data.
    In Infoset u can use max 2 cubes......and Infoobjects 'N' number u can use.......
    Thanks/Tarak

  • Perform setting OOP ALV for multiple reports using Field Symbols

    Hi, Abapers ... i try to write a programme which using ONE oop ALV but 2 different structure internal table. the last result should be 2 radio button. first button is r_wbs and 2ns r_kpi. r_wbs will display 4 column answer and r_kpi will display 10 columns answer with different column name. i successfully implemented using FIELDS SYMBOLS but the problems i failed to perform customized setting forALV (report's tittle, column name, different layout etc)  for 2 different reports.  this is the programme. Please Give Opinion, simple example will be more helpful. Thanks You Very Much
    *&this report experimental how to print into ONE alv
    *&with 2 diffrent structure internal table
    REPORT  zfiroopalv.
    SELECTION-SCREEN BEGIN OF BLOCK mode WITH FRAME TITLE text-002.
    PARAMETERS r_wbs RADIOBUTTON GROUP mode DEFAULT 'X'.
    PARAMETERS r_kpi RADIOBUTTON GROUP mode.
    SELECTION-SCREEN END OF BLOCK mode.
    CLASS lcl_main DEFINITION.
    PUBLIC SECTION.
    CLASS-DATA: md_wbs TYPE c LENGTH 1.
    METHODS: process,
             write.
    DATA: mdo_data TYPE REF TO data.
    TYPES: BEGIN OF st_wbs,
    rsnum TYPE zmeime002a-rsnum,
    rspos TYPE zmeime002a-rspos,
    a TYPE zmmgitab01-menge,
    b TYPE zmeime002a-bdmng,
    c TYPE zmeime002a-bdmng,
    d TYPE zmeime002a-bdmng,
    e TYPE zmeime002a-bdmng,
    f TYPE zmmgitab01-menge,
    g TYPE zmmgitab01-menge,
    END OF st_wbs.
    TYPES: BEGIN OF st_kpi,
    regio TYPE zmeime002a-regio,
    gsber TYPE zmeime002a-gsber,
    gtext TYPE zmeime002a-gtext,
    x TYPE zmmgitab01-menge,
    y TYPE zmmgitab01-menge,
    z TYPE zmmgitab01-menge,
    END OF st_kpi.
    CLASS-DATA: it_wbs TYPE TABLE OF st_wbs,
                wa_wbs LIKE LINE OF it_wbs.
    CLASS-DATA: it_kpi TYPE TABLE OF st_kpi,
                wa_kpi LIKE LINE OF it_kpi.
    PRIVATE SECTION.
    DATA: set_display_setting TYPE REF TO cl_salv_table.
    DATA: display_settings TYPE REF TO cl_salv_display_settings.
    DATA: salv_table TYPE REF TO cl_salv_table.
    DATA: error TYPE REF TO cx_root.
    DATA: errtext TYPE string.
    ENDCLASS.
    CLASS lcl_kpi DEFINITION INHERITING FROM lcl_main.
    PUBLIC SECTION.
    METHODS: process_kpi.
    PRIVATE SECTION.
    ENDCLASS.
    * C.L.A.S.S lcl_main D.E.F.I.N.I.T.I.O.N
    CLASS lcl_wbs DEFINITION INHERITING FROM lcl_main.
    PUBLIC SECTION.
    METHODS: process_wbs.
    PRIVATE SECTION.
    ENDCLASS.
    * m.a.i.n. .p.r.o.g.r.a.m.
    START-OF-SELECTION.
      DATA: o_main TYPE REF TO lcl_main.
    DATA: p_wbs TYPE c.
    CREATE OBJECT o_main.
      CASE 'X'.
      WHEN r_wbs.
          o_main->md_wbs = 'X'.
      WHEN r_kpi.
          o_main->md_wbs = ' '.
      ENDCASE.
      o_main->process( ).
      o_main->write( ).
    CLASS lcl_main IMPLEMENTATION.
    *ENDMETHOD.
    METHOD process.  " NOTE: public method
    DATA: o_main TYPE REF TO lcl_main,
          o_wbs TYPE REF TO lcl_wbs,
          o_kpi TYPE REF TO lcl_kpi.
    CREATE OBJECT: o_wbs,o_kpi.
      IF ( me->md_wbs = 'X' ).
          CALL METHOD o_wbs->process_wbs( ).  " NOTE: private method
          GET REFERENCE OF me->it_wbs INTO me->mdo_data.
      ELSE.
          CALL METHOD o_kpi->process_kpi( ).  " NOTE: private method
          GET REFERENCE OF me->it_kpi INTO me->mdo_data.
      ENDIF.
    ENDMETHOD.
    METHOD write.
    FIELD-SYMBOLS:
      <lt_outtab>    TYPE table.
      ASSIGN me->mdo_data->* TO <lt_outtab>.
    cl_salv_table=>factory(
    EXPORTING
    list_display = if_salv_c_bool_sap=>false
    IMPORTING
    r_salv_table = salv_table
    CHANGING
    t_table = <lt_outtab>
    salv_table->display( ).
    ENDMETHOD.
    ENDCLASS.
    CLASS lcl_kpi IMPLEMENTATION.
    METHOD process_kpi.
    *********** run some select statement into it_kpi*******
    ENDMETHOD.
    ENDCLASS.
    CLASS lcl_wbs IMPLEMENTATION.
    METHOD process_wbs.
    *********** run some select statement into it_wbs*******
    ENDMETHOD.
    ENDCLASS.

    Hi,
    I had similar requirement wherein I was supposed to display different data using 2 different internal tables on a subscreen area.
    The screen consists of two parts: 1) selection-screen with few input fields and two buttons 2) Subscreen area where the report need to be displayed. This report is displayed based on the button that the user is selecting. For this I have done the following things:
    1. Capture the sy-ucomm when user is clicking on any of the two buttons in PAI. Then perform data fetch operation.
             MODULE USER_COMMAND_9003 INPUT.
                 CASE OK_CODE.
                     WHEN 'DETAIL'.
                       GV_RPT = OK_CODE.
                       PERFORM F_GET_DETAIL_DATA.
                     WHEN 'REPORT'.
                       GV_RPT = OK_CODE.
                       PERFORM F_GET_REPT_DATA.
                   ENDCASE.
             ENDMODULE.                 " USER_COMMAND_9003  INPUT
    2.  Declare two different ALV's with the fieldcat similar to 2 internal tables respectively. Use the above sy-ucomm PBO to call appropriate ALV.
             MODULE DISPLAY_ALV OUTPUT.
               IF GV_RPT EQ 'DETAIL'.
                 PERFORM F_FIELDCAT_DETAIL.
                 PERFORM F_LAYOUT_DETAIL.
                 PERFORM F_EXCLUDE_TOOLBAR_DETAIL.
                 PERFORM F_DISPLAY_ALV_DETAIL.
               ELSEIF GV_RPT EQ 'REPORT'.
                 PERFORM F_FIELDCAT_REPT.
                 PERFORM F_LAYOUT_REPT.
                 PERFORM F_EXCLUDE_TOOLBAR_REPT.
                 PERFORM F_DISPLAY_ALV_REPT.
               ENDIF.
             ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    3. Before displaying ALV you need to free the container and ALV.
    FORM F_DISPLAY_ALV_DETAIL .
    IF GC_CONTAINER_ES IS NOT INITIAL.
        CALL METHOD GC_CONTAINER_ES->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 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.
      ENDIF.
      IF GC_ALV_GRID_ES IS NOT INITIAL.
        CALL METHOD GC_ALV_GRID_ES->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 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.
      ENDIF.
      IF GC_CONTAINER_TB IS NOT INITIAL.
        CALL METHOD GC_CONTAINER_TB->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 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.
      ENDIF.
      IF GC_ALV_GRID_TB IS NOT INITIAL.
        CALL METHOD GC_ALV_GRID_TB->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 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.
      ENDIF.
      CREATE OBJECT GC_CONTAINER_ES
        EXPORTING
          CONTAINER_NAME              = 'CC_9003'
        EXCEPTIONS
          CNTL_ERROR                  = 1
          CNTL_SYSTEM_ERROR           = 2
          CREATE_ERROR                = 3
          LIFETIME_ERROR              = 4
          LIFETIME_DYNPRO_DYNPRO_LINK = 5
          OTHERS                      = 6.
      CREATE OBJECT GC_ALV_GRID_ES
        EXPORTING
          I_PARENT          = GC_CONTAINER_ES
        EXCEPTIONS
          ERROR_CNTL_CREATE = 1
          ERROR_CNTL_INIT   = 2
          ERROR_CNTL_LINK   = 3
          ERROR_DP_CREATE   = 4
          OTHERS            = 5.
      CALL METHOD GC_ALV_GRID_ES->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT                     = GS_LAYOUT_ES
          IT_TOOLBAR_EXCLUDING          = GT_TOOLBAR_ES
        CHANGING
          IT_OUTTAB                     = GT_ES_REPT
          IT_FIELDCATALOG               = GT_FIELDCAT_ES
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4.
    ENDFORM.                    " F_DISPLAY_ALV_DETAIL
    Similarly define the FORM F_DISPLAY_ALV_REPT.     
    Hope this will be useful for you. If you have any more queries let me know.

  • How to use javascript to auto fill a signature

    Hello,
    I am new to Adobe Acrobat Pro 9.  I have scanned a paper form/document that originally  had various data lines to be written on using an ink pen.  I saved the scanned PDF as an Acrobat 9 PDF.  I have added various pertinent text fields and checkboxs to PDF form and saved it with appropriate extended setting to allow end-user to type on PDF and save a copy.  At the bottom form there is a name/signature text field for end-user name to be typed and a calendar text date when name/signature text field is entered .
    I need to send this PDF form to various end-users using (Groupwise/Novell) email to have them sign or type their name and date at bottom of form.  Is there a way that Adobe Acrobat 9/PDF will recognize the email sender and allow the name/signature field to automatically fill-in signature/name textbox.  Are there tools like javascript, etc. that will help me accomplish this task?
    I don't know where to begin. I am a newbie.  Please help!

    Hi Kanza17,
    It's a bit of a lengthy discussion. I'd recommend two places to read up on what seed values are and how to set them. First, check out the Security Admin Guide, specifically Chapter 9 - Controlling Signing with Seed Values. That will give you a good understanding of what a seed value is and what it can do. The next thing to look at is the JavaScript for Acrobat API Reference. Once you get to the web page click the Search button in the left hand panel, type in "Seed Value" (without the quotes) in the edit field, and then click the Go! button. You're looking for the section signatureSetSeedValue and there you will find some examples at the bottom of the page that will help you get started.
    Good luck,
    Steve

  • Read Table : Error Stating mandt field is not filled.

    Dear members,
    I am get syntax error when using Read table statement saying mandt field is not filled, however if I remove the KEY field. it is working fine.
    please let me know, where I am doing mistake. thank you.
    Data : spfli_tab like STANDARD TABLE OF spfli with HEADER LINE.
    SELECT *
           FROM spfli
           INTO TABLE spfli_tab
           WHERE carrid = 'LH'.
    READ TABLE spfli_tab
               WITH TABLE KEY carrid = 'LH'
                                           connid = '2402'.
    IF sy-subrc = 0.
    ENDIF.

    Hi...
    As Eric Said there are two ways...
    For your case use WITH KEY...
    SELECT *
    FROM spfli
    INTO TABLE spfli_tab
    WHERE carrid = 'LH'.
    READ TABLE spfli_tab
    WITH KEY carrid = 'LH'
    connid = '2402'.
    IF sy-subrc = 0.
    WRITE : 'DONE'.
    ENDIF.
    If u specify WITH TABLE KEY then u will hv to pass all key fields mentioned in DDIC...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

Maybe you are looking for

  • I want a particular zone #

    i want a perticular zone# , please help, i tried select a # or your combination, but not exactly what i need

  • How do I get pics from mac mini to ipod touch?

    I have been trying to get some pictures from iphoto on my mac mini to my ipod touch.  They are not transferring. 

  • Graphing loses Date/Time stamp.

    I use Field Point to collect pressure and temperature data. The each channel is calibrated for span and offset then stored and graphed. When I combine the array of pressures and send it to a date/time graph the date ends up being a random date. I fin

  • SCCM 2012 R2 PXE Boot to Lenovo T540p 20BE

    Can someone help me PXE Boot a Lenovo T540/T440 laptop? Is there some type of settings that need to be changed in the BIOS or something? It keeps failing and Lenovo Phone Support could not tell me how to do it. I performed the following per Lenovo Te

  • Telnet through Java and JSP

    Hi friends, Now, there is a certain server that one can telnet into using old conventional way, that is from a shell. However, I would like to do the same from form on a webpage which, on submitting, does the logging in, querying the command and retu