Adding a new field extension on CRM Order Item tab in the web shop order

Hi CRM E-Commerce Gurus,
I want to add a extension field on any web site product such as "zz...." in order to use this data in order's item tab. What shoul I do on J2EE Stack-.jsp method and ABAP Stack at the BADI implementations.
Could you please help me in order to add a new field extension on CRM Order Item tab in the web shop order ?
Thanks,
Kind Regards,
Fahrettin

Hi Arshi,
We have could not find any java action class such as Maintainb2csaveorderaction in config.xml folder and also there is no available threads and clue on SDN, google etc. Therefore we are got stucked on this issue. In SAP_ISA_60 Development and Extension Guide of SAP E-Commerce there is no sample java action class code such as Maintainb2csaveorderaction but some ABAP codes are available for the extension structure.
Do you suggest any java action class such as Maintainb2csaveorderaction codes like in your B2B scenarios etc.?
ls_header is a local structure with header data
  ls_extension-ref_guid = ls_header-guid.   
  ls_extension-alt_handle = ls_header-handle.
extension are name value pairs
  ls_extension-name = u2018Z_CUSTOMER1u2019          u2018 name
  ls_extension-value = ls_header-zcustomer1. u2018 value
  APPEND ls_extension to extension_header_out
now adding extensions to the items
  LOOP AT lt_items INTO ls_item.
    ls_extension-ref_guid = ls_item-guid.
    ls_extension-alt_handle = ls_item-handle.
    ls_extension-name = u2018Z_CUSTOMER2u2019          u2018name
    ls_extension-value = ls_item-zcustomer2.   u2018value
    APPEND ls_extension to extension_item_out 
  ENDLOOP.
ls_header is a local structure with header data
  LOOP AT extension_header_in INTO ls_extension.
check the name to find the according field
      IF ls_extension-name = u2018Z_CUSTOMER1u2019.
        ls_header-zcustomer1 = ls_extension-value.
      ENDIF.
  ENDLOOP.
sort the extension table by ref_guid and handle to obtain a better access
with binary search.
  SORT extension_item_in BY ref_guid, alt_handle.
  LOOP AT lt_items INTO ls_item.
find the starting point for a loop over extensions
use guid and handle as one logical key to access the extension
    READ TABLE extension_item_in
      WITH KEY ref_guid = ls_item-guid
               alt_handle = ls_item-handle
               BINARY SEARCH.
    IF SY-SUBRC = 0.
      LOOP AT extension_item_in INTO ls_extension
        FROM SY-TABIX.
check, if the entry is relevant
        IF NOT    ls_extension-ref_guid = ls_item-guid
           OR NOT ls_extension-alt_handle = ls_item-handle.
           BREAK.
        ENDIF.  
        IF ls_extension-key = u2018Z_CUSTOMER2u2019.
          ls_item-zcustomer2 = ls_extension-value.
        ENDIF.
      ENDLOOP.
    ENDIF.     
  ENDLOOP.
Thanks
Kind Regards,
Fahrettin

