Add a custom field for Product Allocation

Hi experts,
I have copied S140 to S501 to add a custom field for product allocation.
I have added the custom field in MCVBAKUSR, so it is visible in MCVBAK.
However, I don't know whether I can populate data into custom field. I searched in forum, someone said it can be done in SAP enhancement MCS10001. But it can't work. I have tried to place a break-point in the code, and seems that throughout the order creation and product allocation check, it hasn't get into the codings in enhancement MCS10001.
Can anyone give me some idea on it? Thanks.

You should have simply extended VBAK table. It would've taken care of extending MCVBAK, etc. Then VBAK field would have to be populated in a user exit USEREXIT_CHECK_VBAK in MV45AFZB, when a document is being created/changed.

Similar Messages

  • Replicating Custom Fields for Products in CRM  from ECC

    Hi All,
    I am having difficulty in replicating SAP standard field values from ECC to custom fields for products in CRM. This is what i did:
    1. I created a new settype(ZMASTER_INFO) with a single attribute(ZIND_STD) and added
        this new settype to MAT_HAWA. (As all our materials fall under this material type).
    2. I am looking to map SAP standard field from ECC to this custom field of mine.
        I wrote the code in CRM BADI 
        'ZPRODUCT_CUSTOMER2->MAP_R3_TO_CRM_MATERIAL' with the following code:
    DATA: ls_ZMASTER_INFO TYPE ZMASTER_INFO_maintain.
    DATA: ls_category_bdoc       TYPE COMT_PROD_CAT_REL_MAINTAIN,
          ls_category            TYPE COMT_PROD_CAT_REL,
          lt_categories          TYPE COMT_PROD_CAT_REL_TAB,
          ls_settype             TYPE COMT_settype_ext,
          ls_cat_settype_rel     TYPE COMT_CAT_FRAG_REL,
          lt_cat_settype_rel     TYPE COMT_CAT_FRAG_REL_TAB,
          lt_cat_settype_rel_all TYPE COMT_CAT_FRAG_REL_TAB.
    LOOP AT lt_cat_settype_rel_all INTO ls_cat_settype_rel.
          CALL FUNCTION 'COM_SETTYPE_READ_SINGLE'
            EXPORTING
              IV_SETTYPE_GUID         = ls_cat_settype_rel-frgtype_guid
            IMPORTING
              ES_SETTYPE              = ls_settype
           EXCEPTIONS
             NOT_FOUND               = 1
             NO_IMPORT_VALUES        = 2
             NO_TEXT_FOUND           = 3 .
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      CASE ls_settype-frgtype_id.
          WHEN 'ZMASTER_INFO'.
          ls_ZMASTER_INFO-relation-owner = 'X'.
          ls_ZMASTER_INFO-relation-logsys = cs_product_bdoc-header-com_product-logsys.
          ls_ZMASTER_INFO-data-ZZ0010 = is_mara-STD_DESCR.
          ls_ZMASTER_INFO-DATA_X-ZZ0010 = 'X'.
          APPEND ls_ZMASTER_INFO TO cs_product_bdoc-data-ZMASTER_INFO.
          APPEND ls_settype-FRGTYPE_GUID TO cs_product_bdoc-data-MNT_SETTYPE.
       ENDCASE.
    ENDLOOP.
    Since in ECC i am not having any custom fields i did not write any code in ECC for TPS34 and TBE24. I just wrote this BADI in CRM and using the field S_MARA-STD_DESCR.
    I am not sure if i need to write the code in ECC. COUld anyone please confirm if i need the code in ECC?
    Also in the CRM BADI, lt_cat_settype_rel_all is EMPTY. Not sure how this gets its value.
    Could anyone please suggest if i am missing anything here? Any help is appreciated.
    Thanks,
    Karuna.

    Hi Karuna,
    One more solution is to change the BDoc data content before it hit the Database.
    this can be done in badi: Data_Exchange_badi (if u dont find this try with following search string: xchange)
    In the above mention badi you will find a method which is used to populated the contend jst after bdoc in CRM is being populated by R/3 data.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Add IT0006 custom fields for segment definition E1P0006 basic type HRMD_A06

    Hello!  I am am trying to determine how to bring in our custom fields from IT0006 into our IDOC's for message type HRMD_A basic type HRMD_A06 without performing a custom SAP modification.  I was able to create a new segement definition called Z1P0006 and replace the SAP standard E1P0006 IDOC segment defintion in table T777D for infotyp 0006 to Z1P0006.  However, I receive a message that I must not maintain this IDOC segment manually and instead you must maintain infotypes and their individual elements by using the transactions for processing infotypes: PPCI or PM01 (Infotype copy transaction for personnel administration). 
    Does anyone know of a way to bring in the new custom infotype fields from i.e. reimport the table structure for IT0006 into the segment definition without a custom SAP modificaiton?  I would really appreciate any help on this topic!
    Thanks!
    Holly

    unfortunately, the standard do not provide the infotypes for the HR-TM (Time Management), that
    are between the structures i must send in the other system sap.
    Ok, I have never delt with Time data in HRMD_A. Probably this is the case then
    Ok,now i've checked the filter in BD64 and the tables BDCP2, CDHDR and CDPOS but it seems
    all correct!!
    By checking Filters I mean that confirm if you have added Time Infotypes there (just
    making sure). If data is appearing in BDCP2 that means there is no problem in Change
    pointer creation, Just ruling out possibility.
    Try with an user exit it's a good idea, but why in the PFAL the idoc (with the custom segments)
    is created without problems and in the BD21 no??? This is very strange
    1) Well BD21 uses the Function module (TBDME for HRMD_A) which read change pointers and
    create IDOCs. So now if you have extended Segment you have to add your population code
    here somewhere.
    2) PFAL is Push program, my assimption here is you have wriiten some piece of code to
    populate Additinal segments data here? Otherwise IDOC will not be populated
    automatically.
    Let me know what you think.

  • Search on the custom field in Product doesn't work

    Hello everyone!
    Lately I was configuring additional custom field for product header and succeed. Then I wanted to add this field as a search criteria for product search and I followed help on help.sap.com and note 1026956. Here are the steps I did:
    1. I've extended structures CRMT_PRIL_QUERY_ADVSEARCH_PROD and CRMT_PRIL_QUERY_ADVSEARCH_IOBJ with my custom attribute.
    2. I went to Master Data->Products-> Basic Settings ->Add Attributes to Search Structure and added my custom attribute there.
    3. Then I found out that it's not enough and I should perform additional steps not included in note and help. I did these steps suggested by Shanthala Kudva in thread [Can't enable the extendable set type attributes in product search UI|Can't enable the extendable set type attributes in product search UI;.
    After that I was able to configure UI and see the search criteria, but when I try to search using custom field I get error message: "Search criteria PRODUCT_ANKER.ZCAT_NUMBER in scenario CL_CRM_PRSEARCHSCENARIO_GETLST not included in tool/filter"
    How to find out the reason of this behavior? Did I miss something in configuration?
    P.S. Set type called ZPRODUCT, attribute ZCATNUMBER. In structures appended component called ZCAT_NUMBER with component type ZCATNUMBER. In table CRMC_PRSEA_ATTR the record has the attributename ZCAT_NUMBER, attribute_id ZCATNUMBER. Maybe I messed up with that?
    Regards,
    Alex.

    Hi Alexander,
    I know this is an old post, but currently i am facing the same issue of not being able to see my custom fields in the BSP Component Workbench.
    I tried to follow all steps maintained in SAP Note # 10269656 & 1541480, but no luck.
    Can you please tell me what do you mean by "Should not add the extended attributes directly to Search Structure, as SAP expects the attributes to be in APPEND structure"? Can you please let me know how the values are to be maintained in the Search structure table "CRMC_PRSEA_ATTR", which is also accessed using the IMG Meanu path "Master Data -->  Products --> Basic Settings --> Add Attributes to Search Structure"
    Appreciate your help.
    Suresh Karri

  • How to add a custom field to Ship-to address screen

    Hi all,
    I have to add a custom field for Plant in the Ship-To address subscreen(BBPSC01).
    I have added the field in the program saplbbp_sc_ui_its in screen 310.
    But I think need to write the HTML code/Java script in HTML template to trigger the code from module pool.
    As I am new to HTML/Java script, Can any one please let me know the procedure to follow.
    Thanks,
    Rakesh.

    I have not added the Custom filed in the main screen and added in the Additional data B screen. So closing the message.

  • Adding customized fields for Travel Expenses

    Hi,
    I would like to add some customized fields for user input during the creation of travel expense form.  Is this possible?  If yes, any advise on the steps to create customized fields for data entry of travel expense form?
    Thanks.

    Hi Yvonne ,
    Thank you for the tip , it was helpfull.
    We are using field BUS_REASON "Business Partners", We changed label for data element but is not showed in TRIP transaction we can see it in PR05 transaction.
    How can I change labels for TRIP transacction?
    We did the change in CMOD transaction
    Thanks.

  • Adding custom field to product master general tab

    Hi All,
             i want to add a custom field in Product master creation (commpr01) ,could any one help me out on this !
    Many thanks and Regards.

    Hi
    You can create field using EEWB or follow the following simple process
    1. Create the required field as " attribute" using the tcode COMM_ATTRSET
    2. Assign it to a set type using the same tcode COMM_ATTRSET
    3. Assign this set type to the product category usign the tcode COMM_HIERARCHY in the set type tab and use the view ID as "BASIC"
    The field will then be available to you in the product master to the products with are created with the named product category
    Hope this helps
    Regards
    Rekha Dadwal
    Edited by: Rekha Dadwal on Mar 19, 2008 1:19 PM

  • Add custom field for Item Manufacturer logo?

    Hi All,
    I would like to add a custom field to hold manufacturers logo file names.
    I want to be able to print out Item Price lists by Brand (manufacturer) that display the manufacturers logo at the top of the page. The Price List includes the Item code and description along with List Price and Dealer Cost Price.
    I have prepared a user query with two variables (Manufacturer and Price List) that returns the correct data. I have also prepared a PLD layout that formats the document as expected.....all except for the manufacturer logo.
    Here is the query for the Brand Specific Dealer Price List:
    SELECT T0.[ItemCode], T0.[ItemName], (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6)
    As 'RRP Inc GST', T2.[Price] As 'Dealer Cost Ex GST', T4.[ItmsGrpNam] FROM OITM T0  INNER JOIN OMRC T1 ON
    T0.FirmCode = T1.FirmCode INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OPLN T3 ON
    T2.PriceList = T3.ListNum INNER JOIN OITB T4 ON T0.ItmsGrpCod = T4.ItmsGrpCod WHERE T1.[FirmName] = [%0]
    And  T3.[ListName]  = [%1]
    I hope to be able to add a logo field to the OMRC table (I assume?), and then be able to return that on the PLD layout.
    This would be a perfect result for my requirement as we could print or email formated Brand (manufacturer) specific dealer price lists (with variable price list pricing) on demand.
    Any help would be most appreciated.
    Best regards,
    John

    Hi Gordon,
    SAP B1 2007 A (8.00.234) SP:01 PL:10
    No, I have yet to add the UDF as I am unsure how to do so. I attempted to do this via "User-Defined Fields - Management", but cannot find the OMRC table in the list of available categories to add field data to.
    Best regards,
    John

  • Map Profit Center as custom field to product

    Hi,
    We want to map Profit Center(35 characters) to a custom field in product for some analysis. We want to map it to Custom Attribute 2 (XARLPROA2) this is a 40 character long field.
    We do not want to see this field in Reports in UI. Please let us know is this the right approach or would you suggest some other field to which wecan map Profit Center.
    Regards
    Neel

    Hi Neel
    I am assuming that you are referring to display attribute and not navigation attribute that needs to be added to product. Yes, thats the same as adding an attribute in standard BW way.
    And then, in the SPM UI you can display attributes in the contextual menu of a particular product.
    But if you do need to do analysis on it then on top of adding the attribute, you need to flag it as navigation and then bring it in the following:
    The respective cube(s) 0ASA_C*
    Add it into the multiprovider 0ASA_MP01
    Add it to the Query
    Log into SPM UI and refresh all data sources (make sure that no other users are logged in at that time), log out
    Clear browser cache and log back in
    Create report with that nav att
    Hope that helps!
    Regards
    Rajesh

  • Enabling Quote custom field for External Pricing Response

    Hi All,
    Using UI configuration (adaptation) we are able to define new fields and enable them for standard web services. The result is that they are included in the relevant WSDLs and can be mapped using PI/HCI to equivalent fields in an external system such as SAP ECC.
    Looking at Quote's for example, we have defined a new field at Product Item Line level and have the following services we can enable it for.
    Enabling for the CustomerQuoteRequestExternalSalesDocumentDataOut outbound service adds the field to the External Pricing request part of the resulting WSDL, however it is not enabled for the response which is key to our requirement.
    Is it possible through PDI to enable this field for the inbound equivalent for CustomerQuoteRequestExternalSalesDocumentDataOut??? If not, is it possible to create the field through PDI and enable it that way?
    Thanks
    Indi

    Hi Chandan,
    Thanks for the response.
    The External Pricing interface for Quotes is synchronous so has no IDoc as such. We send some parameters to fetch a price from SAP ECC, and the response contains all the pricing information.
    In terms of the response, we're able to pass the value we need from SAP ECC to HCI, however there is no place in the WSDL for us to pass it to the field we have defined in C4C.
    The WSDL for External Pricing contains both the request and response structures, therefore two root nodes. Adaptation only allows us to enable the field for the request (outbound) node. I'm trying to work out how we can enable our custom field for the response (inbound) node within the WSDL structure.
    Thanks
    Indi

  • BAPI for product allocation Check gATP

    Hi all,
    I read in the SAP documentation that we can use gATP on APO to check order item coming from non R/3 OLTP on product allocations.
    Is someone test it, which BAPI or BAdi do we use?
    Many thanks in advance.

    Hello,
    Following enhancement is available for Product allocation.
    Maintain Enhancement Projects for Product Allocation
    In this IMG activity, you can edit customer exits for the global availability check.
    Product allocations
    The enhancement for the initialization is APOQT001 .
    The user exits for product allocations are divided into two different call sequences:
    Product allocations is the requirements check against the product allocation time series from planning. A complete check is executed for this call sequence.
    The enhancements for product allocations are:
    APOQT010 copy parameters
    APOQT012 product allocations control
    APOQT021 product allocations
    APOQT022 consumption at beginning situation
    APOQT023 order consumption
    APOQT032 results control
    APOQT033 sequence of product allocation procedures
    APOQT007 product allocation assignment of partial deliveries
    APOQT018 adjusting field catalog
    The comparison adjusts the results of product allocations to the results of the other basic methods. This adjustment is necessary when product allocations is not the last basic method executed.
    The enhancements for the comparison are:
    APOQT011 copy parameters
    APOQT014 product allocations control
    APOQT024 consumption
    APOQT034 results control
    APOQT035 sequence of product allocation procedures
    The sequence of the basic methods is configured in the check instructions.
    When comparing, the entries in the table for the product allocation assignment and the temporary quantity assignments (delta records) are adjusted to the final results of the ATP check.
    If the behavior of product allocations is changed by the user exits, the behavior of the comparison must be adapted accordingly in the corresponding user exits!
    Thanks and Regards

  • Mass update of a custom field at Product Revenue level

    We are trying to update a custom field at Product Revenue level using the Opportunity Web Service. The webservice call is timing out as we have thousands of Opportunities.
    I would appreciate if anybody gives input on how we can massively update a custom field using Opportunity Web Service.
    OR
    Is there a way to mass update a custom field at Product Revenue level other than using a web service.
    Thanks for your help!
    -purna

    If you are not very much obsessed with Webservices, the other workaround is the Data Loader Tool. It was discussed earlier in this forum.
    Pl refer-
    Re: Product Revebue Updation
    Hope this helps.
    Rgds,
    Amit Sahu

  • How to add a customer field or extn coll in the tab1&2&3..of a UDO doc?

    Hi Experts,
    Does anybody know how to add a customer field or extn collection in the unused  tabs like tab1&2...in a UDO document?
    Thanks for your reply in advance.
    Thanks & Regards,
    David

    Hi Subhasini - <br><br>
    It seems you have discovered that adding an extension field to the Project Suppliers collection is not possible; many of the collections in E-Sourcing do not support extensions and, even when they do, typically, the table view of the data cannot be changed to show the extension value (it would only show on a "details" page, for example.<br><br>
    The solution that you have proposed may work, although I think there is a slight mistake in your logic. I believe you are saying that the script would take data from the newly created extension collection and populate data in the out-of-the-box vendor collection. <br><br>
    In thinking about your solution, I believe the benefit is that any logic and reporting based on the standard collection continues to function correctly (e.g., creating an RFx from the Project will use the out-of-the-box vendor collection).<br><br>
    That being said, I generally am reluctant to do a "replace" of a standard collection with an extension collection as you propose. My recommendation is that you challenge the customer on the importance of this requirement. For example, could the code be maintained on the vendor record? Why is it maintained in Projects? If it is maintained in the vendor record, could you just populate a read only collection the Projects that shows the vendor and code? Could a report be written that can be launched from within the Project to show the values? How does the customer intend to use this field? Could the display name of the vendor object be the right place for it?<br><br>
    I hope these ideas are helpful.<br><br>
    Regards,<br><br>
    Rob<br><br>

  • Error when add a custom field to source 2LIS_12_VCHDR

    Hi Experts,
    I'm trying add a custom field to source 2LIS_12_VCHDR. The fields are in LIKP table's append. That are
    zz fields. I can see the fields in MCLIKP structure, but I can't see these fields in LBWE transacction when I try update the structure MCLIKP. I don't know if this last is important because when I replicate of the source the fields, they are visible in BW.
    The problem is when I try activate the transfer structure. I Can add the fields from the data source to the transfer structure but If try activate the source the error is:
    "Error when creating transfer structure /BIC/CCBA2LIS_12_VCHDR in source system XXXX"
    I'm forgetting some step?
    somebody know other way for do it?
    thanks for your help.
    Manuel.

    Hi
    May be the datasource is not active, do the following obviously in development
    goto LBWE and click on your datasource; system will ask you for a transport request number give it a name. now save the datasource.
    replicate and activate your t/r
    hope this helps
    Regards

  • Add ECC Custom Fields in CRM Web UI ERP Order item

    hi all,
    i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
    I have :
    -  add the field on Web UI Screen.
    -  add the field on structure  TDS_item_COMV  and  TDS_item_COMC in ecc
    -  insert record for field on LORD_MAPPING table
    -  implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
    -  implemented method GET_I_S_STRUCT on crm with  :
    CASE COMPONENT.
        WHEN 'ZZSPOND'.
          RV_DISABLED = ABAP_False.
    endcase.
    - on method  do_prepare_output i have change value of fields with code :
    lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
    WHILE lr_loop IS BOUND.
    posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
    Does the current item has to be set for "Sponda Idraulica"?
    READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
                                  WITH KEY posnr = posnr.
    IF sy-subrc = 0.
    lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
    DATA : V_X TYPE STRING.
    V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
    ENDIF.
    lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
    ENDWHILE.
    I can't change the field  value  because it is "not changeble"  .
    Can you help me ?
    Thanks in advance.

    Hi Celi,
    I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II). 
    All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC. 
    Please check the following point:
    If those structures below were expanded with your custom fields:
    SAP CRM:
    CRMST_L2_ITEM_COMV
    CRMST_L2_ITEM_COMC
    CRMTT_ADMINI_ERPIL
    CRMTT_ADMINI_I_ERPIL
    SAP ECC:
    TDS_RFC_ITEM_COMV
    TDS_RFC_ITEM_COMC
    Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
      DATA: ls_supply TYPE tds_field_supply.
      IF iv_object_id EQ 'HEAD'.
        IF iv_module EQ 'VBAK_BEARBEITEN'.
          ls_supply-field = 'ZZCCINS'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNUM'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNAME'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZAUNUM'.
          APPEND ls_supply TO ct_supply.
        ENDIF.
      ENDIF.
    I hope it helps!
    Kind Regards!

