Custom Field-Infoset

Hi,
I am creating an Infoset using PCH database. My requirement is that I am creating a Custom Field in Infoset and I need to write a code for that Custom Field.  The requirement is 
Pick the value from field HRP1001-SOBID (table name is HRP1001) and go to table USER_ADDR and in field USER_ADDR-BNAME (table name is USER_ADDR) enter the Value found in HRP1001-SOBID and subsequently pick the value from field USER_ADDR-NAME_TEXTC (table name is USER_ADDR)
I need to display the value in field USER_ADDR-NAME_TEXTC in my Query.
Please Help.
Regards,
Ghanapriya

Hi,
Is this a follow up question to your previous question regarding SHORT and STEXT? Looks like you need to get the name of the employee in a position. Your easiest route is to get it from PA0001-ENAME once you have obtained SOBID from 008 relationship.
Also, you can only pass a user name (typically subtype 0001 on infotype 0105) in USER_ADDR-BNAME and SOBID will not have that so your logic would most likely not work.
Please try using PA0001-ENAME and let us know.
Hope this helps.
Donnie

Similar Messages

  • Using custom fields of Infoset as Selection Criteria in Query Reporting

    Hi Experts,
    I have created one Infoset based on LDB PNPCE and added some custom fields to it. Coding has been done for the custom fields.
    But these additional custom fields are not available as selection criteria while creating the query.
    Can you please tell me how to use the custom fields as selection criteria?
    Reply soon
    Thanks in Advance.
    Raveesh

    Hello Guys,
    I just noticed that it is possible to select custom fields as selection criteria in case of SAP Query,
    but NOT is case of Infoset(Adhoc) query.
    Can anyone tell me the whether it is possible to select the custom fields as Selection Criteria in case of Infoset Query?
    Thanks in Advance,
    Raveesh

  • Custom Field in Infoset Query missing in Infoset

    Hi Everyone,
    I'm in a puzzle and I hope someone can help me. Basically I need to maintain an existing infoset Query - While looking through the query and it's related Infoset I noticed there is a custom field appearing in the query (SQ01) but this field is nowhere to be seen in the Infoset (SQ02) - I'm just wondering how can this be ?
    The same custom field exists in another Infoset - is it therefore possible to build a query using an infoset while pulling in fields from another ?
    I would appreciate any thoughts on this matter as I'm in a very confused way over this.
    Thanks in advance
    Kind Regards
    Damien
    Edited by: Damien Kesle on Jul 22, 2009 3:48 PM

    Hi Damien Kesle ,
    There are ways by which you can create fields ( they are called Local fields ) in the Query too.
    Please see , whether the custom field you are asking is present in the Query.
    Even then , just to confirm that your said field does not exist in the infoset, follow the steps.
    Go to SQ02, put the name of your Infoset and click on tab "Description ".
    Then do a Ctrl + F (Find/Search) for the field. If its not there, then you can confirm that the field comes from Query and not Infoset.
    Approach for any further queries.
    Regards,
    Subin John

  • Infoset based on logical database CRC and customer field wrongly calculated

    Hello,
    I'm building an info-set (SQ02) based on logical database CRC. My requirement is to calculate a value based on the start date of the capacity allocated to a work center (KAKO-BEGZT).
    I defined a customer field (named FIELD1) with data type I, defined in R-KAKO_A with the following coding :
    FIELD1 = R-KAKO_A + 100.
    After having built the query (SQ01), the field returns correctly the value for FIELD1 only if an interval is defined in the capacity of the work center. Without that, FIELD1 is always null.
    Can you help ?
    Thank you

    capacity header data is linked to table KAZY (interval) - if there is no relevant record there, your field1 gets nothing

  • Alignment and restriction of Custom field in SAP query report

    Hi Experts,
    I have one custom field in query report(SQ01) called Amount in local currency which is calculated based on Amount in document currecy * exchange rate.
    But this field values are coming in left alignment instead of right alignment so how i should get in right alignment and second issue is how i can restrict field value to only 2 decimals.
    I tried the below link "http://media.techtarget.com/searchSAP/downloads/SAP_Query_C7.pdf" but the steps they mentioned are not appearing in SQ01 for example in that link they mentioned to click Basic List option for advanced steps but when i click i goes directly to field list with field groups on left pane
    Please provide solution for this.
    Thanks&Regards,
    narasimha

    Hello narasimha,
    In the Infoset when you create the additional field, enter an existing SAP table field that has type CURR in the parameter labeled LIKE Reference.  For example you can enter BSAK-DMBTR as a value. When you select the additional field in the query, the currency will also show.
    Kind Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Apr 25, 2011 11:27 PM

  • Adhoc query custom field selection

    Hi Experts,
    In adhoc query, we have added a custom field and we find that it is giving correct output.  However, we want to make the "selection" box appear and we don't know how to do it.  Would you have instructions?
    If we add standard/ready-made fields to a field group, both the selection and output boxes are already available but if we copy the standard to make a custom field, only the output box is available.

    Hi,
    Where do we find this customizing field we need to select? We have tried accessing sq01 and changed a query we have created. We clicked on the basic list button and checked the checkboxes for list field and selection field.  When we got to infoset query, the selection checkbox is still missing.  Are we checking the right path?  The infoset is also missing that checkbox.
    We also got a suggestion here that maybe the problem is on the "extras" tab in SQ02 - that our field should have an entry there.

  • Custom Reports and Custom Fields

    When creating a custom report, it seems the only way to include custom fields and Extend CRM database fields is to include ALL of them in the Filter Criteria > Custom CRM Form Filter section. The business owner wants me to create a custom report that includes only a few custom fields but I'm not seeing how this is possible without including all of them from a specific web form.
    Does anybody have suggestions as to how I can accomplish this?

    Hi Rajeev,
    To the best of My knowledge i know 3 process to Generate Report in E-Recruitment Pool.
    1) Create an Infoset in SQ02 and assign the Role/UserGroup assignment as ERC_RECR and create Query in SQ01, Combining your E-Rec table & OM tables with variant and generate, you can see the Report in E-Rec(Login as Recruiter)->Reporting->Reporting Select your Custom Report and Execute.
    2) Create a Custom Report with Transaction Code.
        Create a IView in Portal and call the Transaction this is the
         job of portal adminstrator.
    3) Make an RFC (Remote Function Call) enabled Function Module with Importing & export parameters as per client requirements.
    Code the logic and Retrive in Internal table in exporting parameter.
    now Portal Job
    Portal administrator will create a WebDynpro front end application for report selections screen or it can be any other portal development tool, for good look and feel, he will just call your RFC Function Module, by passing import parameters for fetching the internal table data he will display report on portal.
    Rajeev,
    standard process is via SAP Queries you only define the Querry with variant as defaulting the selections screen what ever the values in the backend,
    only you select the report name from portal E-Rec and execute report their wont be any selections screen will be shown.
    Coming to I-View yes what ever the report selections screen is their in backend it will be appering the same.
    webdynpro your will your can desing like any thing.
    coming to number colums not very sure.
    yes create only OM reports also on E-Rec.
    Cheer Up dear, if this resolves.
    Thanks & regards
    Ravi Kiran Sabba

  • Populating custom field in an existing sap query

    HI,
    I am making changes to existing query . Query already had a qty field, now I need to display the % of qty delivered for every
    vendor  as a subtotal text for every vendor.
    I added the custom field to query and can display it as subtotal text. But I am not able to populate the value into it.
    Because, When I sort by Qty and sum by Qty, I am getting value. Now I need to divide the sum of qty / number of items, which i dont get until I display the output, So my subtotal text field is always zero.
    I
    I debugged the program generated by query, it is using select--endselect and putting in %dbtab(which is not defined in query) .
    To get the final value, i cannot change standard code generated from Query/Infoset and add teh LOOP ..ENDLOOP and make At new logic for vendor.
    Any suggestion on calculating the % of delivered qty,..
    Thanks

    if your query is based on an infoset, you just have to put the formula in code of infoset

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Error while adding custom fields in ERP quotation

    I am trying to add custom fields to ERP quotation. So picked up ERP_H and added view BTCUSTOMER_H/CustomerH to its views. I have added the relevant custom fields to BTCUSTOMER_H/CustomerH. Now when I try displaying this, I get the following error..
    Context generation failed in view BTCUSTOMER_H/CustomerH of UI Component ERP_H
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Initialization of view BTCUSTOMER_H/CustomerH of UI Component ERP_H failed
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Cannot display view ERP_H/HeaderOverviewpage of UI Component ERP_H
    An exception has occurred Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - There is no node text 'BTAdminH' in controller ''. 
    Method:  CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING 
    Source Text Row:  39
    Window ERP_H/MainWindow of UI Component ERP_H cannot be displayed
    An exception has occurred Exception Class  CX_BSP_WD_RUNTIME_ERROR - View BTCUSTOMER_H/CustomerH in component ERP_H could not be bound 
    Method:  CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW 
    Source Text Row:  165
    I have no prior experiance in UI development. Could someone explain me this error and how to fix this?
    Regards,
    Amar.

    closing this unresolved

  • How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data

    Hi Experts,
    For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).
    1) In next step, Where Where I have to add this field, apart from appending the same custom field in EKKO/EKPO table or any other related table; Extending the corresponding IDOC or creating a new Custom ÍDOC type? like What about BAPI?
    2) If I got a text file with the data (including the data for this custom_field_1 too) and I have been asked to load it into SAP, then, I decided to use BAPI (say, BAPI_PO_CREATE or CREATE1) to create the data, So, How to handle this custom field, I mean, In which BAPI structure I have to pass this custom_field_1 data? ( Iguess, for some BAPIs EXTENSIONIN structures are provided, sorry if am wrong!)
    Thank you.
    Edited by: SAP ABAPer on Feb 21, 2009 7:40 PM

    for example if you added field in the  VBAP table  then you can pass the custome field values like below
         move 'BAPE_VBAP' to lwa_extension-structure.
          lwa_bape_vbap-vbeln = lwa_final-vbeln.
          lwa_bape_vbap-posnr = lv_posnr.
          move lwa_final-yyslotid to  lwa_bape_vbap-new custome field.
          move lwa_bape_vbap to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
          move 'BAPE_VBAPX' to lwa_extension-structure.
          lwa_bape_vbapx-vbeln = lwa_final-vbeln.
          lwa_bape_vbapx-posnr = lv_posnr.
          move 'X' to lwa_bape_vbapx--new custome field.
          move lwa_bape_vbapx to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
    call function 'BAPI_SALESORDER_CHANGE'
            exporting
              salesdocument    = strcture
              order_header_inx = strcture
            tables
              order_item_in    =strcture
              order_item_inx   = strcture
              schedule_lines   = strcture
              schedule_linesx  = strcture
              extensionin      = lt_extension.

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Who has changed the Custom Field value?

    Dears,
    Need to know the information regarding how to fetch that who has changed the Custom field value from PWA/MPP.
    Example:
    There is a PDP (say ProjectInfo):
    There is a Custom Field added to that PDP (say Project Status = In Progress).
    Now for ProjectA, someone has checked out and changed the Custom Field "Project Status" from "In Progress" to "Closed".
    I need to fetch the information regarding who has changed that Custom field.
    In which direction should I move: Event Handlers, PSI???? Any other stuff?
    Thanks & Regards,
    Shravan

    Hi Shravan,
    I'm not a developer but I do know that you can use an event handler pushing the resource name and date in custom fields.
    Another way is to use a 3rd-party tool like
    FluentPro Audit Tool.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Custom field's text not getting displayed in standard report

    Hi All,
    I have a requirement like this .
    There is a Custom field which we have added in a standard FICO report ie S_PL0_86000030 ( G/L Account - Balances ).
    The custom field is added through a report painter , while seeing the config of report painter the custom field is showing the selection text , but when we run this transaction S_PL0_86000030 , the technical name of that field appears in the selection screen .
    For example if the field is ' matnr'  then we give the text as 'Material Number' . Then in the screen this field is getting displayed as Matnr instead of Material Number.
    Please suggest me on this.
    Thanks,
    Sumit

    In transaction GRR2
    Insert->
    selection parameters ->
    take the variable type as >Tesxt varaible for selection parameter
    chosse >material no.
    hope ths helps
    Bhanu

Maybe you are looking for