I am getting crazy. Output field become gray after invalidate();

Before post, i have carefully read SAP docs, including the course JA310, but still don't find the solution.
My problem is that when i called a RFC, and execute output.invalidate(), the output field becomes gray.
(There won't be any authorization issues, i use the rfc_user for sap backend system, it has sap_new and sap_all authorization).
I will make the case most simple.
BAPI backed:
- IMPORT: orgin type num2, EXPORT result type num2.
- the function of BAPI is simple : result = orgin + 1.
In the NWDS.
- I have already tested the input bind, it works fine. (with an other FM has IMPORT data only)
- but when I try to bind the output data, the display field is gray and empty. (I have check the binding between model and controller, controller and view, all is fine)
Here is the 'logic flow'
Part I: wdDoInit()
  public void wdDoInit()
    //@@begin wdDoInit()
// out put field is now gray
     Ztestbapi_Output outbapi = new Ztestbapi_Output();
     outbapi.setResult("05");
     wdContext.nodeZtestbapi_Output().bind(outbapi);
// output field is now availble
Pari II: Button Action
  public void Execute1( )
    //@@begin Execute1()
     try {
//         wdContext.nodeZtestbapi_Output().invalidate();
// out putfield is now gray again
          wdContext.currentZtestbapi_InputElement().modelObject().execute();
// out putfield is now gray again
          wdContext.nodeZtestbapi_Output().invalidate();
          Ztestbapi_Output outbapi = new Ztestbapi_Output();
          outbapi.setResult("07");
          wdContext.nodeZtestbapi_Output().bind(outbapi);
// output field is now availble
          wdContext.nodeZtestbapi_Output().invalidate();
// out putfield is now gray again
     } catch (WDDynamicRFCExecuteException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
Thank u very much in advance!

My recent research is :
when i change my execute() function like:
     Ztestbapi_Input inbapi = new Ztestbapi_Input();
     inbapi.setOrgin("02");
     wdContext.nodeZtestbapi_Input().bind(inbapi);
     try {
                     // here is the key change
                     wdContext.nodeZtestbapi_Output().bind(inbapi.getOutput());
                     // End of key change.
          wdContext.currentZtestbapi_InputElement().modelObject().execute();
          wdContext.nodeZtestbapi_Output().bind(inbapi.getOutput());
          wdContext.nodeZtestbapi_Output().invalidate();
          if (wdContext.nodeZtestbapi_Output().isEmpty()){
               inbapi.setOrgin("07");
               wdContext.nodeZtestbapi_Input().bind(inbapi);
     } catch (WDDynamicRFCExecuteException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
The output and the input should be binded automatically, shouldn't them?
Always confused.

Similar Messages

  • Field Becomes grayed after some lines in ALV

    Hi All,
    My question is:
    I have prepared a ALV output with some fields editable (means i have handle the style and layout at cell level)
    ALV is in the docking container
    ALV comes in the 50% of the screen area.
    Now, I am trying to change the data by entering some values in the editable cells and then press enter
    Good part is:
    Upto some certain rows, i am able to change the data in the ALV and no unusual behavior found regarding style and layout
    Bad is:
    When i am trying to enter the data in editable cell (Say this is row 30) after some lines and press enter then correspoding row cell becomes grayed (Which generally should not be).
    if i again repeat the same action for next line (Say this is row 31) then results becomes similar for line 31 as for line 30 but at the same time LINE 30 becomes fine.
    Note: Technically, data change method is implemented correctly. No style has been changed during this action.
    Thanks in advance

    Just a guess..are you entering right type of data into the cell
    Best Regards,
    rama

  • IPod app music output quiet, becomes louder after seeking a track.

    When I play a song it will be quiet, turning up the volume and it still isn't as loud as it should be. However, when I go and seek the track it suddenly becomes louder, but when I go to the next track the music has "gone quiet" again unless I seek again.
    What could be causing this?

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself

  • How to make a field editable again after displaying error msg (validation)

    Dear All,
    In dialog programming, I have written a validation on a text field that it should not be left blank by the user, but after displaying the message the field becomes gray (non-editable). How can I make it editable once again after displaying the error message.
    My code is as following:
    ***INCLUDE MZFBPS1_SAVE_DATAF01 .
    *&      Form  save_data
          text
    -->  p1        text
    <--  p2        text
    FORM save_data .
    ****************Check For Empty Fields Start
    if ZFBPS_GATE_IN-truck_code is INITIAL
    or ZFBPS_GATE_IN-truck_no is INITIAL
    or ZFBPS_GATE_IN-transporter_code is INITIAL.
    MESSAGE e020(zmatlist).
    endif.
    ****************Check For Empty Fields Start
    Regards,
    Alok.

    hi,
    u can do it in chanin end chain.
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    * text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.      -----------> ur condition
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " message obj
    ELSE
    loop at screen.
    if screen-name = 'FIELD_NAME'.
    field-name-input = 1. -----------> chnges to non-edit mod
    modify screen.
    endloop.
    ENDIF.
    ENDIF.
    ENDMODULE.
    Rgds
    Anver
    if hlped pls mark points

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Unbale to get complete output as some field are missing in z t-code.

    Respected Guru's,
    i am tring to get output from a customized t-code.
    While executing the report in background,  i mention customized format as the exsisting format does not match.
    But i  am the unbale to get complete output as some field are missing.
    Please help me, i have tried change the no of rows and coloums, but no effect.
    Regards,
    Daya

    Hi,
    Please try with printer settings and used different printer formats.
    Actully this problem because of printers configration which is used for backgound reports.
    Regards,
    Ravi

  • Material Qt.field becomes Blank & Grayed and Item category field goes Blank

    Hi,
    I am facing some new situation. The user is trying to create Consignment Issue order. After giving evrything when it is "ENTERED", the pop up coming "You can not enter Schedule line data for Item 000010". I checked that the schedule line has been defined for this Item Category and this item cayegory is showing against F4 and it is taking but the moment "ENTER" is pressed this item category vanishes and the quantity field becomes empty and Grayed. Even it is not possible to keep the curser on the field of material quantity.
    Please guide me to ivercome the situstion and to create the consignment issue order.
    Thanks,
    Jans

    In normal consignment process, system wont give this pop up message during issue order stage.  Please let me know the message number and also you have to update whether you followed standard document types, item category and schedule line category.  If you have zee types, then you need to compare with standard settings.
    thanks
    G. Lakshmipathi

  • PPD field grayed out.....How do I get the PPD field populated?  Windows 7 x64

    I have an employee running Illustrator in the Creative Cloud and for whatever reason her PPD field is grayed out when she goes to print.  My other two employees running this both have the Fiery file for the printer we have as an option.  Any idea how I can get the PPD field populated?

    Permissions issues on the PPD files or the printer... Or the driver has never been fully installed in the first place due to whatever technical or again permissions issues...
    Mylenium

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Output field length issue in OO ALV

    Hello Experts,
    I have an requirement to download ALV grid output into Excel but some of columns having more than 128 characters, as per standard SAP will not support so I have included one more button and I have written the below code.
      field-symbols: <fs_table> type standard table,
                     <fs_wa>.
    * Get the current fields of the layout
      CALL METHOD ALV_GRID->GET_FRONTEND_FIELDCATALOG
        IMPORTING
          ET_FIELDCATALOG = it_fcat.
    * Generate dynamic internal table
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG           = it_fcatn
        IMPORTING
          EP_TABLE                  = dyn_table
      assign dyn_table->* to <fs_table>.
      create data dyn_line like line of <fs_table>.
      assign dyn_line->* to <fs_wa>.
    loop at lt_final into ls_final.
        if ls_final-EBELP is not INITIAL.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              INPUT  = ls_final-EBELP
            IMPORTING
              OUTPUT = ls_final-EBELP.
        endif.
        MOVE-CORRESPONDING ls_final to <fs_wa>.
        append <fs_wa> to <fs_table>.
      endloop.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = FULLPATH
          FILETYPE                = 'DAT'
          WRITE_FIELD_SEPARATOR   = 'X'
          CONFIRM_OVERWRITE       = 'X'
        TABLES
          DATA_TAB                = <fs_table>
          FIELDNAMES              = LT_HEADING
    Now my problem is some of field output value getting truncated(in excel) but it displayed in Grid output.
    eg.
    lt_final having one text field(Doc. Type description) and the length is 20, actually printing 17 characters but we are not defining the output length.
    Can you please anyone faced the problem earlier? Basically the SAP version is R/3 4.7.
    Regards,
    Vadamalai A

    Hello All,
    Before calling CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
    we can define the length
      WHEN 'BATXT'.       wa_fcatn-OUTPUTLEN =
    20.
    Regards,
    Vadamalai A.
    We can close this thread.

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • How do i pass a value to Output field in a standerd screen...?

    Hi all..
    I have a developed a BDC program for User upload,  I'm facing problem to pass a value to Output field..
    Its Displaying Status Message as ZSHIPTO is not a Input field,
    looking forward to hear from you all,
    thanks in anticaipation,
    full points will be awarded for usefull answer..
    regards,
    Sekhar.

    just check in transaction whethere that field is an input field or not ( imean to say that field is in the display mode (gray field) or it is in change mode(input is accept).
    also check for that particular field in the coding .
    Thanks

  • How to get txt output in a column?

    Don't know and can't find anywhere, how to get output in a column in a dynamic textfield
    instead of getting the output i.e.
    output1, output2, output3, etc
    I would like to have it as
    output1
    output2
    output3
    but I don't know how to make returns in flash - in php /n
    can anyone answer my 'simple' question
    Thanx

    I solved it like this and it's working, but it seems silly, because I have 10 dynamic fields like this - I have tried /n to get all the outcome into 1 dynamicfield called total_txt but where and how do I put in /n?
            total_txt.text = Number(qty1_txt.text)+ " X " + "art 1"
            aAmount_txt.text = Number(qty1_txt.text)+ " X " + "art 1"
            bAmount_txt.text = Number(qty2_txt.text)+ " X " + "art 2"
            cAmount_txt.text = Number(qty3_txt.text)+ " X " + "art 3"
            dAmount_txt.text = Number(qty4_txt.text)+ " X " + "art4"
            eAmount_txt.text = Number(qty5_txt.text)+ " X " + "art5"
            aprice_txt.text =  Number(price1_txt.text) + ",- " +"  Euro's"
            bprice_txt.text =  Number(price2_txt.text) + ",- " +"  Euro's"
            cprice_txt.text =  Number(price3_txt.text) + ",- " +"  Euro's"
            kprice_txt.text =  Number(price4_txt.text) + ",- " +"  Euro's"
            eprice_txt.text =  Number(price5_txt.text) + ",- " +"  Euro's"

  • ABAP Program where iam not able to get the Output.

    Hi Team,
                   I have written the code for the following requirement but could not get the output
    Can you people please have a look at this.
    Create a Report with the following output.
    In the selection screen you should have KUNNR and Delivery date(VBEP-EDATU).
    When you select the Customer number and Date in the Selection the following output should be displayed.
    Sales order Number (VBAK-VBELN)
    Sales order Material (VBAP-MATNR)
    Quantity (VBAP-ZMENG)
    Ship-to-Party (VBAK-KUNNR)
    Delivery Number(LIKP-LFDAT).
    The key field used for fetching the values is VBELN.
    Here the values from table VBAK are not getting selected.
    Please check the Program and give your valuable suggestion.
    I checked in Debug mode but could not get the values
    Regards,
    Pradeep P.

    Hi Ramchand,
                           Plz find the Code.
    *Fetching  vbeln matnr zmeng kunnr from vbak and vbap
    select a~vbeln
           b~matnr
           b~zmeng
           a~kunnr
           into corresponding fields of table it_sales
           from vbak as a
           inner join vbap as b
           on avbeln = bvbeln
           where a~kunnr in s_kunnr.
      If sy-subrc = 0.
      sort it_sales by vbeln.
      endif.
    *Fetching vbeln edatu lfdat from vbep and likp
    select a~vbeln
           a~edatu
           b~lfdat
           into corresponding fields of table it_delivery
           from vbep as a
           inner join likp as b
           on avbeln = bvbeln
           for all entries in it_sales
           where a~vbeln = it_sales-vbeln
           and a~edatu in s_edatu.
    Regards,
    Pradeep P.

Maybe you are looking for

  • How do I use a bluetooth headset with garageband?

    How do I use a bluetooth headset with garageband? I can't get it to work after many tries.

  • OS X fails to open quarantined files

    Hi, Since doing a fresh install of snow leopard on release date I have had several problems with the OS X I have googled but can't seem to find any reference to this issue; When I first boot into OS X everything works fine and it stays that way for h

  • Integrating WebDynpros to CRM WebUI - impossible?

    Hello Experts, My client is upgrading from PCUI (CRM 5.0) to WebUI (CRM 5.2). We have a WebDynpro (using ABAP) application that lists out sales orders for various customers. On clicking a Sales order #, the application used to pull up the PCUI view o

  • Serial Number CS5 help Menu?

    Hello- Trying to locate my serial number, and no I don't have it on Adobe.com.  But I found a serial number located in CS5 under the Help Drop down, under System Information.  Is this the actual Serial Number?  Just trying to find it because I'm gett

  • ASA 5520 k8 model

    I have asa 5520 k8 model presently i am running with IOS version 8.0(4) i am upgrading to 8.2(5) is ? any license required from cisco to upgrade to this IOS, and also let me know how many site to site vpn can be configure on this device. Licensed fea