Fill a field at the btadmini context node

Hi experts
Iu2019ve to fill the field ZZCURVAMAT at the btadmini context node when I put a product in the order item.
Iu2019m trying to fill that field in the get_ordered_prod method with the code below:
CALL METHOD lr_entity->if_bol_bo_property_access~set_property_as_string
          EXPORTING
            iv_attr_name = 'ZZCURVAMAT'
            iv_value     = lv_zzcurvamat.
But I must active two commands to fill that field, at the first processing the field is not filled. For Example, I need to click at the u201Center buttonu201D twice so that the field ZZCURVAMAT can be filled.
Anyone knows how can I fill that field as soon as I put the product and click at the enter button?
Ps. I tried to do it in the set_ordered_prod but occurred the same thing
Thanks in advance

how you decided on this user exit? this is being called AFTER order save, so you can do wjhatever you want, it is not going to save that to VBAP
what you need to use is either userexit_move_field_to_VBAP or userexit_save_document_prepare.
in move to VBAP user exit you dont need to move the values to XVBAP, just move to VBAP, and SAP will tkae care of the rest
for prepare user exit use the same code you have, but do modify xvbap before endloop.

Similar Messages

  • The selected context node does not have attributes - Message no. SWDP_WB_TO

    Hello,
    I am trying out the example in web dynpro documentation -> Creating a Simple Flight Info Application
    and in part 3 steps 11 - 13 I get the following error
    The selected context node does not have attributes
    and the associated message class and # is :
    Message no. SWDP_WB_TOOL467
    can anyone please help ?

    Hi Raj,
    Have you done the steps 7 and 8 as described
    7.      Create an additional node called u201CflightSu201D, this time with the cardinality 0..n.
    8.      Use the Create Using Wizard option of the context node again to define attributes from the SFLIGHT structure for this new node (see part 1, step 15). Choose the following fields: CARRID, CONNID, FLDATE, PRICE and PLANETYPE.
    See the flights node , if there are no attributes the perform the steps as described in 8.

  • Filling Activity fields from the Interactive Script WinClient

    Hi Experts,
    I am working with Interactive Scripting (CRMM_TM_SCRIPT) and I already defined my interactive script. I am also creating Activities after I finish with the Script in order to register a case. I am doing this by defining an Action Type CIC-AB which calls an Action Box in the Interaction Center WinClient. In the Action field I define the name of the Activity I want to call from the Action Box of the Interaction Center.
    When the Agent receives a call, he navigates in the Interactive Script in order to clasify the case he is treating. At the end of the Script, the case needs to be register following the clasification made by the Agent, and that’s why we are calling an Activity. The thing is that we don’t want the Agent to fill again the information he just defined in the Script in the Activiy, so we want to fill certain fields of the Activiy I am calling with Information of the Interactive Script I used before, in order to save time to the Agent that Register the Case.
    Can anyome shed some light on this issue?
    Thanks to everyone.

    Alberto
    You can create an activity.i.e., you can create an Order from the Interactive Script if you already created the Script structurethen follow the below steps
    I think it would be helpful
    Procedure: 
    T-Code:  EWFC0
    Path: SPROIMGCustomer Relationship ManagementCustomer Interaction CenterVisible ComponentsAction Box SettingsDefine Configuration Profile for Action Box.
    1. Choose F4 help to select one of the Action Box profiles you have created and you want to adapt and choose change.
    2. Mark the Action box Configuration and create a new Action Box Group by choosing Create transaction group.
    Enter a group ID, description and icon for the new transaction group and choose Continue.
    3. Mark the new transaction group and create a new Action Box transaction by choosing Create transaction.
    4. Enter a transaction ID.
    5. Enter a Transaction Definition section, select Workspace.
    6. In the Transaction Definition section, select Workspace.
    Two additional fields will appear.
    7 Choose F4 in the Workspace field to select the Script.
    8. Choose F4 in the profile field to select the Interactive Scripting profile that you created in the previous steps above.
    9. Enter a Slot Name if desired.
    10. Choose Continue.
    You are automatically taken to the Maintain Data Flow screen .No data flow parameters need to be maintained for the Interactive Scripting workspace.
    11. Choose Back.
    12 Choose Save.
    Note:  Since Only Workspace of this type can be open at once, you will need to close the Automatically Created Interactive Scripting Workspace before launching the Interactive Scripting Action Box call.
    Regards
    Surendra

  • Filling Activity fields in the Interactive Script in the IC WinClient

    Hi Experts
    My question is how to pass parameters between two workspaces. More specifically between the workspace of the Interactive Script WinClient and the workspace Activity.
    The thing is that after i finish navigating in the script, i need to call an activity, which is working good. However what i want is to fill some fields of the activity i am calling with information coming from the script
    Can anyone help me on this issue?.
    Thanks

    Hi Shwetha,
    Lina is right SAP supports JRE 1.4.2, I also had similar problem however please see what version of JRE are you using. If you are using anything below JRE 1.4.2 you could probably upgrade to JRE 1.4.2. If you are using anything above JRE1.4.2 you may not be able to downgrade. In that case you could probabaly upgrade to 1.6.0. I could do all the functions in Interactive Script Editor with 1.6.0 except assigning Script to Script profile and you could do that alternatively through SPRO. One of my colleague had JRE 1.5 and was facing some issues. Secondly, Interactive Script Editor takes a while to populate therefore be a bit patient.
    To know which version of Java is installed on your local machine Click on Tools -> Sun Java Console.
    Regards,
    Deepak

  • Compare the elements data of the 2 context nodes using internal table

    Hi,
    How can i compare the elements data of the 2 context nodes using internal table?
    Regards,
    Ronita

    hi ronita,
    just get the nodes data into internal tables and just compare them......
    node1->get_static_attributes_table(importing table = ITAB_node1)
    node2->get_static_attributes_table(importing table = ITAB_node2)
    now u have the data of ur 2 context nodes in 2 different internal tables ..
    just compare them like
    if  ITAB_node1[ ] = ITAB_node2[ ].
    write: / 'itab1 is equal to itab2'..
    endif.
    and u can use as many as comparision operators between these 2 tables to compare them....
    regards....
    srini,,,,

  • Regarding deactivation of fields in the form context

    Hi friends,
    In Adobe forms going into the form context when we drag and drop Global data from the Interface into the Context the data displays all the fields regarding the specific table.
    So in that we can deactivate unwanted fields.
    But my question is how can we deactivate unwanted fields in bulk rather than deactivating each and every unwanted single field which is time consuming?
    Thanks,
    Madhav
    Edited by: Madhav.Reddy on May 26, 2011 8:19 PM

    Hi friends,
    In Adobe forms going into the form context when we drag and drop Global data from the Interface into the Context the data displays all the fields regarding the specific table.
    So in that we can deactivate unwanted fields.
    But my question is how can we deactivate unwanted fields in bulk rather than deactivating each and every unwanted single field which is time consuming?
    Thanks,
    Madhav
    Edited by: Madhav.Reddy on May 26, 2011 8:19 PM

  • Remove leading Zeros from the mapped context node(Table)

    HI,
    I have he following requirement:
    In the Leave approval application , in the Approver worklist we have the coloumn to display the resuqester's Perner.
    The perner starts with leading zeros. We have to remove these leading zeros.
    I have refer the following threads:
    Removing leading zeros in a column
    How to remove leading zeroes of string
    and wiki document:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/remove%252bleading%252band%252btrailing%252bzeros%252bfrom%252ba%252bstring
    but I am not able to create the calculated attribute in the Mapped Node( NWDS is not allowing indicating it is not allowed for mapped nodes.)
    Any pointer how I can remove leading Zeros from existing column?
    If I create the calculated attribute outside the mapped node then it is taking only the first value of the mapped node.
    Please note we do not want to modify the RFC.
    _vishal

    Hi,
    Thanks for inputs,
    Now I created a test application where the original structure is as follows in the View Controller:
    1) Context -> Z_Portal_Test_Input (mapped Node/folder) -> IT_Tab_Input(mapped Node/folder) -> Eid(Mapped attribute)
    note: this attribute Eid has the values (01, 02,03,04,05)
    2)Context -> Z_Portal_Test_Input (mapped Node/folder) -> Output(mapped Node/folder) ->IT_Tab_Input(mapped Node/folder) -> Eid(Mapped attribute)
    Now as per your suggestion I created another node like this
    Context -> Z_Portal_Test_Input (mapped Node/folder) ->testnode(value node) ->testValue(value attribute)
    testnode cardinality is 1..1 and singlton = false
    In the Layout
    The tablecell editor  of one coloumn is mapped to text     Z_Portal_Test_Input.testnode.testvalue
    It is expected that this will show the values like(1,2,3,4,5) but it is showing value(1,1,1,1,1)
    The code of get method is:
      public java.lang.String getTestnodeTestvalue(IPrivateTestpernerView.ITestnodeElement element)
        //@@begin getTestnodeTestvalue(IPrivateTestpernerView.ITestnodeElement)
          String  msg =wdContext.nodeZ_Portal_Test_Input().nodeOutput().nodeIt_Itab().currentIt_ItabElement().getEid();
            return removeLeadingZeroes(msg);
        //@@end
    the functon removeLeadingZeroes(msg) is implemented as per the wiki link.
    What wrong I am doing/ missing....
    _vishal

  • Reuse of Context node field into another

    Hi All,
    My Reuirement is to add "Product Configuration" field into Crdit Memo item List. Whereas this standard field already avaialble in standard order item list.
    But "Credit Memo Item list" Context node is different fro "Standard order item list" Context Node. How to make use of that std field into "Credit Memo Item list" Context node.
    Component : ICCMP_BT_SLO/Slo1cart
    Std order Context Node : ADMINI
    Componet : ICCMP_BTITEM/itemList
    Credit Memo COntext Node : BTADMINI
    Field Name : Config
    Kindly Suggest how to proceed this.
    Thank you,
    Cha

    Hi Cha,
    In the view ICCMP_BT_SLO/Slo1cart in the context node they have added a manual attribute called "Config"
    You can do the same to your view ICCMP_BTITEM/itemList. you can create a manual attribute - you can do this by do a right click on the attributes of the BTADMINI context node.
    You can copy the same code from the other component or you can write your own code in the get method
    Hope this helps.
    Thanks,
    Senthil.

  • How to read the value of a field belonging to a different context node in GET_I method during runtime

    I want the read the value of a field,'LCSTATUS' belonging to context node 'BTADMINH' in the GET_I method of the field, 'ZZFLD000008' belonging to context node,'ZBTACTIVITYH'.
    In the context node class of context node 'ZBTACTIVITYH',I have created an instance attribute,GR_OWNER type ref to context class.
    I get the following error in the line - lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ).
    'An exception (CX_CRM_CIC_PARAMETER_ERROR) occurred Message no. TPDA430'
    I have used the below code.
    method GET_I_ZZFLD000008.
         DATA: current TYPE REF TO if_bol_bo_property_access,
               lv_act_status TYPE string.
         DATA:lr_entity TYPE REF TO cl_crm_bol_entity,
               lr_current TYPE REF TO if_bol_bo_property_access,
              lr_parent TYPE REF TO cl_crm_bol_entity.
         rv_disabled = 'TRUE'.
         if iterator is bound.
           current = iterator->get_current( ).
         else.
           current = collection_wrapper->get_current( ).
         endif.
    CHECK gr_owner IS BOUND.
    lr_entity ?= gr_owner->btadminh->collection_wrapper->get_current( ).
    CHECK  lr_entity  IS BOUND.
    lv_act_status = Lr_entity->if_bol_bo_property_access~GET_PROPERTY_AS_STRING( 'LCSTATUS' ). "error states that lcstatus can't be used here.
       TRY.
             IF current->is_property_readonly(
                           'ZZFLD000008' ) = abap_false. "#EC NOTEXT
               rv_disabled = 'FALSE'.
             ENDIF.
         CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
               cx_crm_genil_model_error.
           RETURN.
       ENDTRY.
    endmethod.

    Hi,
    LCSTATUS is not an attribute of the BTADMINH structure. It is read using the relation to the status object
    BTADMINH-> BTHeaderStatusSet-> BTStatusHCurrent-> ACT_STATUS.
    Try reading the ACT_STATUS of object BTStatus as given below.
            data: coll   type ref to if_bol_entity_col.
           data: entity type ref to cl_crm_bol_entity,
                         lv_act_status TYPE string.
           entity ?= current.                                                               "BTADMINH entity.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTHeaderStatusSet' ).    "#EC NOTEXT
           current = coll->get_current( ).
            entity ?= current.
           coll = entity->get_related_entities(
                    iv_relation_name = 'BTStatusHCurrent' ).     "#EC NOTEXT
           current = coll->get_current( ).
            try.
           lv_act_status = current->if_bol_bo_property_access~GET_PROPERTY_AS_STRING(  'ACT_STATUS' ).
             catch cx_crm_cic_parameter_error.
           endtry.
    Regards JP

  • Web Dynpro & Adobe Interactive Forms - how to update the context node

    Hi Experts,
    I got a WD Component with some context nodes that are mapped to some views and are filled in this views. These context nodes are the dataSource for the Interactive Forms. These forms are embedded in a view by UIElement Interactive Forms.
    My problem is, everytime when I change the structure of the context nodes (i.e. there's an additional attribute necessary), I have to design new forms to get the context nodes linked to the form. My existing forms cannot handle updated context nodes.
    The change in the context node is displayed on web dynpro side, in the dataSource view in UIElement property. But in TA sfp there is the old context node structure displayed without any change (i.e. in number of attributes).
    My forms' layout type is ZCI Layout the interface is based on XML.
    How can I easily update the forms' context node structure without creating new forms every time?
    Thanks in advance,
    Tan

    ok, got it.
    by double clicking on templateSource in UIElement properties the interface can be updated.
    Regards from Murphy's Law.
    Tan

  • Field Currency of Context Node BTADMINH - How to set default

    I've got a field called currency for context node BTADMINH for UI Component BT115QH_SLSQ.
    This component and view and context node are all enhanced.
    This currency field takes values such as USD, EUR, etc (currency values for dollar amount).
    How can I default this field for instance so that when a new sales quotation is created that this field
    is set to USD by default.
    It doesnt look like I can use the BADI : BADI_CRM_BP_UIU_DEFAULTS or can I ?

    Ok If I redefine GET_CURRENCY I can change this value but I would like to call the super class implementation before this:
    method GET_CURRENCY.
    *CALL METHOD SUPER->GET_CURRENCY.
    *  EXPORTING
    *    ATTRIBUTE_PATH =
    **    ITERATOR       =
    *  RECEIVING
    *    VALUE          =
      data: current type ref to if_bol_bo_property_access.
      data: dref    type ref to data.
      value = space.
      if iterator is bound.
        current = iterator->get_current( ).
      else.
        current = collection_wrapper->get_current( ).
      endif.
      try.
          data: coll   type ref to if_bol_entity_col.
          data: entity type ref to cl_crm_bol_entity.
          entity ?= current.
          coll = entity->get_related_entities(
                   iv_relation_name = 'BTHeaderPricingSet' ).   "#EC NOTEXT
          current = coll->get_current( ).
          if current is not bound.
            if entity->is_locked( ) eq abap_true.
              current = entity->create_related_entity(
             iv_relation_name = 'BTHeaderPricingSet' ).         "#EC NOTEXT
              if not current is bound.
                return.
              endif.
            endif.
          endif.
          try.
              dref = current->get_property( 'CURRENCY' ).       "#EC NOTEXT
            catch cx_crm_cic_parameter_error.
          endtry.
        catch cx_sy_ref_is_initial cx_sy_move_cast_error
              cx_crm_genil_model_error.
          return.
      endtry.
      if dref is not bound.
        value = space.
        return.
      endif.
      try.
          value = if_bsp_model_util~convert_to_string( data_ref = dref
                                      attribute_path = attribute_path ).
    "NOTE I ADDED THIS PART, IT WAS NOT PART OF THE SUPER CLASS....
          if value eq ''.
              VALUE = 'USD'.
          endif.
        catch cx_bsp_conv_illegal_ref.
          field-symbols: <l_data> type data.
          assign dref->* to <l_data>.
          concatenate <l_data> '-CURR/QUANT CONV FAILED-' into value
                      separated by space.                       "#EC NOTEXT
        catch cx_root.
          value = '-CONVERSION FAILED-'.                        "#EC NOTEXT
      endtry.
    endmethod.
    Notice I added the part at the bottom that says:
    if value eq ''.
              VALUE = 'USD'.
    endif.
    This works 100% BUT...it forces me to copy the SUPER class implementation and modify within this function, but I dont want to copy super class, I want to call super class then ADD my code....
    That way if SAP does perform any updates in the SUPER class it wont mess anything up.
    But as you see it says:
    *CALL METHOD SUPER->GET_CURRENCY.
    EXPORTING
       ATTRIBUTE_PATH =
       ITERATOR       =
    RECEIVING
       VALUE          =
    So what do I need to do to call SUPER->GET_CURRENCY.
    What value should I assign to attribute path ?
    iterator?
    and receiving value?
    Basically all I want to say in the redefintion of the GET_CURRENCY Method is like so:
    CALL METHOD SUPER->Get_Currency
    If Value = ' '.
    "no value so just assign it to USD
    Value = 'USD'
    End if.
    Edited by: Hermiz Jon on Jan 11, 2011 10:04 PM

  • How to read the context node of used component?

    Hi,
    I have component called : SRQM_INCIDENT_H. This component has used component - BTSTATUS.
    Now, I need to read the context node of the BTSTATUS/UserStatus in GET Methods of Context node in SRQM_INCIDENT_H.
    Can you plese help me out.
    Thanks,
    Sandeep

    The component usages can be accessed from the component controller
    You should however assure that the context node is present in comp controlelr of the used component.View context nodes cannot be accessed.
    if not ,then you need to goto the component BTSTATUS ,add the context node  explicitly to comp controller,and do correct bindings to the view context node.
    Once you add the context node to the com controller,yo also need to expose it.
    go to runtime repository->component_interface->interface_controller->context->right click and select ADD CONTEXT NODE, and add you newly creatde context ndoe of comp contorller here.
    Now you cann access it using the code below in your comp SRQM_INCIDENT_H
    data:lr_comp_controller type ref to <ur comp controller class>lr_comp_controller ?= me->comp_controller.
        lr_comp_usage ?= lr_comp_controller->get_component_usage( iv_usage_name = '<name of the comp usage as in runtime repository' ).
        CHECK lr_comp_usage IS NOT INITIAL.
        lr_cnode ?= lr_comp_usage->get_context_node( iv_cnode_name = '<the required context node name>' ).
    Suvidha

  • Reading the Context Node in the same Component

    Dear Gurus,
    I have made enhancement to standard view and functionality is working fine.
    Now i need to read the different context node (Different view) from the same component.
    I try to do the way Webdynrpo read the context node  but here there is Wizard and i stucked :-(.
    Can you plz suggest or post small code to read context node.
    Regards.
    ****Poorna****

    Hi,
    If those two views are assinged to one viewset in runtime repositoty, you can read the secod view by following code:
    lv_viewname = me->get_viewarea_content( 'Upper' ).      " here(me =view1)                               
      IF lv_viewname IS NOT INITIAL.
        lr_viewctrl = me->get_subcontroller_by_viewname( lv_viewname ).
        IF lr_viewctrl IS BOUND.
    from here you can read the context nodes.
    Regards,
    S Reddy

  • Retrieve data from other context node within the same context

    Hi Experts,
    I want to redefine method BUILD_TABLE for a table context node and I need to access data from another context node within the same context. I have looked through the methods of class CL_BSP_WD_CONTEXT_NODE_TV but could not find a mean of retrieving the other context nodes.
    Any ideas?
    Thanks a lot. Your help is appreciated.
    Cheers,
    Jens

    Hi Jens,
    Check this [wiki|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=201066680] it should be helpful.
    Regards,
    Shobhit

  • Need status from other Context-Node

    Hello,
    I need the status "STRUCT.ACT_STATUS" from context-node "BTSTATUS" to fill the value help of a new field "STRUCT.ZZORDERADM_H0121" in context-node "BTADMINH" in method "GET_V_ZZORDERADM_H0121". I don't know how to do this.
    Component: BT111H_OPPT
    View: BT111H_OPPT/Details
    Any ideas?
    Thank you,
    Ole.

    Hi,
    see the example code here:
    data: lr_adminh type ref to cl_crm_bol_entity,
          lr_currentstatus type ref to cl_crm_bol_entity,
          lr_btstatush type ref to cl_crm_bol_entity,
          lv_status type string.
         try.
            lr_adminh ?= collection_wrapper->get_current( ).
            lr_btstatush ?= lr_adminh->get_related_entity( 'BTHeaderStatusSet' ).
            lr_currentstatus ?= lr_btstatush->get_related_entity( 'BTStatusHCurrent' ).
            if lr_currentstatus is bound.
              lv_status = lr_currentstatus->get_property_as_string( 'ACT_STATUS' ).
            endif.
         catch cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
          endtry.
    regards
    Ismail

Maybe you are looking for

  • 2 types of communication method assigned to 1 Vendor Master Record?

    Hi, Do you know if it is possible to have 2 different types of communication methods assigned to 1 vendor master record?  i.e. I want to be able to send out remittance advices via email but send the purchase orders via XML?  The XML is the primary co

  • App upadating geting error

    am using iphone 5 running iOS 7.0.4 , getting error message while updating apps from apps store..again and again..i cant download apps too..what u have to do?help me please....

  • Search process

    Hi all, Can anyone tell me how to create a fuzzy search help for a field and how to activate search method selection and cascading search. Thanks Sandeep

  • 2.1 - 2.0.2

    Hi Guys I cant take not having 3g anymore, so is there anyway of reverting back to 2.0.2 version? 2.1 Killed my 3g and now any application or system that uses it has become useless. Whenever I try to do something 3g drops to edge which is about as qu

  • Getting iTunes sharing error when trying to share iPhoto journals?

    I am trying to get information from my iPad onto my macair. I have about 12 iPhoto journals on the iPad I am trying to export to the mac as html files. I successfully did 3, but now I am getting an iTunes sharing error, it says ''there is not enough