Duplicate R/3 custom requirement in IPC  -- z table and comm. structure

Dom,
The ZSITCATPRI has composit key of:
MANDT, VKORG, MTPOS, KSCHL, PSTYV, KOBED.  So the condition Type is part of the primary key. 
The records in ZSITCATPRI table has KOBED=000 (no requirement), 002 or 022 (standard SAP requirement, I see them in the SAPStandardExit.checkRequirement(), I don't need to worry about these requirement, right?).  Should I code for 000 in the switch statement in checkRequirement(), thinking return simply false?
I am not sure how to run the field catalog transaction code /SAPCND/CTFC, we seem unable to directly run it?  With double checking, we are certain that ZZPSTYV is added to the communication structure (Item), but ZZKSCHL and ZZKOBED are not yet, but my middleware colleague is working on adding these fields to the communication structure now.
Your previous posting asked "Now, what is immediately apparent here is that these routines must be coded and available. I am not convinced that all the preparation work has been done by your colleagues.
In particular, I am interested by this Z table as one of the key fields is Condition Type. I don't know how they can provide this in the communication structure as the communication structure is at pricing document level, whereas Condition Type is at pricing step level."  Looking at the key structure of the ZSITCATPRI  table, do you still think our design would pose problems?
also, I noticed that the switch statements in the determinRelevantAttributesForRequirement() method has case 701 for both header and item, why 701? 
Appreciate,
Yanhui

Hi Yanhui
-> If you are only using standard routines, that's great. You are right, you need to explicitly check for the 000.
-> You can access the field catalog in the IMG, or by typing /n/SAPCND/CTFC in the command box.
-> You can't provide KSCHL in the communication structure as that is at item level. There is n condition types to 1 item.
-> 701 is probably from my cut'n'paste! You won't be able to just insert my code and compile - it's just meant as a starting point. Change it to your routine number.
Cheers
Dom

Similar Messages

  • Add Custom field of a Z Table in Search structure of Interaction History

    Hi,
    I am trying to add a field in the IC Interaction History. I have enhanced the BOL structure for BTQuery10 and displayed the field in the Web UI. I have implemented the  BADI CRM_RF_SEARCH_EEW, Added entry to CRMC_REPDY for the field.
    But when i enter any value in the Field it is not executing the BADI.  I tried with the Break Point but it has not executed the BADI.
    Please help how to add a Custom field of a Z Table in the Search structure of Interaction History.
    Regards,
    Rajender

    Hi Rajendra,
    You can try this approach.
    You can redefine the genil CL_CRM_BTIL->get_query_dynamic_result method (oneorder) and write the logic only for required object else all the one order objects will be affected.
    Inside the genil modify the search parameters to include additional object id's which corresponds to custom search parameter.
    Check the below logic which is used for activity search based on custom field, in your case modify it with the interaction history object details. Logic is to fetch all the one order object guids based on custom search( via select on custom table) and pass it as input parameter in search.
    DATA :   it_selection_parameters1   LIKE         it_selection_parameters,
                    ls_selection_parameters    LIKE LINE OF it_selection_parameters,
                    ls_selection_param         LIKE LINE OF it_selection_parameters1,
                    lv_attr                    TYPE name_komp.
      DATA:   lt_orderadm_h       TYPE          crmt_orderadm_h_wrkt,
                   it_act_guids        TYPE          crmt_object_guid_tab,
                   lt_requested_obj    TYPE          crmt_object_name_tab,
                   srch_str            TYPE          c                 LENGTH 40,
                  gv_activity_h       TYPE          crmt_object_name  VALUE 'ACTIVITY_H',
                  ls_orderadm_h       LIKE LINE OF  lt_orderadm_h.
    it_selection_parameters1[] = it_selection_parameters[].
      IF iv_query_name EQ 'BTQuery1O'.
        LOOP AT it_selection_parameters INTO ls_selection_parameters.
          CASE ls_selection_parameters-attr_name.
             REPLACE ALL OCCURRENCES OF '*' IN srch_str WITH '%'.
              srch_str = ls_selection_parameters-low .
              IF srch_str CA '%'.
                SELECT ref_guid
                     FROM "Ztable"
                     INTO TABLE it_act_guids
                     WHERE order_typeg LIKE srch_str .
              ELSE.
                SELECT ref_guid
                    FROM  "Ztable"
                    INTO TABLE it_act_guids
                    WHERE order_typeg = srch_str.
              ENDIF.
              INSERT  gv_activity_h  INTO TABLE lt_requested_obj.
              CALL FUNCTION 'CRM_ORDER_READ'
                EXPORTING
                  it_header_guid       = it_act_guids
                  it_requested_objects = lt_requested_obj
                IMPORTING
                  et_orderadm_h        = lt_orderadm_h
                EXCEPTIONS
                  document_not_found   = 1
                  error_occurred       = 2
                  document_locked      = 3
                  no_change_authority  = 4
                  no_display_authority = 5
                  no_change_allowed    = 6
                  OTHERS               = 7.
              IF sy-subrc NE 0.
              ENDIF.
              IF lt_orderadm_h IS NOT INITIAL.
                LOOP AT lt_orderadm_h  INTO ls_orderadm_h.
                  ls_selection_param-attr_name = 'OBJECT_ID'.
                  ls_selection_param-sign   = 'I'.
                  ls_selection_param-option = 'EQ'.
                  ls_selection_param-low    = ls_orderadm_h-object_id.
                  ls_selection_param-high   = ''.
                  IF sy-tabix = 1.
                    DELETE it_selection_parameters1 WHERE attr_name = 'Zttarname'.
                  ENDIF.
                  APPEND ls_selection_param TO it_selection_parameters1.
                  CLEAR:  ls_orderadm_h.
                ENDLOOP.
              ELSE.
                RETURN.
              ENDIF.
      ENDCASE.
        ENDLOOP.
      ENDIF.
      CALL METHOD super->if_genil_appl_intlay~get_dynamic_query_result
        EXPORTING
          iv_query_name           = iv_query_name
          is_query_parameters     = is_query_parameters
          it_selection_parameters = it_selection_parameters1
          iv_root_list            = iv_root_list.
    Hope this helps.
    Cheers,
    Sumit Mittal

  • Newbie: What UIcomponents are required to create my table and how?

    Hi,
    ** Not the CODE, I just want roughly what components need and how is the mechanism in JSF.**
    Sorry, I really have no idea.
    Meal Option: Beef, Chicken, Fish
    | Name | Morning | Lunch | Dinner |
    | Peter | | | |
    | Mary | | | |
    I want to write a table, if Peter login, he can select which one of meal option he want to eat in every meal. But he cannot select the options for Mary, and others rows/selections are fade. And other people can add themselves in the table.
    Using UISelectOne seems ugly. Do I have other option?
    How to fade the selection?
    Where can I get some calendar component? So that people can select specific date.

    I am not sure about the functional requirement, but I can at least tell that you can use either h:dataTable or h:panelGrid for a tabular display.
    About the calendar component, at least Tomahawk and RichFaces have one.

  • How to create a SCCM 2012 Custom Requirement for OS Architecture?

    Hey guys,
    I'm using the application model to deploy several 32-Bit and 64-Bit apps and I’m looking to simplify things a bit. Right now I'm using the built-in requirements to specify the
    supported OS Architectures for my 32-Bit/64-Bit only applications. This is a bit tedious as it requires me to check every single OS type I want an application to support (i.e. for 64-Bit stuff I check Windows 7 x64, Windows 8.1 x64, Windows Server 2008 R2
    x64, Windows Server R2 x64 and vice versa for 32-Bit). Really all I want is some sort of requirement that lets me specify "Install for all 64-Bit OSes" or "Install for all 32-Bit OSes" depending upon the application in question.
    I’ve been looking at some of the options for a custom requirement and I’m pretty sure I can use that piece to achieve the results I want, I just need to determine what condition
    I need to test against to make it work. Based on what I’ve read I’m thinking that checking the following registry key should work:
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
    KEY: PROCESSOR_ARCHITECTURE
    But I am concerned it could produce the wring result when you have a 32-Bit OS installed on a machine with a 64-Bit capable processor (I have a lot of those in my environment). I also have some older XP/2003 machines to support as well and I’m concerned
    that this method might not work for those systems. Has anyone here faced this same issue and come up with a solution that is relatively foolproof and (if so) would you mind sharing your solution? 

    Create a custom global condition called "OS Architecture x64" and use it as an existential rule.  You are either x64 or are not x64 (implying x86... you'll be on the next version of ConfigMgr when 128-bit Windows comes out...).
    For the rule, use a WQL query to look at the architecture of the OS.
    Win32_OperatingSystem
    OSArchitecture = '64-bit'
    I hope that helps!
    Nash
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you found a bug or want the product to work differently,
    share your feedback.
    <-- If this post was helpful, please click the up arrow or propose as answer.
    See that's why I posted here. I knew somebody out there had to have come up with a good solution for this and I have to say Nash this is indeed very clever and now that you spelled it out for me also a total no-brainer. Either it is 64-Bit or it isn't!
    That's really all I need to know for my deployment. I was working on two conditions (a 32-Bit and a 64-bit) when (really) all I needed was one. Very very slick. I love it man, thanks for sharing!

  • Different between Customer requirement and Sales Order.

    Hi, can any expert explain the Different between Customer requirement and Sales Order to me?
    Any help would be appreciated.
    Regards,
    Tiger

    Hi...
    The Customer sents the requirement ( Like specially manufactured products as per the customer specifications) which can be entered in the form an Inquiry. With ref. to this inquiry a quotation will be sent to the customer. The customer places an order thru document with reference to this quotation.
    Now the company processes the order and manufactures the Product and delivers the Product to the Customer and recieves the payment.
    Hope this clears the query
    Reward points if found usefull
    regards
    Sajeev

  • Difference between Activation Dev and Customer Requirement dev system

    Hi  All
    I am going to install Baseline Packages 
    on ECC 6 EHP 4.
    i am having confusation that why we need activation development system and customer requirement development system in our sap landscape...
    As per sap document its mention that we need four system landscape......
    i am have gone through this  note 1426866.
    so please help me.........
    Please someone help me it is critical issue .. i am waiting for your valueable reply.....
    Edited by: amkum82 on Oct 11, 2010 1:47 PM

    Hi
    Baseline package includes BC sets with preconfigured scenarios as you might know. While customers requirements may be require certain additional configuration,customizing or enhancments . So in implementation scenario to track and maintain Baseline configuration intact for reference and future use ,the Baseline activation system is used.
    While the client requirement system will be a development system  for config and testing of all requirements arising out of project.
    I hope this helps
    Regards
    Mandar

  • Customer reports-Table and field required

    Hi experts,
    We have customized on customer reports.We raise billing in USD4,in INR and in other currency.At present,they can get reports in INR,USD4 and other currency separately.Now my user requires,the whole reports in USD4,that means all other currencies tp be converted in USD4.Please advise in which table and field for the said matter
    Regards,
    Samaar

    You can use TCURR table. Program should get USD4 amount and then convert amount to different currencies using either historical excahnge rate or current exchange rate in TCURR table.

  • Can I use the customer requirement number as sales order in 'Goods issue MB

    Can I use the customer requirement number as sales order in 'Goods issue MB1A'?
    Thanks,
    Tiger

    Why I used the customer requirement in MB1A as the sales order, Update was terminated.
    Thanks,
    Tiger

  • Re: Execution of Customer requirement when order start was in the past

    When I adopted lead time scheduling I received a customer requirement with a date, but the order sart date is in the past, now if I want to meet the customer requirement scheduled particularly on the date how I can I reduce the process. Is there any possibility, if so how?

    Dear,
    First in SPRO- production >MRP>planning>Scheduling and Capacity Parameters>Parameters for Determining the Basic Dates
    For you plant in question the tick - *start in past allowed is unticked*
    You can make the system to schedule from today by changing the customising setting -->in OPU5 for combination of plant and order type() and production scheduler()
    see that start in past is blank.
    One more way is like one of our fellow memmebr told, reduction strg for whcih you need to do the setting in reduction in the same transaction code.
    reduction type = all the oprations are reduced
    maximum reduction level - 6
    % reduction in flots = give % reduction in floats i.e. Red. of floats before and after production (%) level-1 to level 6 i.e. each blank space is one level you can give like 10, 20, 30, 50, 70, 90...
    Then schedule the order and see the difference.
    For production order i.e.if production order is already created, and you want to change thye setting then youhave to the setting in OPU3
    Then OPJS define the reduction strtegy and give your % reduction for each item like move time, spliting and overlap

  • Planned Order for stock and planned order for customer requirement

    Hello everybody
    I want to make a different, in MD04,   between the planned order for stock and the planned order created for a customer requirement
    Thank for your help

    Hi,
    True planned order are generated for both the cases but the planned order generated for sales order will have sales order number in the below column and for stock will show independent requirement. Mainly no sales order reference will be there for make to stock scenario.
    Hope it will help.
    Regards,
    Alok Tiwari

  • BAPI for customer requirements

    Is there any BAPIs to create,change and delete customer requirements? Thanks in advance!

    Hello Prasanna,
    Go to transaction SE37, put in 'BAPI_INQUIRY_CREATEFROMDATA2' and use menu entry
    - Goto - Documentation - Function Module Documentation
    There you can find a description of the various parameters for that BAPI.
    Regards,
    Michael

  • Customer Requirement...

    Hi,
    i use OBIEE at work, and I have a customer requirement, but i don't know how satisfy it. Now I go to explain my situation.
    I've 3 tables:
    Entity
    ID Description
    ORG_GER Country Germany
    ORG_ESP Country lberica
    ORG_POR Country Portugal
    ORG_ESPANA Country Spain
    Company
    ID Description
    002 Spain
    004 Portugal
    024 Germany
    Entity_Relationship
    Child Parent Company
    ORG_GER ORG_GER 024
    ORG_ESPANA ORG_ESP 002
    ORG_POR ORG_ESP 004
    Entity Relationship table links Entity table to Company Table using Company Field
    Now I've 2 dasboard pages. First page has a prompt which retrieves all Entities from Entity table using following query:
    SELECT Entity.Description from Prototype
    Second page has a prompt which retrieves all Companies from Company table using following query:
    SELECT Company.Description from Prototype.
    My requirement is:
    If i access directly to second page, prompt must show as DEFAULT value any one Company from the table (say the first: Spain, but it can be even Portugal or Germany).
    Otherwhise if I access to second page, passing through first page, prompt on second page must show as DEFAULT value any one Company which is child of Entity selected on first prompt.
    For example:
    If i select on first prompt as Entity: Country Iberica (ID: ORG_ESP), second prompt must show as DEFAULT Value or Spain or Portugal. In fact as you can see on Entity Relationship table Country Iberica (ID: ORG_ESP) has as associated companies 002 and 004 corresponding to Companies Spain and Portugal on table Company.
    If i select on first prompt as Entity: Country Germany (ID: ORG_GER), second prompt must show as DEFAULT Value Germany
    I've tried to insert in DEFAULT section of my prompt as SQL Results many queries but no one works.
    Can you help me?
    Thanks

    Hi Phani,
    not exactly. I want that, IF I ACCESS DIRECTLY TO SECOND DASHBOARD PAGE, second prompt (on second dashboard page) shows as default value any one Company in the table Company (it can be the first, the second, the third. It is not important) . Otherwise, IF I ACCESS ON FIRST PAGE AND SELECT AN ENTITY AND THEN I ACCESS TO SECOND DASHBOARD PAGE, second prompt must show as default value all companies child of entity selected on first prompt. The query that retrieves childs is the following:
    select Company."Description" from Prototype where Company."ID" IN (Select Entity_Relationship.Company from Prototype where Entity_Relationship.Parent IN (Select Entity. "ID" from Prototype where Entity.Description ='@{Entity}'))
    where @{Entity} is a presentation variable which contains Entity selected by user on first prompt.
    However as i said in my previous post a presentation variable in DEFAULT section of a prompt seems not work.
    Thanks

  • Individual customer requirements and sales order requirements

    Hello Gurus,
    Can anybody please explain me the difference between individual customer requirements and sales order requirements.
    Please clarify
    Thanks,
    Nilesh

    Hi,
    *Individual Customer Requirement *
    Generally this is the material is produced against a Sales order,
    They will have the Stock Categroy as E as special Stock.
    They can be consumed only by the Relevant Sales order.
    Mostly in Case of the MTO this is applicable.
    Sales order Requirement.
    This is again Sales requirements.
    But it can consume any stock,
    the material is not produced against any specific sales order ,
    This is mostly in the MTS Scenario.
    Kindly let me know your feedback.
    Reg
    dsk
    Edited by: DSk on Dec 7, 2010 3:30 PM

  • Prevent message "The Customer Requires Complete Delivery. Message No.V1293

    Hi Friends,
    I want to prevent the message "Customer requires cmplete delivery" Message No. V1293 from  poping up for complete deliveries. I know that for complete deliveries this message will pop up but is there anyway i can prevent this message from poping up for all unconfirmed items. As it is an inconvinience for the users to click OK for every unconfirmed items and order contains more than 500 line items.
    Can anyone please help.
    Regards,
    Wasim.

    HI Wasim,
    Just go to SE91 put the Message Class V1 there & in No. field 293 & go for
    where used in then select only Program >ok then Program will come select the Program > double click, you will l find the message with the Description.
    Now with help of ABAP with just comment on these both the messages (i.e. System will ignore these) afterwards you will not face that message again in your sales order.
    Hope this will helps you
    Dasaradha

  • Customer wants to see Discount Field and Quantity field in Sales order Form

    Hi Gurus,
    Highly appreciate if you provide the solution for below issue:
    My customer requirement is to see Discount field in sales order lines screen...They want to know how much percentage of discount they are giving to customer, if they want to modify for respective line they modify in that field.
    Standard functionality discount field is NOT there in SO lines for because they manual enter discount in SO form, system should calculate Discounted price.
    One more required if they enter Item code, able to see available quantity bottom of the form Sub inventory wise, Availability, resealable.
    Current standard functionality supports - Click Availability button to check the availability..Its very difficult for them to check for each and every line item, is there any functionality to support this issue.
    Thanks
    Satti

    Hi,
    Both of your requirements should be customised.
    There is no standard functionality which attains your requirements.
    For my present project, we have customised 2 seperate reports, one which shows the availability of the items in subinventory and locator.
    Also a report which shows discount for all the lines and for the entire order.
    Thanks
    -Arif.

Maybe you are looking for