RFC output - SE37 vs Webdynpro

Is it possible that, for the same set of input parms  to an RFC, SE37 output could be different than data comming via the Adaptive RFC interface. The issue we are experiencing is as follows:
We are using BAPI_SALESORDER_SIMULATE to calculate item pricing. What we noticed is that, webdynpro output is usually X times (100 or 1000) the value in  SUBTOTAL2 field of ITEMS_OUT table. We query SUBTOTAL2 for item unit prices.
Is SE37 applying some kind of formatting for quantities, prices etc. before displaying the data, that webdynpro does not ? Has this got anything to do with R3 configuration ? Is there any webdynpro side configuration that has to be done for the outputs to match ? Please advise.

SE37 does quite a few things differently than Web Dynpro.
a) SE37 by default is case-insensitive . You need to check the box , if you want to make it case sensitive.
b) I am not sure about conversion-exits .  To be on safe side, just make sure you are doing necessary conversion.
c) I think it also takes into account user settings that you define in SAP R/3
If nothing makes sense, try debugging.
Regarding X times(100 or 1000), I think this is because of the comma that it puts. This is usually a user setting in R/3. Your JCo ModelData connection - is it Ticket Based Authentication or User/Password authentication ?
In case of Ticket, user settings should not be an issue.
Regards,
Subramanian V.
Message was edited by:
        Subramanian Venkateswaran

