No BAPI results when setting initial values

Hi folks,
I have an WD which calls a BAPI and works very well when I set the input parameters via input fields manually.
BUT when I try to set them hard-coded in the wdDoInit method or anywhere else, the BAPI returns nothing, no exception, no items, nothing!
When I uncomment the hard-coded settings, everything works well again.
Any ideas?
Thanks in advance,
Nicolai

Hi Nicolai,
I got through your posting recently .Actually i am new to webdynpro and want some help from you .
In my project i have one custom controller named MgrCust and one view named MgrView .Inside the custom controller there is a method named displayData() from where i have to pass one hard-coded Manager Number (9956) so that data will be displayed in MgrView .There is a value attribute for Manager number i.e ctx_mgrNo
in custom controller as well as in the view and mapping has been done .
I have also done the data binding correctly .
The code which i have written for hard coding is like this .
wdThis.wdGetMgrCust.setctx_mgrNo("9956");
But it's not working . Even i have appended with the initial zeroes but still of no result .
I think the problem lies in my code only .Can you please suggest whether my code is correct or not .If you can give me the exact code then it will be very much useful for me .
Thanks.

Similar Messages

  • Query to set initial values

    Hi all,
    Is it possible to use queries to set initial values or change existing values?  For example, we are adding in a new sales employee that will be our sales rep for customers in a certain area.  Would it be possible to run a query that would set the Sales Employee field in the BP Master Data as this new sales rep if the customer is in that area?  If yes, what is the general process for using queries to set values in this manner (we have other things we would like to use this for as well, if its possible)?
    Thanks for the help

    Hi Todd,
    The best way to tackle this is probably to use a query to extract the business partners you wish to update and then use the Data Transfer Workbench to update the Business Partners in question.
    You could also add a Formatted Search to the Business Partner screen so all new Business Partners default to the correct Sales Person based upon territory/address or whatever criteria you like.
    Cheers,
    Sean

  • How do I retain a PDF form widget's design when setting its value using Javacript in Acrobat?

    I've been experimenting with interactive PDF forms in InDesign and JS in Acrobat. I think I've encountered something that might be a bug: widget design is overriden when using Javascript to set the field's value in Acrobat. Here's what a checkbox, for example, should look like when checked:
    However performing:
    var f = this.getField("Checkbox");
    f.value = "Yes";
    in the JS Console results in the widget's appearance defaulting to acrobat's:
    I've tried every single widget property documented in Acrobat's Javascript API Reference to no avail. Initially, checking/unchecking using the mouse works fine. Once the value has been set using JS, Acrobat's default black check character is used for all subsequent toggling, including when using the mouse...
    How does InDesign export interactive PDFs with custom icons for widgets? Is there any way to enforce the use of those icons using JS in Acrobat Pro? What's the difference between selecting a checkbox or a radio button using the mouse and setting its value using JS?

    I thought it might be the case, too, but all widgets have the same properties both before and after setting the value with JS. I did this check using all documented properties in Acrobat JS Reference in an attempt to figure out what might be going on.
    By the way, I don't think Indesign necessarily uses glyphs for the checked state of widgets, although in this case a glyph is used (albeit with different stroke and fill colours for the glyph, acrobat doesn't allow setting these properties AFAIK). With Indesign CS6 it seems you can practically use any Indesign tool to design the widget's On and Off states. So I'm thinking that maybe Indesign exports these with button-like properties where there are no restrictions on appearance (I think there is an "icon" property/object for buttons or something like that). However Acrobat treats them as checkboxes, so if that is the case it is more of a hack. Is there a way to probe an object's various properties other than using JS or the properties pop-up dialog?

  • IDOC CLFMAS set initial values

    Hi,
    I am using IDOC CLFMAS02 to update values in material classification. I do not have problems with modify a normal value. But I want to set a date classification value to initial. If I inform with ' ' the value is showed as '00.00.0000', but I need that this value become initial.
    I am trying to use field MSGFN = 003 (delete) on segment E1AUSPM but it does not running.
    The FM that we use to input idoc is IDOC_INPUT_CLFMAS.
    Any suggestion. Thanks¡¡¡¡

    Yes I try to remove date characteristic from E1AUSPM.
    Also I try to set blank value.
    Also I try with MSGFN value = 003.
    I think that your code is only to delete values from multiple-values characteristics.
    TEST 1 ( set blank)
    Current Material characteristic value: 01.01.2011
    Objective Material characteristic value: Blank
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     004Z_CHARACTERISTIC
        E1DATEM                     004
    Result Material characteristic value: 00.00.0000
    TEST 2 (MSGFN 003)
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                        01.01.2011
        E1DATEM                     004
    OR
    E1OCLFM                     004MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     004ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                         
        E1DATEM                     004
    OR
    E1OCLFM                     003MARA      00000XXXXXXXXXXXXX                           001OMARA
        E1KSSKM                     003ZCLAS                                 1
        E1AUSPM                     003Z_CHARACTERISTIC                         01.01.2011
        E1DATEM                     003
    OR others...
    The problem is that characteristic must be defined to DATE format and when I set blank value, inside code is converting to 00.00.0000

  • Problem setting initial value for LOV

    Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
    What I would rather do is set the initial value programmatically, but here are my problems:
    If I set the value like this:
    OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
    lovText.setText("02");
    then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
    If I set the value like this:
    lovText.setDefaultValue("02");
    then nothing seems to happen at run time. The value is not displayed at all.
    Can anyone tell me what I am doing wrong? Thanks for your help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, that helps a bunch. Now can you tell me where that is set?
    Thanks so much.
    --Dave                                                                                                                                                                                       

  • Setting initial values on structures

    I have written a middle-ware wrapper which allows me to call a SAP RFC from SQL Server stored procedures.  I am upgrading it from the DCOM to the .Net connector so I can run it on Windows 2003 Server.
    When I set a string value (SAP C type) to initial I get the error "Object reference not set to an instance of an object." raised in the proxy object.  This error does not happen for non-initial values, and also does not happen on my development workstation.  It happens if I set the string to "" or to " ". It occurs on two servers - Windows 2000 and Windows 2003.
    I can't figure out how to debug this, and can't find anything in this forum or on SAP Notes.  Has anyone else found this error?

    A clear head in the morning makes all the difference. There was no problem with the .Net Connector.
    The problem lay with SQL Server's sp_OAMethod procedure, or possibly in the .Net component's CCW.  If you pass an empty string in as an argument, your component gets a Nothing.  I therefore fixed it in the component with:
       If Value Is Nothing Then Value = ""
    Thanks,
    Derek

  • Setting Initial Values in Sharpening Panel

    I have found that one of the reasons that LR3 Process 2010 sharpening seems to be a problem is that the initial values in the Sharpening panel in Develop has a setting of 50 for Detail. Aside from the fact that the Detail adjustment isn't even available in LR2, I have found that a setting of 50 almost always gives a "crinkle" effect (for want of a better term) clearly visible at 100%.  This can usually be correct by lowering the Detail value, often to 0.
    Is there a way to preset the Sharpening values (currently Level 0, Radius 1.0, Detail 50, and Mask 0 -- at least as I'm seeing it) to my own preferred settings?  Seems to me it may be related to camera-specific presets, but I can't find anything (yet).  For example, I'd like mine set to 25,1.0,0,0.  Or, am I completely missing something here?
    dds

    Default settings are set by camera model, so you can have as many different default settings as you want.  Additionally, the dialog box that appears when you set camera raw defaults has a button to enable you to restore the Adobe Camera Raw defaults.
    Visual360photography wrote:
    Hey, I have three cameras and when I click set default, it shows what camera the picture was taken. So my question is what happen to the other two cameras that I have. Especially when it say that this action is not undoable.
    Thanks.

  • Vl31n set initial values

    Hello,
    I donu2019t have very much experience in abap, so I will ask you to help me. I need to fill the the purchase order and the vendor field from vl31n transaction - initial screen with some values. Can you suggest me an user-exit, a badi or something else to solve my problem? I mention that I never worked with badi or user-exits, so I will appreciate any details about this and how is used..
    Thanksu2019

    I assume you want to call the transaction from within another abap program and populate the entry fields on the selection screen ?
    Generally for any transaciton, if you place the cursor in the input field and press F1 you will get the help. From here if you select the technical help you will see information about the field.
    On here there is a parameter id field, showing BES for Purchase order number and LIF for Vendor.
    You can then use SET PARAMETER ID to set the values for these two IDs and they will appear when the transaction is then called.

  • Set initial value using SQL

    Hi,
    How do I set the 'initial value' property of a default value using an SQL statement?
    Any help appreciated,
    Rob

    Hi Kevin,
    you are right. It is sometimes confusing for the users, but it is - as you said - like setting the initial value, of course you can do some more complexity there.
    One big problem is. If you want to set the initial values in a detail record of a master-detail relatioship depending on the master-record, you CAN'T use it. If you change the master record to a record which doesn't have a detail, the WHEN-CREATE-RECORD trigger fires before the master-record really changes. That means, the detail will be initialized with data from the old master-record (the one you were in, before changing the master record). Stupid thing.
    I never tried the WHEN-DATABASE-RECORD trigger, I even don't know how it works. I think I have to check what it is doing.
    Regards,
    Torsten

  • Set initial value in a DD table

    Hi,
    I want set initial/default  value in a column when create a table by Tcode se11.
    please help me.
    thanks.

    Hi,
    You can do this using the Events in table maintenance generator,
    When you save an entry in table using SM30 or any other transaction, the default values get saved in the table along with the other entries...for instance you can disable the fields for input on SM30 for the fields where you want to default values...so that user cant enter values in table entries creation.
    To access events: SE11->Table maintenance generator->
    On the table maintenance screen->Menu->Details->Modifications->Events.
    Events: 01- Before save(Do F4 help for more events available)
    Routine: <give form name where you add code to default value on screen field>
    For more information on events you can search SDN
    Hope this helps you
    Regards
    Shiva

  • Set initial value based on query

    Is it possible to set the initial value of a field based on a query. Kindly advice.
    Regards,
    Careen

    Hi,
    Yes. You can create a VO for your query and map that to the field on your page. Then execute the VO in PR method.
    Or if the field is not based on VO, you can execute your query in PR method using PreparedStatement. Then get the handle of the field and set its value to the value returned in resultSet of the query.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Cascading LOV does not work when setting the value of the parent LOV with DA

    Hello All,
    Using APEX 4.2.2.
    I have tow LOVs
    Parent LOV item is: P50_TYPE
    Child LOV item is :  P50_PROJECT_ID
    In other words in the attributes of the item P50_PROJECT_ID we have :
    > Cascading LOV Parent Item(s): P50_TYPE
    > Page Items to Submit: P50_TYPE
    > List of values definition: something similar to:
    Select * from mytable where type = :P50_TYPE
    I use DA that execute JS code to set the value of the P50_TYPE item
    something similar to:
    > $('#P50_TYPE').val(2);
    Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
    Any help please ?
    Regards,

    Thanks Scott,
    By the way, I remember reading a thread posted by you about  Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
    If you use it, and it works find with you, can you please send it to me on [email protected] ?
    Regards,
    Fateh

  • Open File dialog window when setting the value of a path type input argument in a VI call

    Hi,
    I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup. 
    So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
    Your help is very much appreciated,
    Fred

    Eudaemonic,
    If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
    If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.  
    Hope it helps.
    Antonio Lie. 

  • To set Initial value at run time

    Hi all,
    i am working in forms.There is a poplist with 3 elements.Forms will be open for two different user. 1st user able to see only one element from the list, So I used Delete_list_element. Now I want to set this value as a default value without select that value because there is a only one element. Is it possible if yes please help me.
    Thanx in advance
    Sanjit

    I think, setting property required=Yes will do the job ...
    It is also possible to directly initialize a list item with a value (which should be then content of the actual list).
    :BLOCK.LIST_ITEM := VALUE;
    or you try something like (after your delete_list, to keep it dynamic) :
    :BLOCK.LIST_ITEM := GET_LIST_ELEMENT_VALUE('BLOCK.LIST_ITEM',1);
    Message was edited by:
    user434854

  • Set initial value for numerical control

    Hello LV users,
    I have a VI that is used to initialize some experimental equiptment. It passes on a cluster of ten or so numerical control DBL integers as parameters. Everytime I open the programe the values are reset back to zero and I have to enter the values back in. Is there any way to set default values for  the controls so I do not have to change them everytime I open the program.
    Thanks 
    Solved!
    Go to Solution.

    Wowden,
    If you want to set default values for multiple numeric control's in your cluster in one go, 
    -Type in the desired default values
    - Right click on your cluster, browse to 'data operations'
    - Choose 'Make current values default. 
     Similarly, if you need to set defaults for  multiple clusters or multiple controls on your front panel,
    - Choose 'Edit' in the menu 
    - Choose "make current values default' (This sets defaults for all controls/constants etc. in one go)
    RaVI

Maybe you are looking for

  • What gets wiped out if I sync my phone to iTunes

    Sorry for starting a new thread with this. It is really a followup/clarification to another post, but that one won't let me reply/comment In https://discussions.apple.com/docs/DOC-3141 wjosten wrote: By design, the iPhone will sync iTunes content wit

  • ETax Module - Problems displaying in req, PO, invoice, Payment, reports...

    Hi, We are in the midst of a 12.1.1 implementation and we have encountered a significant problem with Oracle eTax module. Are there others that are encountered problems we are faced with? 1. Currently eTax information is not displayed on any existing

  • Deploying WAR file

    We have recently purchased CF10 Enterprise and we want to package an existing application and deploy it to a customer's server. The instructions and guides available are pretty vague on what needs to be done on the deployment side. We have a WAR file

  • Possible bug? formatted number 0 displays as  4,294,967,295

    This is really two questions in one. First, I have a routine that sometimes provides a result of 0, which is *sometimes* displayed in an AdvancedDataGrid column as 4,294,967,295, which I'm assuming is somehow a meaningful number (largest int?). Anywa

  • Source system jobs in ready status

    Hi Gurus, I am Extracting data from R/3 to BW, when i execute the infopackage the jobs in source system are in ready status and they are not moving to active & finished status. Is there any method to make the jobs in source system active manually. Th