Adobe Form Enumerated Dropdowns values not populated

Hi All,
have a scenario where, I have to fill in a dropdown dynamically when I click a button. I get the values from a function module. I have done this using Isimpletypemodifiablestep. It worked.I have the form too. But when I try to re-implement the same for a new requirement, its working only if I give the values during initialisation .
Why is this inconsistent?
Can we modify Simple types only during initialization? I have tried to add the values to the drop-down in controller and map the attribute to view. Even that didn't work.
I'm
Am using Adobe Live cycle designer 7.1 and NWDS 7.1
SAP 2004s SP15
Thanks,
Vasu

Hi,
       Try with this code...
     int iCommodityCode = wdContext.nodeIt_Commodity_Output().size();
     String commText = null;
     String commCode = null;
     IWDAttributeInfo CommodityAttinfo = wdContext.nodeCommodityNode().getNodeInfo().getAttribute("CommodityCode");
     if (CommodityAttinfo != null) {
          IModifiableSimpleValueSet commValSet = CommodityAttinfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
          commValSet.clear();
          commValSet.put(" ", "Please select one");
          for (int i = 0; i < iCommodityCode; i++) {
               commCode = String.valueOf(wdContext.nodeIt_Commodity_Output().getIt_Commodity_OutputElementAt(i).getCommodity());
               commText = String.valueOf(wdContext.nodeIt_Commodity_Output().getIt_Commodity_OutputElementAt(i).getComm_Text());
                              commValSet.put(commCode, commText);
          wdContext.currentCommodityNodeElement().setCommodityCode(" ");
You have to execute the RFC in doInit of the View and use this code in the click event of your button.
If it still doesn't work it must be the problem with webdynpro lifecycle methods.... The context is available only after certain lifecycle methods are called.. i.e. wdDoPostProcessing() method of Component Controller.  Check if you are trying to access the context before the Component Controller is not initiated completely.
Let me know if you need any further help....
Regards
Ramesh.

Similar Messages

  • WD Enumerated Dropdown Value Getting cleared in Adobe PDF After submit

    We have created a PDF adobe form using the webdynpro Abap in which we are using the Enumarated Drop Down list with the no select value. The Values are populating in the dropdown correctly and we are able to select the particular value from the dropdown.But when we submit the adobe form with the submit button to send it as an attachement in the workflow then the selected value of the dropdown gets cleared in the attachment. Is there any way to avoid that.
    I have searched the forum for the same, but couldnt find appropriate solution. Please help.

    Hi Sourabh,
    I having the same issue with my form right now. We are in EHP5. Did you manage to find any solution for this? Can you please share? Appreciate it. 
    Thanks,
    Praveen

  • Dropdown of all adobe forms of mss are not working

    Hi All
    <b>Dropdown in adobe forms like</b>
    Change Employee Group and Subgroup
    Change Personnel area and subarea
    <b>are not showing any values</b>.
    When I download adobe form in xml format I can all values from backend is <b>available in xml file</b>.
    Actually when I click on down arrow of any dropdown it doesn't do anything.
    I am using EP 7.0 , NW 2004 s and Adobe 7.0.8 is installed in Fronend.
    I can observe pick list for date is working.
    Please help.
    Thanks
    Rakrim

    I fixed it somehow.
    Sent from my iPhone
    On Sep 28, 2014, at 10:55 AM, Gilad D (try67) <[email protected]>

  • Batch characteristic value not populated!

    Hello guys,
    please would appreciate advice to following:
    I created two reference chars z_goods_receipt (MCH1-LWEDT) and z_created_on (MCH1-ERSDA). Chars assigned to material batch class. During GR in Classification Dates (chars values) are visible, but after GR is saved, in batch chars values are not populated.
    Consequently, I can not use these chars in sorting criterium for delivery batch determination - batches are not sorted acocrding to dates.
    Batches on material level. In Customizing (Classify batches within goods mvt), for mvt 101 setting is 4 (Classification always in foreground (all batches)) - but bug remains even if i try with other options. Check with developer shows not much help from EXIT_SAPMM07M_004 or EXIT_SAPMM07M_004 or EXIT_SAPLV01Z_012.
    Any idea how to populate these chars in batch?
    Alternatively, what else I could use in order to enable FIFO batch determination for batches in delivery?
    Thanks for prompt replies!
    Br, Jan

    Hello,
    SAP reply -standard behaviour. After save in MSC2n values read from MCH1, after that in MSC3N value read from AUSP.
    Issue solved using non reference charactereristic and adding code into ZXMBCU04.
    Br, Jan

  • Virtual Characteristic value not populating in the query output

    Hi Experts,
    I am new to BAPI and I am using this to populate the values of virtual characteristics.
    I wrote the below code to populate if an order status got some status value then i need to populate the flag y if not n.
    I got the order value in the reprot. I need to go to order master data and should get the status and then i have to do the comparision and populate the flag zww_teco in the report.
    The below is the compute method of my implementation class.
    FIELD-SYMBOLS :
    <fs_0cs_order> TYPE ANY,
    <fs_zww_teco> TYPE ANY,
    <fs_status>  TYPE ANY.
    if p_cha_0cs_order > 0.
      ASSIGN COMPONENT p_cha_0cs_order OF STRUCTURE C_S_DATA to <fs_0cs_order>.
    endif.
    if p_cha_zww_teco > 0.
      ASSIGN COMPONENT p_cha_zww_teco OF STRUCTURE C_S_DATA to <fs_zww_teco>.
    endif.
    Select single /BIC/ZSYSTATUS
        from /BI0/PCS_ORDER into <fs_status>
       where CS_ORDER = <fs_cs_order>.
    if <fs_status> CP 'TECO'.
      <fs_zww_teco> = 'Y'.
    else.
        <fs_zww_teco> = 'N'.
    endif.
    But I am not sure why the values are not populated. But when i debug , i could see the values for
    P_cha_0cs_order = 35
    p_cha_zww_teco = 54
    But i could get the values of <fs_0cs_order>, <fs_zww_teco> after assign component statement.
    And it is firing me a dump in select statement. Also when I click c_s_data i am getting S____274, S____505 fields like that in the structure but i could see p_cha_0cs_order
    Can you please guide where i am missing ...
    Thanks
    Vamsi
    Edited by: vamsi talluri on Nov 9, 2011 6:14 PM

    Hi Sushant,
      RSRT --> Enter Query Name
    Click on Technical Information --> If " Virtual Char./Key Figures " = Y
    In my case , even then i clciked generate report,
    even after that P_CHA_0CS_ORDER = 35
    and after assign component P_CHA_0CS_ORDER of structure c_s_data to <FS_0CS_ORDER>.
    the <FS_0CS_ORDER> is nothing , here i should get the value of cs_order value of that record but it is coming empty which i am not able to rectify. How should i change or i need to put any other setting to get the value populated into my <FS_0CS_ORDER>.
    Can you please guide me .
    Thanks
    Vamsi

  • Value not populating in the print out (sales order) for the 1st time

    Hi friends,
    While saving a sales order, the order confirmation going to the user is not populating the LDC field. LDC is Last date of change. This field can be found in the Additonal data 2 tab of the material in the sales order. When I enter a date in this field and save, the print preview of the output has this value, but the print out does not carry this value.
    Another weird thing about this issue is that, the second time i trigger the output, the print out has the value.
    Please give me some clue on where to check and how to go about fixing this problem.
    Regards,
    Shanu.

    Dear Shanu,
    This issue may be related bug in the output program so take help of ABAPer to fix the issue.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe forms:Data view palette not showing any fields present in the context

    Hi Experts,
    I am trying to create a static adobe form by following a step-by-step tutorial.The steps I have followed are:
    1. Created an Interface with just one field in the Import parameters (apart from the default one).
    2. Created a form by using that interface and included that field in the context .
    3. Activated the form and wennt to the layout of the form.
    4. I should be seeing that field added and activated in the context in the form but its not there.
    What could possibly be the reason for it.Please guide me.
    Thanks and Regards
    Abhishek

    Hi,
    I am working on Adobe Form when I open it in change mode I am unable to see the below options in it.
    Always I could see only the preview of pdf output. I tried for the option in Palette by right click on the pdf form->Right Click->Palette but it has options Border,Accessibility etc but no option is related to DataView or Hierarchy palettes.
    I am looking for Dataview and Hierarchy Palettes to be displayed on the left side of the form.
    Please share if any ideas.
    Regards,
    Rafi

  • Adobe form MSS PCR senarios  not working with Portal SSL

    Hi All,
    we have implemented MSS PCR  senarios Nw04 with ERP2004 system.
    every thing is working fine when use http protocal for portal acess.
    Now we try to implement ssl for portal. so started implemnation and done in portal side, after that when try access any senario forms , The adobe form is not opening for editing, its throwing  error
    <b>The initial exception that caused the request to fail, was:
       java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:461)
        ... 47 more</b>
    its very urgent anybody can help out this, what settings ot be done on R/3 server and Portal and ADS server
    Thanks in advance
    Gopal

    Hello Gopal,
    You would only need an https connecion between the browser and the portal server if you are only concerned with the MSS applications. You need to have SSL configured from the portal to ADS server had you implemented some custom scenarios like certification, digital signature etc. But, considering your MSS issue, you do not need to worry about it untill and otherwise your landscape demands you to do so for any security reason.
    Well, you might have already gone through the following link, incase not, please go through the link to find out more on how to confugre SSL on the j2ee engine:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm</a>

  • Adobe form translation changes do not work for second time

    Hi Team,
    i am translating adobe form from EN to TR and it was successful for first time and all the changes were working correctly then again i have translated all the texts and checked however then it was only translating fields which were translated in first try.
    I am really confused and please help me here i am not really sure what exactly to do .
    i have checked below note however not getting what to delete exactly .
    i have acttached the note  data below please help <removed by moderator>.
    1294146 - Problem translating rich texts in PDF based forms (Adobe)
    Message was edited by: Manish Kumar

    HI Lande,
    There is nothing to delete. Here is what you should do:
    Following procedure applies to both symptoms:
    1. Open the corresponding form in the original language in change mode in Form Builder
    2. Choose the Layout tab of Form Builder to open the form layout in Adobe Designer.
    3. Identify and select the concerned text element in the layout so that it will be highlighted in the hierarchy tree of the Adobe Designer
    4. Go to the XML Source tab of the Adobe Designer
                  The XML source shows the section of the selected form element.
         5. Go to the appropriate <exData/> element and delete the occurrence of attributes
         xft-xliff:id or xliff:rid
    6. Leave the XML source tab and save the changes.
    7. Activate the form.
    Regards,
    Ashvin

  • Values not populated in S_ALR_87012806 for a specific cost element

    Hi all,
    Postings made to specific cost element are not populated in report S_ALR_ 87012806. Can anyone throw some light on this?
    Thanks
    Shravan

    Hi Krishna
    I dont think "Cost Accounting > LIne Item" would work for Master Data
    You can use exit COOPA_01 (SMOD) > Include ZXAUFU08 (Part of EXIT_SAPLKOAU_002)... I have used this for similar purposes in the past
    Regards
    Ajay M
    Edited by: Ajay Maheshwari on Nov 12, 2010 12:45 PM

  • Adobe Form - Problem of data not refreshing each time the form is called

    Dear All,
    I have created a web dynpro component comprsing of two views.
    In the first view i am displaying an ALV which is bound to an internal table.
    After selecting one record i click on a button which calls the second view and in the second view
    i am displaying an adobe form.
    i have provided a native wd submit button  which again calls the first view.
    The first time when i select the record it works fine and shows me correct data.
    but second time onwards it shows me the data one previous to the current row selected.
    Kindly give your valuable suggestions>
    Regards,
    Niti
    Moderator message: sorry wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 9, 2011 5:59 PM

    Instead of using in the java code.
    For the html page and in jsp pages use the following code
    1) Coding Method:
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    2) Browser setting:
    You can adjust the space to store the temporay files. On the Tools menu in Internet Explorer, click Internet Options, On the General tab, click Settings. you can select the newer version radio button also, adjust the "amount of disk space to use" slider towards the left side(equivalent to disable the cache)..
    cheers
    -balaji

  • Adobe Form Exit Button does not work

    When I select a PCR from the Portal and review the Adobe Form - when I click on the exit button - it does nothing.
    How can I fix that problem?

    Hi
    are you using  standard MSS and Homepage frame work for PCR form or created your own iview in portal?
    what is ther version of Software using?
    thanks
    Gopal

  • Adobe Form in HRFORMS: Value of Textfield on Masterpage is not rendered!

    Hi all,
    I design a new form using HRFORMS. When I put a simple textfield on a master page and give the textfield a default value and render my form using transaction PC00_M01_CALC_SIMU, the value of the textfield is NOT rendered.
    I am using Adobe LiveCycle Designer 8.0 within SAP and the Adobe Acrobat 7.0.9 for rendering PDF documents.
    The ADS Server Version is: 800.20070708051308.406522
    The funny thing is, if you do the same things in Adobe Designer (stand-alone) it works perfectly as it should.
    Is this a known bug?
    Thanks.
    Maik

    I have figured out myself.
    It is a bug in SAP and has also been reported as a bug to SAP.
    It works fine with all Adobe Designer stand-alone versions as well as Adobe LiveCycle Forms Server 7 and 8.
    As a workaround in SAP you should use STATIC TEXT with "FLOATING FIELDS" instead of TEXT FIELDS.

  • Selected dropdown value not reflected in context

    Hi All,
    I am using a Webdynpro Native Enumrated Drop Down fiels and populating values from backend. Values are getting populated finely but when I select some random value in the Dropdown, it is not reflected in the context mapped to it.
    By default it takes the first value from the dropdown list.
    I am using WDP 2.0.16 with latest ACF(xACF 711) and Adobe Acrobat Reader 8.
    Any help on this would be appreciated.
    Regards,
    Arafat

    Is there an underlying view attribute to the LOV Field? Is it updatable?

  • Value not populated for new field - in RSA7 for PI interface in BW

    Hello Experts -
    We have 3.5 bw and PI 7.x. we have a PI interface in bw working in production and now we enhanced the interface with a new added field. I mapped the new field in transfer rule/ modified update rules/ods and regenerated the soap datasource in bw. The user has uploaded the file in FTP with this new field added. PI picked the file processed and the value for new field got populated and pushed the data to BW. In RSA7, i dont see the data filled in for this new added field.
    Not sure, if i missed any steps, in BW, so that I can populate the value for this field.
    Thanks for any inputs/comments.

    Hi ,
    Replicate the Data source in BI and activate it using RS_DATASOURCE_ACTIVATE_ALL program.
    Regards,
    Ramnaresh.P.
    Edited by: ramnaresh porana on Apr 26, 2011 9:43 PM

Maybe you are looking for

  • Problem with OSControl xtra

    Hi all, I have this rather unusual problem with the OSControl Xtra. I recently paid for it $160 (a price which is extremely high for me as I am student). Unfortunately i had to format my computer and I completely forgot to write down my director's se

  • How do you pass a variable from one page to another thru a button

    I have a page that has a button that goes to another page and allows the user to create a new record related to the data on the previous page. The first page is a master, while the second page is a detail. I need the primary key from the first page t

  • AS3 NativeProcess launch application

    Hello All. I am trying to launch a program from an AIR file. I have been pointed to NativeProcess as the scripting to use for launching a program. For testing purposes I am trying to launch Photoshop CC on my MAC.  Below is the code I have tested but

  • Triggering IDOC and sending it to XI.

    Hello, When I release a production order in SAP will it automatically trigger a LOIPRO01 IDOC to be generated? If so, how can I see the generated IDOCs? If not, how can I trigger the production order to generate a IDOC on release? regards, Lunatikk

  • HP L7590 printer - paper not being picked up

    We are a small company with a remote office that has a new L7590. It is connected to a wired network and has win2ks in Head Office managing the print queue. A paper jam occurs from the tray, and I am told the paper was extricated in several pieces, a