OVS value not getting populated in field

Hi Experts,
Kindly suggest me a solution for the below given issue.
I have added three custom fileds to an already existing WD Coponent.
And also added OVS help as an input help method to these fields.
If I right click on the WD application and TEST, the application opens in browser and I am able to select the value from OVS list.
If I run the application by copying the URL and paste it in the browser, or clicking on Portal link, if we select the value from OVS list that value is not getting populated in the field.
Below is the logic I have written.
method ON_OVS_PAYMENT .
TYPES:   BEGIN OF ty_payment,
             payment TYPE char4,
             desc    TYPE char30,
           END OF ty_payment.
* declare data structures for the fields to be displayed and
* for the table columns of the selection list, if necessary
  types:
    begin of lty_stru_input,
*   add fields for the display of your search input here
      payment type char4,
*      desc    type string,
    end of lty_stru_input.
  types:
    begin of lty_stru_list,
*   add fields for the selection list here
      payment type char4,
      desc    type char30,
    end of lty_stru_list.
  data: ls_search_input  type lty_stru_input,
        lt_select_list   type standard table of lty_stru_list,
        ls_text          type wdr_name_value,
        lt_label_texts   type wdr_name_value_list,
        lt_column_texts  type wdr_name_value_list,
        lv_window_title  type string,
        lv_group_header  type string,
        lv_payment       type string,
        lt_payment       TYPE TABLE OF ty_payment,
        ls_payment       TYPE ty_payment,
        lv_short         TYPE string,
        lv_table_header  type string.
  field-symbols: <ls_query_params> type lty_stru_input,
                 <ls_selection>    type lty_stru_list.
  case ovs_callback_object->phase_indicator.
    when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
*   in this phase you have the possibility to define the texts,
*   if you do not want to use the defaults (DDIC-texts)
      ls_text-name = `PAYMENT`.  "must match a field name of search
      ls_text-value = `Terms of payment`. "wd_assist->get_text( `001` ).
      insert ls_text into table lt_label_texts.
      ls_text-name = `PAYMENT`.  "must match a field in list structure
      ls_text-value = `Terms of Payment`. "wd_assist->get_text( `002` ).
      insert ls_text into table lt_column_texts.
      ls_text-name = `DESC`.  "must match a field in list structure
      ls_text-value = `Description`. "wd_assist->get_text( `002` ).
      insert ls_text into table lt_column_texts.
      ovs_callback_object->set_configuration(
                label_texts  = lt_label_texts
                column_texts = lt_column_texts
                group_header = lv_group_header
                window_title = lv_window_title
                table_header = lv_table_header
                col_count    = 2
                row_count    = 20 ).
    when if_wd_ovs=>co_phase_1.
      ovs_callback_object->context_element->get_static_attributes(
          importing static_attributes = ls_search_input ).
*     pass the values to the OVS component
      ovs_callback_object->set_input_structure(
          input = ls_search_input ).
    when if_wd_ovs=>co_phase_2.
      if ovs_callback_object->query_parameters is not bound.
******** TODO exception handling
      endif.
      assign ovs_callback_object->query_parameters->*
                              to <ls_query_params>.
      if not <ls_query_params> is assigned.
******** TODO exception handling
      endif.
*     call business logic for a table of possible values
*     lt_select_list = ???
      lv_short = <ls_query_params>-payment.
      CALL FUNCTION 'ZSIILESD001' DESTINATION 'LOGICALE22'
      EXPORTING
      i_payment             = lv_short
      TABLES
      ET_PAYMENT            = lt_payment.
    lt_select_list[] = lt_payment[].
      ovs_callback_object->set_output_table( output = lt_select_list ).
    when if_wd_ovs=>co_phase_3.
*   apply result
      if ovs_callback_object->selection is not bound.
******** TODO exception handling
      endif.
      assign ovs_callback_object->selection->* to <ls_selection>.
      if <ls_selection> is assigned.
        ovs_callback_object->context_element->set_attribute(
                               name  = `PAYMENT`
                               value = <ls_selection>-payment ).
      endif.
  endcase.
endmethod.

Hi Pradeep,
I don't think it really make any difference to the application run if we run from SE80 or run via application url.
Try to set the external break point in OVS PHASE3 for your user. Check if the break point is reached and data is set after selection from OVS.
Regards,
Rama