Similar Messages

  • Adding a new field to the Address Data for a business partner

    Hi Experts,
    I am trying to add a new custom field to the address data (all structures and tables) that is linked to a business partner on SAP CRM via EEWB. Structure is the address structure wthin BUS_EI_EXTERN. Table is BUT020. I have been told that it is not possible as there is no Business Object that allows this. When doing an EEWB, the only business object is BUPA, which when selected, adds the new custom field to BUT000. I would like the field to be added to BUT020 (Address Table). This leads me to believe that there is no standard way of doing this, which ultimatley means that it would need to be done manually. Please help me with this predicament.
    Regards
    Yusuf

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Adding a new field to search of Service Contracts

    Hi Experts,
    I have a requirement where in to add an existing field i.e your ref (sold_to) your_ref_sold field into the search criteria of Service Contrct .
    How to add the field to the Search .
    I have few questions here.
    1 need I use EEW to add the field to Search but its already existing?
    2 If not How to append the Structure crmst_query_src_btil and enhace it with field required?
    3 how to implement the BADI crm_rf_search_eew?
    Thanking You,
    Sree.

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Adding a new field to a Z table

    We have a Z table on which we have created a datasource. We have created a virtual cube on this datasource and queries are built on this cube. This setup is present on Dev, Quality and Prod environment.
    Now we have added a new field to the Z table in Dev. We will be creating a new Infoobject for this new field and will be adding it in the Virtual Infoprovider and also in the queries.
    1. Do we need to replicate the datasource so that newly added field is visible to the datasource? If no, is there any way?
    2. When I have to transport this to Quality and Prod, do I have to capture all the components and objects (Table,Datasoure,Virtual Cube Queries)? If no, what should I capture in the transport request?

    Hi,
    First, you have to regenerate the datasource in order to add the field:
    1) Log on to source system (where Z table is stored) and go to transaction RSA6.
    2) Select the root node and click Expand (icon with '+' sign).
    3) Search for your datasource (you can use the binoculars icon).
    4) Click on Change.
    5) Verify that the field appears on the list.  Make sure that "Hide field" and "Field only known on client exit" options are not marked for this field.
    6) Click on Save.
    7) Select "Datasource" -> "Generate" (CTRL+S) menu option.
    8) Use RSA3 transaction in order to verify the new field appears on test extractions.
    Then, to replicate the datasource in BI:
    1) Log on to SAP BI and go to RSA1 transaction.
    2) Go to "Modeling" -> "DataSources" section.
    3) Search for your datasource and right click on it.  Select "Replicate metadata" from context menu.
    4) Add the new InfoObject to the VirtualProvider.
    5) Update the transformation which joins the DataSource to the VirtualProvider.
    As far as transport requests are concerned, even though it requires more work, it is a good practice to group objects in different transport requests according to their type:
    In the source System (R3 for instance):
    1) One transport request with the table.
    2) One transport request with the datasource and its structure.
    In BI:
    1) One transport order with the datasource replica.
    2) One transport order with the new InfoObject(s).
    3) One transport order with the modified VirtualProvider.
    4) One transport order with the modified transformations from the datasource towards the VirtualProvider.
    5) One transport order with the Queries and their elements.
    I hope this helps you.
    Regards,
    Maximiliano

  • Adding a new field to the search help exit

    Hi friends,
    adding a new field to the search help exit. How does it work ?
    Thanks in advace
    Ilhan

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Adding a new field and new data item breaks layout

    I am adding a new field to a subform and populating it form a .Dat unfortunatly adding this field is causing data outputed to the subform below it to shift down one line on the page when outputted.
    This new field is outputted at the top of the form and and the line being shifted are below this.
    Below is the field details and the field as it is in the .dat file.
    Field:F_PO_NUMBER [1]                                
    Lines: 1  Characters: 20  Angle: 0
      In Subform
    : Main_Page
      Options  
    : Global
    ^Command JFPAGE_START
    ^Undefine global:~^PAGE 1
    ^define global:SEQUENCE \pic"NUM999999",@D:NUMPAGESPRINTED../\pic"NUM99",@$PAGE../\pic"NUM99",@:JFPAGE_PAGE_OF..
    ^define global:JFPAGE \pic"NUM99",@$PAGE.. of \pic"NUM99",@:JFPAGE_PAGE_OF..
    ^GLOBAL Email COLL_TEL_NUM~12345678~^REFORMAT OFF
    ^GLOBAL F_CURRENCY_CODE
    GBP
    ^FIELD F_PO_NUMBER
    ^COMMENT R_remit_customer
    ^FIELD F_REMIT_TO_CONCATENATED
    Address
    ^COMMENT M_INVOICE_HDR_BOX1
    ^GLOBAL F_TRX_TYPE
    Invoice
    Now the weird party is if I move the new field in the .dat as below it fixes things and the everything lines up like it should do.
    ^Command JFPAGE_START
    ^Undefine global:~^PAGE 1
    ^define global:SEQUENCE \pic"NUM999999",@D:NUMPAGESPRINTED../\pic"NUM99",@$PAGE../\pic"NUM99",@:JFPAGE_PAGE_OF..
    ^define global:JFPAGE \pic"NUM99",@$PAGE.. of \pic"NUM99",@:JFPAGE_PAGE_OF..
    ^GLOBAL Email COLL_TEL_NUM~12345678~^REFORMAT OFF
    ^GLOBAL F_CURRENCY_CODE
    GBP
    ^COMMENT R_remit_customer
    ^FIELD F_REMIT_TO_CONCATENATED
    Address
    ^COMMENT M_INVOICE_HDR_BOX1
    ^FIELD F_PO_NUMBER
    ^GLOBAL F_TRX_TYPE
    Invoice
    ^FIELD F_TRX_NUMBER
    I hoping someone might have an idea of why this is the case as I'm at a loss regarding why its happening.

    I may not hit on it exactly, but this sounds like Adobe's processing order.
    It wants to process the fields in the order they are in the DAT file.
    I have a similar problem with an overflow field, that isnt last in the DAT file,
    Read this here:
    http://forums.adobe.com/message/2298283#2298283
    Now that may not be exactly your issue, but I think its the same inherent problem,
    Adobes processing order for the fields/subforms.
    I am still trying to resolve my issue, but found the ^field command in the reference manual (Print Agent),
    and am wondering if I can use it.

  • Deposit Advice (XML) - adding a new field

    Our requirement is to add a DFF to the Deposit Advice. The PAYUSCDA was customized to add the new DFF. However, it is not appearing in the XML to be included in the template. Appreciate sharing of any information.
    Thanks.

    The search help exit allows you to modify functionality of search help. If you add a new field to the
    parameter list that is not contained on the selection method you can manually populate it within the search
    help exit.
    This  would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
    data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
    Therefore you need to read table SHLP in-order to locate position of value within string.
    Example:
    To find position of personnel number (PERNR) within elemenory search
    help M_PREMN you would use the following code:
    Loop at record_tab.
         read table shlp-fielddescr into wa_shlp
                                       with key tabname   = 'M_PREMN'
                                                fieldname = 'PERNR'.
    You could then use this information in the following way, for
    example, to find a persons organisation unit:
          select  orgeh endda
            up to 1 rows
            from pa0001
            into (ld_orgeh,ld_endda)
           where pernr eq record_tab-string+wa_shlp-offset(8)
                                                      u201Cpernr length is 8
           order by endda descending.
          endselect.
          select single orgtx
            from t527x
            into ld_orgtxt
           where orgeh eq ld_orgeh and
                 sprsl eq sy-langu and
               ( endda ge sy-datum and
                 begda le sy-datum ).
    If you have added a new field to the end of the parameters list
    the next step is to populate it by adding this data to the end of
    the record_tab string:
      concatenate record_tab-string ld_orgtxt into record_tab-string.
      modify record_tab.
    endloop.

  • Adding a new field to a DB table

    Hi,
    I am working on 4.6C.
    The requirement is to add an extra field to a database table which already has data in it...
    Will this effect the system in any way...if I add a field with the data in the table.
    What precuations do i have to take before adding an extra field to a DB table.
    I was wondering what will happen when i need to transfer the TR.. Basically the data is there in Production and Quality and not in development... so it will not be a problem in development...
    I mean changing the structure of the table with data in it ... Is it Ok...
    Thanks & regards

    Hi Sam,
    you can add a new field to any database table if even
    if contains data in production, only thing to do is u just
    have create an append structure to that table and in that
    append structure just create the new field.
    NOTE : Naming Conventions as follows:
    For Append Structure e.g :
    In se11 enter Table Name and select change button.
    now select GOTO option in the menu bar and select APPEND STRUCTURE option.
    now the screen shows u an default name for ur append structure, so dont change the name
    just hit enter button and
    now enter the your new field name with two Z's infront of the field.
    e.g if ur field name is MATNR then enter ZZMATNR as ur field in the append structure.
    and now save and activate and also adjust in the DATABASE UTILITY.
    thanks & regards,
    CH Vamsi Bharath

  • Adding a new field to a standard webdynpro component's layout

    Hi all,
      I need to add a new field to a standard webdynpro component's( in my case the component is ''/SAPSRM/WDC_UI_SC_DOTC_BD')  layout.How do i go about adding a new field to the standard component's lay out?
    can anyone help me with the necessary details?
    Regards,
    Abhinay.

    Check if this is useful to you (Login required)
    https://websmp105.sap-ag.de/~sapidb/011000358700001969972008E.pdf
    Rgds/Kiran

  • Adding a new field to existing structure

    HI all
    I am adding a new field to the existing structure in BW ,shall I remove all the data in the cube to fill fill this field for the previous records and reload again or any other solution
    thanks in advance

    Hi,
    Yu need to delete the data to fill the new field again.
    Assign points if it helps
    Regards,
    Srinivas

  • CProjects - Adding a new field to the detail screen of object link

    Hi All,
    I've a requirement of adding a new field to the detail screen of object link. But the field is a combination of 3 other standard fields.
    Please let me know how could i realise this functionality?
    Thanks in advance.

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • Adding a new field to the selection screen of a LDB

    Hi all,
    I want to add a new field Clearing date(BSEG-AUGDT) in the dynamic selection screen of  the report RFUMSV00.
    For adding a new field i have copied the SAP view of a Logical database to CUS view.
    Next i had added the Clearing date(BSEG-AUGDT) to the function group Document header(01) and selected the check box Preselect and saved the view.
    But still i am not able to find the newly added field in the dynamic selection screen of the report.
    Please suggest me where i am going wrong or how to do this.
    Thanks in advance
    Ajay

    Hi Srini,
    Thanks for your Reply
    I have kept 01 against the field BSEG-AUGDT and selected the preselect check box also.
    But still that field is not visible in the dynamic selection screen.
    Thanks
    Ajay.D

  • I have added a new field in IT0006 ,Now when try to create a new record for

    Hi Experts,
    I have added a new field in IT0006 ,Now when try to create a new record for a employee.
    1,If I give the SUBTY in the PA30 screen getting an error "Don't Specify a subty error"
    if and remove the subty and press CREATE button popup's comes and list the subty values.......It was allowing me to enter the subty in the PA30 screen prior to my new field addition in IT0006... is't a problem with the new field addition?
    2, After I choose the subty value from the pop-up I am able to see the next screen....BUT GETTING AN INFORMATION MESSAGE THAT "Assignment to feature P0006 did not take place"?
    3,, In the next screen after I have passed all mandatory fields while attempting SAVE I am getting an error called " Time constraint table in T777D is incorrect" what could be the cause?

    How are u adding fields to table using append in se11 or pm01.
    if you are adding fields using se11 delete it and add it0005 in transaction pm01 and generate object.
    add fields to structure CI_XX_R0005 and generate screen and maintain entry and screen in maintance view add entry and activate program.

  • Adding a new field in CO24

    Hi All,
    For missing part list  T.Code C024, we want to add a new field/column which will give cummulative quantity for the material(s) for all storage location.
    For example, raw material X is missing for prod order 1234  and the storage loaction is A.
    In MMBE(report0 for material X,  the system displays the stock as 10 qty in storage  loc. B, 5 qty in storage loc C and 0 qty in storage loc. A (in unsrestricted stock).
    We need a new field/column in CO24 which displays all the 15  cummulative qty (all storage location).
    Have any one come across these kinds of requirement.
    Do Suggest.
    Regards,
    SATYA
    Edited by: Satyajit Kumar on Dec 28, 2010 5:11 PM
    Edited by: Satyajit Kumar on Dec 28, 2010 5:11 PM

    Satyajit,
       Like I said There is a BADI that I found while going through the program for CO24. It could be badi_tables_modify but since I'm not a technical person, I'm not completely sure. In any case you have to do some development work so its better if you sit with the developer in your company.
    Another option would be to write a querry using SQ01. In this what you normally do is join tables. You will have to find the tables for missing partsand join them with the table that shows inventory.
    Atul

  • Adding a new field in a standard ALV reort

    HI,
    I have a requirement of adding a new field to Standard ALV report. The TCODE is CN50N. When you execute it and gives the project as input it will display an ALV report. i want to add another filed to that ALV report. The program it 's using is RPSISKB000. How to do it???
    regards
    sandeep

    Hi,
         Check in the ALV output whether these fields are already there and not displaying in the ALV output, if the fields are not at all printing in the ALV output,then copy the Program to Z program and change it.
    write the Code to add the new fields to the internal table and change the Field catalaog to come your fields in the ALV output then print it
    Regards

Maybe you are looking for

  • Japplet with imageicon

    Hi, im working on a simple paint program in a Japplet. I'm stuck right now on getting an icon on a button by giving the ImageIcon constructor a file path. I get an error when I try to run the applet with the imaging code in, not without. I've read in

  • Compiling iTunes U Usage Reports?

    Has someone come up with a good way to compile the iTunes U Reports into something useful? I appreciate Apple's "iTunes U: Usage report" for knowing what tracks are getting hits, but putting the data together week by week is a pain. I was wondering i

  • Mail crashes when opening some email

    Hi all. I'm having a problem with Mail and I don't know enough to understand the Console readout. Basically, Mail is crashing when I open certain email's, always the same email(s) but most work fine. It also kept crashing the other day when I tried t

  • Adding third address line to infotype-6

    I want to add a custom field say. third address line to infotype-6. I want this field to be displayed just below the address line 2 in infotype-6 and not under additional fields. Is there any way to add this field. If I do this using transaction PM01

  • Set duration of still to less than 0.1s in imovies 2014

    Hi ive just got a mac and im trying to put the duration of a still to 0.04s and at the moment it wont go below 0.1s is there anyway to change this? Thanks