Maybe you are looking for

  • Storage location in QA32 not appearing

    HI GURUS IN QA32 , STORAGE LOCATION IS NOT APPEARING FOR FEW MATERIALS . IN PURCHASE ORDER WE HAVE CONSIDERED ASSET ACCOUNT ASSIGNMENT CATEGORY , WITH VALUE & QUANTITY UPDATION . BUT DURING GRN STORAGE LOCATION IS NOT TAKEN INTO ACCOUNT SO IN QA32 AL

  • Creating layout in tcode KOB1

    Hi Experts ,                   Is it possible to create our own layout(fields to be displayed) in tcode KOB1? Can we edit the existing layouts? Thanks in advance. BR, Jay

  • Report painter issue with displaing a month budget

    Hi, I have a problem with making report in report painter. I want to display a month budget of cost element for the one particular cost center. For example: Iu2019ve putted two characteristics in one row, a set (which contains cost element number) an

  • How can I unlock my iPhone?

    Hi, I've got the iPhone 4S from my friend form US, I live in EU, but the phone is locked in Verizon. Please, could you unlock it, so I can use it in my country, phone contract has expired!

  • Settting render attribute doesn't render the child taskflow

    i am having 2 taskflows which is consumed by a consuming page. On the consuming page on which these 2 taskflows are dropped as region. the 2 regions are placed along with some buttons inside separate panelGroupLayouts. i mean in 1 panelGroupLayout 1