Similar Messages

  • Values not getting populated in the o/p

    Hi,
    I have a requirement,where in which I have to add MRP Controller(marc-dispo) and production scheduler(marc-fevor) fields in the selection screen and the same should be added in the o/p.These fields are not getting populated in the o/p,even if I give some values for these fields in the selection-screen.What would be the reason for this?
    Regards,
    Hema

    Dear Hema,
    Could you please tell me how many internal tables you are using to store the data for display.
    I observerd that you have lt_stock and lt_mat2 declared in the part of the program
    >DATA: lv_stock TYPE lty_stock.
    >DATA: ltmat2 TYPE TABLE OF lty_mat.
    you have displayed above, however you are also using ls_stock and lv_stock .
    >IF p_ztotal = ' '. "line
    >WRITE 18 ls_stock-matnr.
    >WRITE 38 lv_stock-strgr.
    >
    >ELSEIF ztotal = 'S'.                             "subtotal
        >WRITE: 15 ls_stock-nrmit.
        >WRITE 32 lv_stock-dispo.                    
        >WRITE 43 lv_stock-fevor.                      
      >ELSE.                                            "total
        >WRITE: 15 'TOTAL'(016), ls_stock-prgrp.
    >
      >ENDIF.
    Are those for displaying some other information?
    Also the problem of display you are facing can also be because there are no records to be displayed which satisfies the selection criteria.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Values not getting populated in the SMOPCCAPRO

    Hi,
    We had added a new field to CPGProduct in component CPGOE_ABLOCKS. But the extension field was not included to the BOL structure automatically.
    So ,we had used the SAP note 1472567 to add the include structure INCL_EEW_MKTPL_PRD to structure CRMS_MKTPL_CPG_PROD which inturn would rectify our BOL  structure CRMS_MKTPL_IB_CPG_PROD.
    The field which we had added using AET was added in tables CRMD_MKTPL_PROD and SMOPCCAPRO. But we are facing an issue that the values are not getting populated in the SMOPCCAPRO table on save.The values are gettign populated in the CRM table.
    Do we need to implement any other SAP note on the midleware side too to rectify this issue as i infer some interface structure would be missing this field which results in the truncation of value from being passed to the CDB table . Any pointers in this regard would be helpful.
    Thanks
    Swapna.

    Hi Swapna,
    as the CDB table has been extended with the new field I assume that you have enabled the mobile flag for the enhancement.
    Then it will also extend the mobile BDOC and the data should be transfered automatically.
    If this does not happen there's an error somewhere. Either the middleware is not set up properly or the mapping routine does not transfer the fields properly.
    I recommend to raise an OSS message for this.
    Best regards
    Matthias

  • Values not getting populated in sapscript

    Hi,
    i have written a subroutine pool with ENTRY form . which is configured in NACE. when i run the T-code VT03N. in debugging mode in the subroutine i am getting the values . But the values are not gettng populated in sap script. open_form , write_form close_form and text elements are all used.
         the same code is copied and put in a report without ENTRY form and run directly then we are getting the values in script.
    please let me know for any answers.
    Thanks
    Chetan
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 14, 2009 1:06 PM

    H,
        Do as below.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
       form                              = 'ZTEST_SCRIPT'
      LANGUAGE                          = SY-LANGU
    EXCEPTIONS
       canceled                          = 1
       device                            = 2
       form                              = 3
       OPTIONS                           = 4
       unclosed                          = 5
       mail_options                      = 6
       archive_error                     = 7
       invalid_fax_number                = 8
       more_params_needed_in_batch       = 9
       spool_error                       = 10
       codepage                          = 11
       OTHERS                            = 12
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Loop at itab .
    call function 'WRITE_FORM'
    exporting
    element = 'LABEL'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    window = 'MAIN'.
    ENDLOOP.
    Call Function 'CLOSE_FORM'.
    In SE71 'ZTEST_SCRIPT' in main window
    add a field like &ITAB-MATNR&.
    ex:-
    /E   LABELS
    P1   &ITAB-MATNR&.
    Regards
    Krishna
    Edited by: Bala Krishna on Aug 11, 2008 12:28 PM
    Edited by: Bala Krishna on Aug 11, 2008 12:29 PM

  • Lookup value not getting populated...

    I am using following xml code (copy.asmx > method CopyIntoItems). Per Microsoft
    http://msdn.microsoft.com/en-us/library/websvccopy.copy.copyintoitems(v=office.14).aspx I should be able to update lookup fields value as well because Lookup list is on the same subsite and both source and target libraries are on the same sub-site as well.
    Any idea? Item gets copies and all the columns get populated except the lookup column. I verified that the ID and value matches for the lookup value.
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="htthttschemas.xmlsoap.org/soap/envelope/" xmlns:m="schemas.microsoft.com/sharepoint/soap/">
    <soap:Header>
    </soap:Header>
    <soap:Body>
    <m:CopyIntoItems>
    <m:SourceUrl>http://internal.col.com/sales/bymonth/Active/0973410.pdf</m:SourceUrl>
    <m:DestinationUrls>
    <m:string>http://internal.col.com/sales/bymonth/NonActive/0973410.pdf</m:string>
    </m:DestinationUrls>
    <m:Fields>
    <m:FieldInformation Type="Text" DisplayName="Sales Code" InternalName="SalesID" Value="99999"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Sales Person Name" InternalName="FullName" Value="TEST, John S."></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileSection" InternalName="PersonnelFileSection" Value="1- New Hire Paperwork, ECA, Termination, LOA"></m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="FileCategory" InternalName="PersonnelFileCategory" Value="Termination Paperwork"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Year" InternalName="Record_x0020_Year" Value="2014"></m:FieldInformation>
    <m:FieldInformation Type="DateTime" DisplayName="Effective Date" InternalName="Anniversary" Value="04/22/2014 00:00:00"> </m:FieldInformation>
    <m:FieldInformation Type="Choice" DisplayName="Status" InternalName="Current_x0020_Status" Value="Terminated"></m:FieldInformation>
    <m:FieldInformation Type="Lookup" DisplayName="AreaCode" InternalName="AreaCode" Id="cdae6ca0-d49c-4971-a580-2adcd7a282f1" Value="4;#1795004"></m:FieldInformation>
    <m:FieldInformation Type="Text" DisplayName="Title" InternalName="Title" Value="TEST"></m:FieldInformation>
    </m:Fields>
    <m:Stream>base64Binary</m:Stream>
    </m:CopyIntoItems>
    </soap:Body>
    </soap:Envelope>

    How many values are pulled in the lookup column?
    Also thourgh UI are you able to see values for the lookup column.
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Message Attribute value not getting populated

    Hi,
    We are using the WF_NOTIFICATION.send() API to send a notification. We have some attributes in the subject and body. We are setting the values to these attributes using WF_NOTIFICATION.SetAttrText() API. Notification is sent successfully, but the values for the attributes in the subject line is not getting set (returns blank), but if we use the same attribute in the message body, the values are properly set (returns the value). The values are properly getting updated in the table wf_notification_attributes.
    e.g. We have an attribute NAME, in the subject and body we use &NAME, the subject returns null, where as body returns attribute value.
    Please let us know what is the issue?
    Is there any way of sending notification (using some other standard API), but subject attribute should get updated with actual value?
    Thanks in advance.

    Hi,
    See OWF forum message:Re: wfnotificationapi.getsubject() 's return value
    There is a bug related in Metalink: Doc ID = 229566.1
    fact: Oracle Workflow Cartridge
    symptom: Regional settings other than English
    symptom: Statement WFNotificationAPI.getSubject(context, new BigDecimal(125)
    ) always returns null.
    symptom: The method WFNotificationAPI.getSubject returns the subject of the
    message if the regional setting is English (United States)
    cause: Bug 2379277 Oracle Workflow Java Notification API Multilingual
    Problem
    The language is not recognized by WF as an installed language.
    fix:
    1. Follow the instructions for installing an additional language in The Oracle
    Workflow Server Installation Notes
    2. Rerun the test by creating a new message.
    IMPORTANT! The old message will not have a row in the table until they load one
    for that language.
    Reference:
    The Oracle Workflow Server Installation Notes

  • Work area field value not getting populated in table control grid.

    Hi all,
    I am currently facing an issue where I have declared a variable and have fetched the workarea field name in it. To be exact, the variable contains the workarea name whose value I am finally populating to the table control. Now although the workarea name when manually copied and pasted in field name in debugging mode exhibits the value of the it, Im unable to fetch the same value in the variable as I have only the work area name in it. I need the value of the workarea-field to be in the variable.Please provide your valuable suggestions for this issue...
    Regards,
    Edited by: Vishwanath Sreedharen on Jan 2, 2012 3:25 PM

    Hi Nabheet,
    Please consider the below example...
    DATA: l_var(30) TYPE C.
    CONCATENATE 'wa' '-' I_FIELD2-NAME INTO l_var.
    The i_field2-name contains the name of a custom table field CP_CUSTOM_GRP. So now the l_var contains wa_cp_custom_grp.
    Now consider the wa_cp_custom_grp has a value 'BA'.
    Now my issue is the l_var contains wa_cp_custom_grp but not its value(too obvious)... Would like to know whether is there a way through which the value of this wa_cp_custom_grp  'BA' could be populated to the variable l_var...

  • Cube values not getting populated in the report

    Hi,
    I have done the selective deletion of Purchase orders and done the repair load, the set of records are there in the cube but unable to see in the  report.. the records in the cube satisfies the selection criteria also.
    expecting the early response,
    Points will be rewarded for the any information and solution also if any body face the same problem pls share the information.
    regards,
    vishali.

    Hi,
    i have already activated the cube and that repair full request is available for reporting that icon has come in the cube and if it is reg. aggregates there are not aggregates present so .... what might be the problem pls let me know....
    regards,
    vishali.

  • Field value is not getting populated in Display mode

    Hello All,
    I have created a custom drop down field in the DEAL component through EEWB. From the GUI, I could able to select a value form the drop down list field and save it.
    In DISPLAY mode,  the value is not showing but when I change the screen to EDIT mode then the value is getting populated.
    Please advise.
    Thanks in advance.

    When debugging the set_property method I see the following code:
    If ME->IS_CHANGEABLE( ) = ABAP_TRUE and                  "CLASS=CL_CRM_BOL_ENTITY
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY
    *     change value
          <VALUE> = IV_VALUE.
    In display mode none of these conditions are fulfilled, meaning value is not set.
    So, is there a way of avoiding this behavior?

  • Default Value in a DFF is not getting populated in Self Service Page

    I had an issue in Self Service Page.
    In the SS page there is hidden mandatory field in DFF segment,which should get populated with a default select statement.
    But this field is not getting populated with the default values.
    But this is working fine in Forms , i.e the default value is populated in forms.
    Why the default value is not populated in Self Service Pages?
    For Eg: If there is a DFF "SAMPLE_DFF" which has some context with segment
    Context Code : GB_CODE
    Segment : "Enter the Group"
    and this segment is made required and defaulted with a select stmt (select stmt returns 'XXXXX')
    In forms if am not entering any value, then its defaulted to 'XXXXX'.
    But in Self Service this is not happening.
    Can anybody help me out...

    Actually, I have narrowed down the problem. It is not quite the same.
    DFF is Receivables, Address Information (Release 12). We have 2 attributes defined and we want the default value of the 2nd to be dependent on what the user selects in the 1st.
    So the default value of the 2nd is defined as a SQL Statement, select :$FLEX$.INDUSTRY_CODE from dual (where INDUSTRY_CODE is the value set name from the 1st).
    We know the syntax is correct because if we actually hardcode a default value in the 1st attribute (select 'BLAH' from dual), then we do see that the default value for the 2nd attribute fills in with BLAH as well. However, we do not want that. We want the user to choose a value for the 1st attribute from the LOV, and then have the 2nd attribute default to that same value. This is the part that does not seem to work in OAF, but definitely used to work in Forms.
    Any thoughts?
    Thanks much!

  • XREF3 field not getting populated in BSEG table while posting MIRO

    Hi,
         I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
    any hint on this?
    Thanks & Regards,
    Soniya S.

    Hi,
    1.- According to SAP Note 904652 - MIRO: Different from FB60
    https://service.sap.com/sap/support/notes/904652
    MIRO is an independent Materials Management (MM) transaction that does not
    claim to be the same as the accounting transactions (such as FB60 or FB01).
    MIRO was developed to allow users to process vendor invoices within the
    context of the MM procurement processes as simply as possible.
    For this reason, among other differences, the field selection was limited
    to the absolutely necessary. For example, the following fields from the
    accounting document are not available in Transaction MIRO (this list is not
    complete):
    Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
    2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    https://service.sap.com/sap/support/notes/1156325
    Have a look at badi MRM_ITEM_CUSTFIELDS.
    This badi will create a new tab at item level in order to display the new fields.
    I haven´t used this badi so i cannot talk from experience here.
    Think twice before deciding.
    Best regards.

  • ALV Block list. Field name at user command not getting populated

    Hi All,
    I'm trying to use ALN block list. Field catalog is built using the REUSEALVMERGE FM.
    I've put hot spot on some fields. When I'm trying to capture the data when user clicks on the hotspot field the structure that comes in the user_command subroutine is not getting populated with the fieldname. But it is getting populated with the tabname and value is also coming properly.
    FORM user_command
              USING
              ucomm    TYPE sy-ucomm
                    selfield TYPE kkblo_selfield.
    What could be the possible reason?
    I appreciate your inputs.

    Hi Surya,
             Did you find the solution for this?
    Best Regards.

  • Currency Field - KOMK-WAERK not getting populated

    Dear All,
    In my infoset, i am reading the value from KONV table. But when i generate the infoset, system prompts a Warning Message saying:
    Currency Field KOMK-WAERK will not be filled. Affected currency amount fields: (& it gives out the list of fields).
    In my data section when i put TABLES KOMK, then the message does not appear, but the currency field still does not get populated when i execute the query.
    Any suggestions as to how i can make the currency field populate in my output?
    Await inputs.
    Anyone to help?
    Edited by: Vivek on Feb 9, 2008 8:51 PM

    Is not KOMK a structure, you need to fill this structure. Try to map required fields as following :
    CLEAR KOMK.
    KOMK-MANDT = SY-MANDT.
    KOMK-KALSM = VBDKR-KALSM.
    KOMK-FKART = VBDKR-FKART.
    KOMK-KAPPL = 'V'.
    IF VBDKR-KAPPL NE SPACE.
    KOMK-KAPPL = VBDKR-KAPPL.
    ENDIF.
    KOMK-WAERK = VBDKR-WAERK.
    KOMK-KNUMV = VBDKR-KNUMV.
    KOMK-VBTYP = VBDKR-VBTYP.
    KOMK-BUKRS = VBDKR-BUKRS.
    KOMK-BELNR = VBDKR-VBELN.
    Regards

  • Currency Field is not getting populated in 0FI_AR_3 Data source

    Hi Friends,
    I have unchecked the currency  fields DMBE2 , DMBE3 and curresponding currency type fields HWAE2
    and HWAE3 in the data source 0FI_AR_3 and activated the DS.
    when i am checkin the data using extract checker rsa3 , the fields DMBE2 and DMBE3 are filled with the amount but the corresponding currency types are not getting populated in HWAE2
    and HWAE3 fields.the currency field are maintened in R/3 side.
    Please suggest.
    Thanks

    I was checking this issue, and all the enhancements with fields need to
    have a customer-exit to be populated.
    If those fields are not delivered by SAP and are not in the original
    datasource(RSA5) from Business content, this is related to an enhancement.
    We can only see these fields in the datasource enhanced through RSA6.
    To have the proper values assigned to those field, you should write an
    User Exit program. This program must be created to fill the enhanced
    fields as they are not filled in the same way as the SAP delivered
    fields.More details about this process you can check note 576886.
    576886-Change to user-defined fields not extracted.
    This SAO Note is an example for some datasources regarding what should be
    done.
    Thanks,
    Walter Oliveira.

  • Fom field not getting populated

    Hi,
    I have a field in the form role(multi select field). The value of another field in the form 'abc' is depedent on role selection. I have a rule with a switch and case statements for this. In the rule i am using
    <Rule>
    <switch>
    <ref>role</ref>
    <case>
    </case>
    </switch>
    </Rue>
    I tested the rule and it's working good.
    Now i am calling the rule in the field 'abc':
    <Field name='abc>
    <block trace'true'>
    <Expansion>
    <rule name='xxx'/>
    </Expansion>
    </block>
    </Field>
    The prolem here is that, even after i select the role, this field is not getting populated. It is empty.
    Not sure what i am missing. Please help.
    Thanks,

    step1) when you are getting value in the field on which "abc" is dependent , how are you getting that value?you are getting this value in derivation or expansion???
    step2: write the code logic for field "abc" in Derivation instaed of expansion. That should help.
    Please let me know if you are still facing the problem.
    Warm Regards,
    G

Maybe you are looking for