Similar Messages

  • Error"SYSTEM Failure" while testing the RFC in SE37  : RFC to JDBC Scenario

    Hi All,
    I am doing RFC to JDBC scenario. When I am testing the RFC in SE37 using the RFC destination created in SM59, I get an error "SYSTEM FAILURE".
    Please suggest.
    Thanks,
    Shyam
    Edited by: Shyam Sreepada on Dec 18, 2007 5:46 PM

    Hi,
    You must run RFC with RFC destination in background mode, I suggest to read following post in order to understand it better.
    Syntax would be:
    CALL FUNCTION func IN BACKGROUND TASK
                       [DESTINATION <your RFC destination>]
                       parameter list
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    If you read it you will find that you can't test it directly from SE37, for this either you need to create dummy ABAP program or another RFC where you will call this RFC with background syntax.
    Regards,
    Gourav
    Reward points if it helps you
    Edited by: Gourav Khare on Dec 18, 2007 6:07 PM

  • Display Smartform Pdf output in ABAP Webdynpro application

    Hello,
    there is a solution for displaying Smartform output in Java Webdynpro application in this forum. Since i want to start an project in ABAP Webdynpro i need a solution for this technology since i don't want to recreate all the paperwork again using Adobe. Is there any solution available?
    Thanks
    Udo Ahle

    Hello,
    this is the solution which i was able to implement using the hints given by Heidi and Thomas. Thank you for the support. With this solution it is possible to reuse oldstyle sapscripts and smartforms in todays environment.  Here is the sample code which solves the problem:
    In WDA you define for example a pushbutton to start the display of the PDF.
    In the onaction method you implement:
    method ONACTIONSHOW_PDF .
      data LX_pdf type xstring.
    * get PDF from existing sapscript or smatform
      call function 'Y_PDF_GET' destination '46c'
        IMPORTING
          ex_PDF = LX_PDF.
    * append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'Hello.PDF'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = 'X'
        i_inplace       = 'X' ).
    endmethod.
    The function 'Y_PDF_GET' is implemented as follows:
    FUNCTION Y_PDF_GET .
    *"*"Local interface:
    *"  EXPORTING
    *"     VALUE(EX_PDF) TYPE  XSTRING
    *"  TABLES
    *"      ET_OTF STRUCTURE  ITCOO OPTIONAL
      data: lf_filesize type i,
            lt_otf type table of ITCOO,
            lt_lines type table of tline,
            tline type tline.
    * start sapscript or smatforms and return
      perform make_otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        TABLES
          OTF                = lt_otf
       EXCEPTIONS
         MEMORY_EMPTY       = 1
         OTHERS             = 2
      et_otf[] = lt_otf.
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         FORMAT                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
       IMPORTING
         BIN_FILESIZE                = lf_filesize
        TABLES
          OTF                         = lt_otf
          LINES                       = lt_lines
       EXCEPTIONS
         ERR_MAX_LINEWIDTH           = 1
         ERR_FORMAT                  = 2
         ERR_CONV_NOT_POSSIBLE       = 3
         OTHERS                      = 4
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * convert tline to xstring as needed in
    * in web dynpro            
      field-symbols <X>.
      data: st(268) type c.
      data l1 type i.
      data len type i.
      data maxline type i value 134.
      l1 = 0.
      loop AT lt_lines INTO tline.
        clear st.
        st+l1(maxline) = tline.
        len = maxline + l1.
        l1 = maxline - strlen( tline ).
        ASSIGN st TO <x> TYPE 'X'.
        CONCATENATE ex_pdf <x>(len) INTO ex_pdf.
      endloop.
    ENDFUNCTION.
    The make_otf for sapscript is the following:
    * the next attribute enables the otf output.
    * no other output will be generated
    <b>options-TDGETOTF = 'X'</b>
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
    *         APPLICATION        = 'TX'
    *         ARCHIVE_INDEX      = ARCHIVE_INDEX
             ARCHIVE_PARAMS     = ARCHIVE_PARAMS
                DEVICE             = DEVICE
                DIALOG             = ' '
                FORM               = FORM
                LANGUAGE           = language
               OPTIONS            = OPTIONS
    *     IMPORTING
    *          LANGUAGE           =
    *          NEW_ARCHIVE_PARAMS =
    *          RESULT             =
           EXCEPTIONS
                CANCELED           = 1
                DEVICE             = 2
                FORM               = 3
                OPTIONS            = 4
                UNCLOSED           = 5
                OTHERS             = 6.
    *... make some write forms
      data lT_OTF     type table of     ITCOO.
    * get the otf data
      CALL FUNCTION 'CLOSE_FORM'
    *     IMPORTING
    *          RESULT   = result
           TABLES
               OTFDATA  = lt_otf
           EXCEPTIONS
                UNOPENED = 1
                OTHERS   = 2.
    * put otf into memory for later usage
      if not lt_otf is initial.
        CALL FUNCTION 'SAVE_OTF_TO_MEMORY'
    * EXPORTING
    *   MEMORY_KEY       = 'DEF_OTF_MEMORY_KEY'
          TABLES
            OTF              = lt_otf.
      endif.
    For Smartforms technology it is possible to implement the same concept.

  • RFC Output to an Output Port

    Hi,
      My application has two nested windows inside a main window. I choose certain selection criterion in one nested window and press submit and certain information is shown in the other nested window.
      Second window content is shown only if user presses submit. This is done by passing a flag to the output port which in turn goes to the second window's input.
      My requirement is, after user presses submit, I want to call a certain RFC. At the end of the RFC I want to move the control to Output Port.
      Submit  -> RFC -> Output Port
      I can get two lines for the submit. One to call RFC and the other to the output port. But RFC execution needs to be completed first. I am able to connect RFC output to Output port(with some dummy output fields). But its giving an error while deployment.
    Thanks.
    Srinivas

    Hello Srinivas,
    The two lines doesn't work. I had a similiar problem, which you described.
    Can you post your model? - So that I can have a closer look at the problem? Maybe I have a solution.
    Best Regards,
    Marcel

  • Output node of RFC not populated in WebDynpro

    Hi ,
             I m using RFC model in WebDynpro Applicaiton. Its having 2 inputs and two subnodes(each for one input) under output node of RFC. After executing model values are getting populated only in one of the node.what can be problem??
    Regards
    Kavita

    Hi,
    Check st22 transcation in R/3 as well, whether RFC is throwing dump?
    If not the case, the only way is to debug,
    1) Go to rfc by using se37
    2) in Menu, settings, set external break point for user against whose id jco conncetions are set up.
    3)and debug

  • Re: output node of RFC not populated in WebDynpro

    Hi ,
    I m using RFC model in WebDynpro Applicaiton. Its having 2 inputs and two subnodes(each for one input) under output node of RFC. After executing model values are getting populated only in one of the node.what can be problem??
    Regards
    Kavita

    Hi Kavita,
                are you using bind table to bind values to the node from itab. if its so.. the type (or name) of the attributes of the node and fileds of the itab should be same, else it wont get binded. Attributes of your first node might be same as that of the itab you are trying to bind.
    it it doest solve your proble. loop the iteb and try binding to the node element by element.
    Regards
    Sarath
    Edited by: Sarath Satheesan on Jan 18, 2008 11:29 AM

  • RFC output node always empty

    Hi Experts,
    I created a web dynpro program and i've verified that the data i'm passing as input to the RFC is correct. however, no matter what input to the RFC though, the output node is always empty. What could I be missing that would cause the output node to be empty?
    Cheers,
    Alfonso

    hi
      have you checked  in the backend by passing same input to the RFC  and is the RFC
      giving you the data in the output node. , check the mandatory parameters in the RFC
      and you can even ask your ABAPer to give the TEST data to pass to the RFC from the
      webdynpro .
    try to hard code the data with data taken from abaper and check whether RFC is giving you the
    data ,  even try to debug the application , provide a external debugging in the RFC and
    and perform external debugging and check the data getting passed to all the mandatory parameter
    and the output node .

  • ** How to deliver multiple files using BPM (From RFC output)

    Hi Friends,
    I am doing File-RFC-File scenario using BPM. I am using BAPI_SFLIGHT_GETLIST as my RFC (Standard RFC). If we execute this RFC, it will return the results in tables form. Assume that, the inputs to RFC is like below.
    FromCountryKey : US
    FromCity: NEW YORK
    ToCountryKey: DE
    ToCity: FRANKFURT.
    The outputs from the RFC is like below.
    26 Entries
    CAR
    CONN
    FLDATE
    AIR
    AIR
    DEPTIME
    SEATSMAX
    SEATSOCC
    |
    DL
    0106
    19.05.2008
    JFK
    FRA
    19:35:00
    280
    266
    UA
    3516
    20.05.2008
    JFK
    FRA
    16:20:00
    380
    364
    LH
    0401
    23.05.2008
    JFK
    FRA
    18:30:00
    220
    209
    LH
    0401
    28.05.2008
    JFK
    FRA
    18:30:00
    220
    208
    UA
    3516
    28.05.2008
    JFK
    FRA
    16:20:00
    380
    367
    DL
    0106
    16.06.2008
    JFK
    FRA
    19:35:00
    280
    261
    UA
    3516
    17.06.2008
    JFK
    FRA
    16:20:00
    380
    357
    LH
    0401
    20.06.2008
    JFK
    FRA
    18:30:00
    220
    213
    DL
    0106
    14.07.2008
    JFK
    FRA
    19:35:00
    280
    1
    UA
    3516
    15.07.2008
    JFK
    FRA
    16:20:00
    380
    86
    LH
    0401
    18.07.2008
    JFK
    FRA
    18:30:00
    220
    123
    DL
    0106
    11.08.2008
    JFK
    FRA
    19:35:00
    280
    56
    UA
    3516
    12.08.2008
    JFK
    FRA
    16:20:00
    380
    67
    LH
    0401
    15.08.2008
    JFK
    FRA
    18:30:00
    220
    114
    DL
    0106
    08.09.2008
    JFK
    FRA
    19:35:00
    280
    0
    UA
    3516
    09.09.2008
    JFK
    FRA
    16:20:00
    380
    164
    LH
    0401
    12.09.2008
    JFK
    FRA
    18:30:00
    220
    64
    DL
    0106
    06.10.2008
    JFK
    FRA
    19:35:00
    280
    80
    UA
    3516
    07.10.2008
    JFK
    FRA
    16:20:00
    380
    8
    LH
    0401
    10.10.2008
    JFK
    FRA
    18:30:00
    220
    16
    DL
    0106
    03.11.2008
    JFK
    FRA
    19:35:00
    280
    11
    UA
    3516
    04.11.2008
    JFK
    FRA
    16:20:00
    380
    33
    LH
    0401
    07.11.2008
    JFK
    FRA
    18:30:00
    220
    53
    DL
    0106
    01.12.2008
    JFK
    FRA
    19:35:00
    280
    0
    UA
    3516
    02.12.2008
    JFK
    FRA
    16:20:00
    380
    45
    LH
    0401
    05.12.2008
    JFK
    FRA
    18:30:00
    220
    25
    |
    We need to create output file for each record. In this case, the system should generate 26 output files.
    I imported the RFC and created the required interfaces and designed BPM also.
    Start --> Receive step --> Synchronous Send --> Asynchronous Send
    But, I stuck in how to deliver each record to the output file from BPM.
    Any idea, friends. (like using BPM Multi-line option. or 'Receiver From' property in the Send Step)
    Kindly help me friends to solve this issue.
    Thanking you.
    Kind Regards,
    Jeg P.

    Hi
    You can do it by creating one another message interface having structure same as your table.
    What you have to do is create a mapping in such a way that for each record in table one message(newly created) must be created.
    Use that mapping in an interface mapping, remember occurence of target message should be 0..Unbounded both in message mapping and interface mapping.
    Now create one single line message and one multiline message in BPM for newly created message.Use transformation step with new interface mapping, mention source(RFC response) and target message(use multiline element of new message) for the transformation step.
    Use send step inside a block,set block mode to "forEach", and attach new message to that send step.
    Use multiline and single element of new message in the property window of block.
    Now your BPM will look like
    Start ---> Receiver ---> Synchronous send ---> Transformation ---> Block ---> Async Send(within block)
    I think in this way you can implement what you want.
    Regards
    Sami
    Reward points if helpful.

  • RFC call from java webdynpro

    Hi,
    I'm creating a Java Webdynpro where I call RFC's from SAP.
    For the images in the webdynpro, I call the standard SAP function 'CVAPI_DOC_VIEW'
    When I execute the function in SAP, I get the url to the contentserver with the correct image.
    After calling the same function in my Java Webdynpro, the url is empty.
    I've checked the importing parameters after calling from webdynpro and SAP and they are the same.
    After debugging, I saw that the function 'CVAPI_DOC_VIEW' is the problem. He's exporting an empty url after calling from the webdynpro.
    Does anybody knows the possible fault and solution for my problem?

    I'm not an ABAPer but the last time I've dealt with DMS from Web Dynpro an ABAPer wrote a custom function that gets the file content (XSTRING) by sending DMS parameters (documenttype, documentnumber, documentversion, documentpart).
    After getting the XSTRING from my Web Dynpro Java, I convert it to byte[] and created URL by using WDResourceFactory.
    Hope it helps...
    Omri

  • Dynamic report output in a webdynpro alv

    Hi,
    I have created a dynamic report in the R/3 system . In this report, i am creating a report program within the report and subsequently executing this dynamically created report and displaying in the ALV..
    Is it possible to handle such a scenario in a webdynpro ALV. One option is to use ITS and display the report in the portal but is there some other way so that i can directly view this report in an alv grid in a view.
    all help appreciated!!
    regards,
    Priyank

    Hi Priyank,
    This could be one of the solution:
    1] Run the report in background mode (using submit statement, dn't forget to give printer as LOCL), get the spool id programatically. Use the FM's CONVERT_OTFSPOOLJOB_2_PDF or CONVERT_ABAPSPOOLJOB_2_PDF.
    Which returns the ouput of table tline, convert this to xtring and bind it to xtring attribute.
    In view add a interactive form and bind the xstring attribute to the Interactive form.
    By following the above steps, we can display the result in the PDF in WD ABAP.
    2] The report result is ALV and in most of the cases we generally do not have function modules or any other easy way to get the output.
    In such cases the best approach which we follow is, to run this in background mode and generate the spool and display the ouput in PDF.
    3] But if intertactive form is not present in your requirement then we need to debug the logic of the report (if no FM or class present) and get the results and display it in the View.
    You can create a service which takes the parameters of the report, submits it and
    transfers the result to HTML. In a view you use an IFRame which takes the URL of the service and shows the result HTML.
    just additionally read this thread,
    Display simple ABAPLIST
    Here an IFrame is used to display HTML output of report. But as IFRame gets obsolete the Suresh's solution seems to be pretty cool.
    Hope this will help you!
    Cheers,
    Darshna.

  • Passing RFC output structure to another RFC input structure.

    Hello Friends,
    I have 2 views (i.e. SearchView & ResultView). In search view, I pass input parameter (PO Number) to BAPI_PO_GETITEMS and get back the output table PO_ITEMS correctly. I display this table in the ResultView correctly. Now, after displaying the order details, I need to pass this input to BAPI_GOODSMVT_CREATE in its GOODSMVT_ITEM structure to create a Good Movement Note.
    Can somebody help me as to how could I pass values from PO_ITEMS to GOODSMVT_ITEM structure?
    Thanking you in advance,
    Maulin

    Hi,
    You can pass the input of BAPI_PO_GETITEMS  to the BAPI_GOODSMVT_CREATE .
    For this u need to first understand and read the BAPI throughly, means u must read how your two bapi's are working and what are the relation ship b/w them.
    Also, i assume that in a ur webdynpro application u already imported all required BAPI and just simple take the user Input from the context and pass it to the next Bapi.
    Hope so it can solve ur pb,If there is any more query, put in forum.
    Thanks
    Dheerendra Shukla

  • RFC output issue

    Hi All,
    I am facing an issue while executing a RFC that is imported thruogh a model in my webdynpro application.
    I am initialising my model node, then binding it and then after setting the mandatory input parameter i am executing it.
    The problem is the size of the node remians 0 after the execute command and no records are coming inside the node.
    When i check the proxy java class for the model i find that the model instance is undefined for the Model and i am getting an error in the doExecute method of the Input Java class.
    Also while importing the RFC i had got a pop up message saying "It is recommended to restart the J2EE server.
    Please help and suggest what can be the problem.
    Regards.

    Hi sarabjeet,
    I have tried with that also...but my problem is not solved with this.
    Now my code looks something like this:
    try
         wdContext.nodeZ_Esrce_Create_Inspn_Lot_Pdf_Input().bind(new Z_Esrce_Create_Inspn_Lot_Pdf_Input());
         AbstractList Abslist = new pwc.ca.model.requirement.Zrfc_Esource.Zrfc_Esource_List();
         Zrfc_Esource eSrc = new Zrfc_Esource();
        eSrc.setMatnr(wdContext.currentVn_CreateInputValuesElement().getVa_PartNo());
        Abslist.add(eSrc);
        wdContext.currentZ_Esrce_Create_Inspn_Lot_Pdf_InputElement().modelObject().setI_Search(Abslist);
        try
              wdContext.currentZ_Esrce_Create_Inspn_Lot_Pdf_InputElement().modelObject().execute();
              wdContext.nodeOutput_InspnLot().invalidate();
       catch (WDDynamicRFCExecuteException e1)
             wdComponentAPI.getMessageManager().reportException("Exc1:" + e1.getMessage(),false);
         catch (Exception e)
              wdComponentAPI.getMessageManager().reportWarning("Exception in Action Search::::"+e.getMessage());
    But this gives me an exception saying mandatory parameter P_Matnr not set.
    Please suggest....
    Regards.

  • SRM  RFC Model Error in Webdynpro JAVA

    Hi All,
    When I create a model from Any R/3 RFC in Webdynpro(JAVA) and map the RFC model context to Controller Context then every thing works fine, but when I create model from SRM RFC(Model is created with no problems at all) and map the SRM Model context to Controller Context, then I get below error:
    com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type com.cnsl.srm.model.types.Bbp_Category_Id could not be loaded: com.sap.dictionary.runtime.DdException: Type com.cnsl.srm.model.types.Bbp_Category_Id does not exist
    Is there any thing specific to SRM that we have to do on the Webdynpro(JAVA) side to be able to call the SRM RFC. Kindly suggest me. Also please if you can forward me to forum thread/blog in case there is any.
    -Shekhar.

    Hi,
    Please look at this thread. Similar problem
    Webdynpro Services Exception
    WebDynpro using BAPI has an error
    Regards,
    Marcin Gajewski

  • Set color alv output cell abap webdynpro

    Hi Guys ,
    i wanted to set the color of some cells in alv output to red in ABAP WebDynpro.
    i am using the salv_wd_table.
    any piece of code is appreciated.
    thanks,
    Bobby.

    Bobby,
    If let's say you are build a ALV table to output 'SFLIGHT' table, and you want PLANETYPE '747-400' to be displayed in green, and PLANETYPE '146-200' displayed in red.
    Also, let's just say, you already had a context node 'SFLIGHT_NODE' that is mapped to the external node 'DATA' of your ALV.
    Now:
    1.  you need to modify the context node 'SFLIGHT_NODE' to add an attribute -- say 'CELL_COLOR' of type 'WDY_UIE_LIBRARY_ENUM_TYPE' -- to the SFLIGHT_NODE (note, you need to delete 'DICTIONARY structure' that is bind to the 'SFLIGHT_NODE' node, otherwise, you will not be able to create addition attributes)
    After, you will have something like this for your context node .
      CONTEXT
        --> SFLIGHT_NODE  
    > CARRID
    > CONNID
    > FLDATE
    > PRICE
    > PLANETYPE
    > <and any other attributes you had pulled from SFLIGHT)
    > CELL_COLOR (TYPE WDY_UIE_LIBRARY_ENUM_TYPE)
    2.  In your supply function to the 'SFLIGHT_NODE', you now need to supply the data to this newly added attribute:
    METHOD supply_sflight_node .
    ** data declaration
      DATA:
        itab_sflight_node            TYPE if_componentcontroller=>elements_sflight_node,
        stru_sflight_node            LIKE LINE OF itab_sflight_node.
    ** read sflight data
      SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE itab_sflight_node.
    ** populate the 'CELL_COLOR' field
      LOOP AT itab_sflight_node INTO stru_sflight_node .
        IF stru_sflight_node-planetype = '747-400'.
          stru_sflight_node-cell_color = CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-GOODVALUE_DARK .
         ELSEIF stru_sflight_node-planetype = '146-200'.
          stru_sflight_node-cell_color = CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-BADVALUE_DARK .  
        ELSE.
          stru_sflight_node-cell_color = CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-STANDARD .
        ENDIF.
        modify itab_sflight_node from stru_sflight_node.
      ENDLOOP.
    ** bind all the elements
      node->bind_table(
        new_items =  itab_sflight_node
        set_initial_elements = abap_true ).
    ENDMETHOD.
    3. Now, you need to obtain the configuration model of the ALV and config it before display.  (say you have an method does this 'init_alv_table_settings', and it is called from your view's wddoinit() method)
    METHOD init_alv_table_settings .
      DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      l_ref_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
      DATA:
      node_sflight_node                   TYPE REF TO if_wd_context_node .
      node_sflight_node = wd_context->get_child_node( name = if_flights_view=>wdctx_sflight_node ).
      CALL METHOD l_ref_interfacecontroller->set_data
        EXPORTING
          r_node_data = node_sflight_node.
    **  get ConfigurationModel from ALV Component
      DATA:    lr_table TYPE REF TO cl_salv_wd_config_table.
      lr_table = l_ref_interfacecontroller->get_model( ).
    ** change the color of the cell
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= lr_table.
      lr_column = lr_column_settings->get_column( 'PLANETYPE' ).
      DATA: lr_input_field TYPE REF TO cl_salv_wd_uie_input_field.
      CREATE OBJECT lr_input_field EXPORTING value_fieldname = 'PLANETYPE'.
      lr_column->set_cell_editor( lr_input_field ).
      lr_column->set_cell_design_fieldname( value = 'CELL_COLOR' ).
    ENDMETHOD.
    Compile and activate your code.
    Regards,
    Tina Yang
    Message was edited by: Tina Yang

  • Vb RFC output

    Hi,
    I have successfully exececute sap rfc from vb and reterive data. But i could not display the download data in table ???
    any help
    Private Sub Command1_Click()
    Dim SAPFunction As Object        ' functions
    Dim FM As Object                 ' our function module
    Dim Struct As Object             ' R/3 structure
    Dim s$                           ' any string
    ' check status
    If Status <> "Logon" Then
       MsgBox "Please perform Logon first"
       Exit Sub
    End If
    ' create FM object
    Set SAPFunction = CreateObject("SAP.Functions")
    If SAPFunction Is Nothing Then
       MsgBox "Creating Functions object failed"
       Exit Sub
    End If
    Set SAPFunction.Connection = Connection
    ' create function module objects
    Set FM = SAPFunction.Add("RFC_READ_TABLE")
    If FM Is Nothing Then
       MsgBox "Creating function module object failed"
       Exit Sub
    End If
    ' assign input
    FM.Exports("QUERY_TABLE") = "ZRT_UPLOAD"
    ' perform call
    If Not FM.Call Then
       MsgBox "Function call failed"
       Exit Sub
    End If
    'process output
    Set objStruct = FM.tables("DATA")
    msg text(fm.tables.("data").rowcount())
    ' report success
    MsgBox "Function module processed successfully"
    End Sub
    Private Sub SAPLogonControl1_Click()
    ' make new commection
    Set Connection = SAPLogonControl1.NewConnection
    ' logon to R/3
    If Connection.Logon(0, False) Then
       MsgBox "Connect successful"
       Status = "Logon"
    Else
       MsgBox "Connect failed"
    End If
    End Sub

    Hi Yogesh,
    how are you doing ?
    >> Dim FM As Object ' our function module
    >>' perform call
    >>If Not FM.Call Then
    >>MsgBox "Function call failed"
    >>Exit Sub
    >>End If
    >>'process output
    >>Set objStruct = FM.tables("DATA")
    >>msg text(fm.tables.("data").rowcount())
    if this is in VB.NET, you should get a syntax error when you access the object using 'fm' rather than 'FM'. VBScript would assume vb is a new object and throw a runtime error when you access fm.tables
    with respect,
    amit

Maybe you are looking for

  • Recording TV

    I am utterly confused as to what AppleTV can and cannot do. I think that Apple put all of their best marketing types on the iPhone, and pretty much forgot about AppleTV. Here's my biggest question: can this product be a replacement for my TiVo, meani

  • Script to add empty pages

    MacOS 10.6.8, InDesign CS6, javascript Hi - I'm often supplied with pdfs as spreads. From these files I have to create single page pdfs for imposition. I create a new, non facing page document and run 'Mulitpageimporter 2.5' to bring the spread into

  • Contacts not showing up

    Im having a problem with my iphone 4. My contacts are in my phone when i search for them and also show up in my recent calls and text messages. However, whenever i touch contacts to bring up the list none of them are there. Does anyone know how to fi

  • How to connect multiple Xserve Raid for Best Performance

    I like to get an idea how to connect multiple Xserve Raid to get the best performance for FCP to do multiple stream HD.

  • Time Machine allows you to back up everything, but if you are using Mavericks (10.9) does it still allow you to restore everything?

    More and more files are now hidden in OS 10.9 (Mavericks). Many users here have already expressed their frustrations with iCloud (see for example <https://discussions.apple.com/thread/5460803?start=2835&tstart=0>). This relates to Time Machine becaus