Customer's field using BAPI_SLSTRANSACT_CREATEMULTI

Hi,
Can someone tell me how to populate customer's fields using BAPI BAPI_SLSTRANSACT_CREATEMULTI'.I have used EEW and it has extended the structure 'CRMT_CUSTOMER_H_COM' but did not extend sructure'BAPIBUS20001_CUSTOMER_H'. So I cannot pass the value.
Tried to extend 'BAPIBUS20001_CUSTOMER_H' using SE11 but its enhancement category is set to 'Can not be enhanced'.
Thanks for any suggestion

Hi Sudesh,
I think you did not do the enhancement properly in EEWB.
Just do one thing. Copy the code if you have written any in the EEWB for the enhancement somewhere. Run the EEWB wizard again and regenerate the project. Now paste the code that you had written earlier.
Use the BAPI_BUSPROCESSND_CREATEMULTI and populate the fields as below:
DATA: lv_header_guid   TYPE crmt_object_guid,
      lv_item_guid     TYPE crmt_object_guid,
      lit_inputfields  TYPE TABLE OF
                       bapibus20001_input_fields,
      wa_inputfields   LIKE LINE OF lit_inputfields,
      lit_customer_h   TYPE TABLE OF
                       bapibus20001_customer_h,
      wa_customer_h    LIKE LINE OF lit_customer_h,
      lit_header       TYPE TABLE OF
                       bapibus20001_header_ins,
      wa_header        LIKE LINE OF lit_header,
      lit_orderadm_i   TYPE TABLE OF bapibus20001_item,
      wa_orderadm_i    LIKE LINE OF lit_orderadm_i.
* Fill the HEADER
* Create Contract header guid
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      ev_guid_16 = lv_header_guid.
* Fill orderadm_h
  wa_header-guid         = lv_header_guid.
  wa_header-process_type = 'ZIUS'.
  APPEND wa_header TO lit_header.
* Fill input fields
  MOVE: lv_header_guid  TO wa_inputfields-ref_guid,
        'A'             TO wa_inputfields-ref_kind,
        'ORDERADM_H'    TO wa_inputfields-objectname,
        'PROCESS_TYPE'  TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  CLEAR wa_inputfields.
* Customer Fields at HEADER Level 
  MOVE lv_header_guid TO wa_customer_h-ref_guid.
  MOVE 'A'            TO wa_customer_h-mode.
MOVE: lv_terms      TO wa_customer_h-zzcustomer_h0305,
       gv_sales_ch   TO wa_customer_h-zzcustomer_h0301,
       gv_sales_type TO wa_customer_h-zzcustomer_h0302,
       gv_reference  TO wa_customer_h-zzcustomer_h0313,
       gv_creditrate TO wa_customer_h-zzcustomer_h0311.
  APPEND wa_customer_h TO lit_customer_h.
* Fill input fields
  MOVE: lv_header_guid  TO wa_inputfields-ref_guid,
        'A'             TO wa_inputfields-ref_kind,
        'CUSTOMER_H'    TO wa_inputfields-objectname.
  MOVE 'ZZCUSTOMER_H0305' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE 'ZZCUSTOMER_H0301' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE 'ZZCUSTOMER_H0302' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE 'ZZCUSTOMER_H0313' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE 'ZZCUSTOMER_H0311' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE 'MODE' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  CLEAR wa_inputfields.
* Fill the Item(ORDERADM_I)
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      ev_guid_16 = lv_item_guid.
* Fill ORDERADM_I
  MOVE: lv_item_guid   TO wa_orderadm_i-guid,
        'A'            TO wa_orderadm_i-mode,
        gv_product     TO wa_orderadm_i-ordered_prod,
        lv_header_guid TO wa_orderadm_i-header.
* Fill input fields
  MOVE: lv_item_guid  TO wa_inputfields-ref_guid,
        'B'           TO wa_inputfields-ref_kind,
        'ORDERADM_I'  TO wa_inputfields-objectname.
  MOVE  'ORDERED_PROD' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE  'PRODUCT' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  MOVE  'MODE' TO wa_inputfields-fieldname.
  APPEND wa_inputfields TO lit_inputfields.
  CLEAR wa_inputfields.
* Customer fields at ITEM Level
* Similarly fill the values for enahanced fields in
* lit_customer_i and also the respective input fields in
* lit_inputfields
* Fill the rest of the internal tables in the same way
* Partner, Status, Object, Appointment etc.
* Now call the BAPI
  CALL FUNCTION 'ZBAPI_CONTRACT_CREATEMULTI'
    TABLES
      header           = lit_header
      item             = lit_orderadm_i
      partner          = lit_partner
      organisation     = lit_organisation
      status           = lit_status
      appointment      = lit_appointment
      input_fields     = lit_inputfields
      return           = lit_ret
      product          = lit_product
      scheduleline     = lit_schline
      customer_head    = lit_customer_h
      customer_item    = lit_customer_i
      pricing          = lit_pricing
      condition_create = lit_condition
      billing          = lit_billing
      config_cfg       = lit_config_cfg
      config_ins       = lit_config_ins
      config_val       = lit_config
      OBJECTS          = lit_object.
<b>Reward points if it helps.</b>

Similar Messages

  • Accessing Custom CRM Fields using {module_data}?

    I know I can access CRM data on the site using {module_data version="v3" resource="customers"}.
    Is it possible to access the Custom CRM fields using the {module_data} tag? If so, how do I do that?

    Hi Lynda,
    Vote, comment and add your 2cents to the idea thread of this same idea. And use your powers of persuasion to get BC to hurry up on this feature!
    https://forums.adobe.com/community/business_catalyst/developer_forum/content?filterID=cont entstatus[published]objecttypeobjecttype[idea]
    Please vote, your voice counts.

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

  • Custom metadata fields used in file name?

    Hi,
    Is it possible to add to the list of meta data fields that are used as tokens for file names?
    I've been using Rob Cole's excellent custom meta data in the library module and now I want to use these fields to name the file during export...
    While at it, is it possible to add the same custom meta data fields to the info view overlay in develop mode?
    Cheers,
    Bonny

    1.  Its possible an export filter (post-process action) could be defined that supports the custom metadata for export filenaming (Lightroom itself does not have any other hooks I'm aware of) - dunno if anyone's done that, yet.
    2.  I think not (see PM).
    Rob

  • Custom selection field using Logical database

    Hi All,
    I have to create a program that would print out employee contracts from infotype 16.
    I am using logical database PNPCE.
    Is there a way to add "contract type" as a selection parameter in the screen that is generated by PNPCE?
    Thanks,
    ~Mark

    Hi,
    Create CTTYP(Contract type) as input parameter in the program.
    Then after GET PERNR.
    write check stmt for that field like below.
    PARAMETERS: p_cttyp type p0016-cttyp.
    GET PERNR.
    CHECK p0016-cttyp EQ p_cttyp.
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • Set a custom duration field using VBA throws the message "Invalid duration" when reopening the Project

    With a custom code we set Duration9 in Project 2013.
    After executing the code everything seems to be ok.
    After saving and reopening the Project it shows a message "Invalid Duration", and the value is shown as estimated (Questionmark).
    In VBA create following code:
    Sub SetDuration()
        Dim newVal As Long
        newVal = 14400
        Tasks(1).Duration9 = newVal
    End Sub
    Execute Code.
    Close VBA.
    Open the Project and you will get the same message box
    The only way as far as I found out is to manually retype the Duration in that field. What is not exactly what I want.
    Is this a bug in MSP or a hidden Feature? Does anyone has an idea?
    Best Regards Steffen

    I was able to replicate what you saw.  I can't explain it per se, but this code seems to get around the issue:
    Sub TESTDUR()
        Dim NewVal As String
        NewVal = "30d"
        ActiveProject.Tasks(1).Duration9 = NewVal
    End Sub
    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

  • Error while adding custom fields using EEWB.

    Hi
    While trying to add custom fields using the transaction EEWB i got an error message
    'No Logsys040 transport request exists for system workbench.Please let me know why it happens.
    Thanks
    sureshpaul

    closing this unresolved

  • BP extend : how to use FM to update customer specific fields ?

    Hello
    I'm working on a CRM 2007 project and for customer needs, the BP data have been extent with specific fields using EEWB. So specific FMs have been automatically generated to manage the specific data. We want to use these FM to maintain the values of the specific fields. In the EEWB transaction, in the Task BUPA_API for the specific object, 2 FMs have been generated : ZZ1XO_BUPA_MAINTAIN and  ZZ1XO_BUPA_MNTN_ALL : we suppose we have to use these FMs to update the values fo this object. This object (customer specific data) is time dependent with gaps and multiple instance. We tried to use these 2 FMs to update values but it does not work : anybody has already used this kind of FMs ?
    Thanks to all.

    Jerome,
    Normally I use the FM modules generated by the EEWB that contain API to update the data.  However keep in mind if this is a Z-Table and you don't like what is provided, then add your own BAPI modules to the BDT function group to update the data.
    Take care,
    Stephen

  • How can we get the value of the key field in a custom data model using governance API?

    Dear Team,
    How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
    Any kind of help would be sincerely appreciated.
    Thanks & Regards,
    Tushar.

    Hi Michael,
    Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
    For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
    This is a workaround for now.
    So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
    Can we do that using governance API and its' methods?
    In the Governance API doc you provided below has referring to below external model as part of gevernance API.
    The active or inactive data (before or during the derivation or the check) can be read
    with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
    the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
    parameter should b
    e set to ‘X’.
    Thanks
    Praveen

  • Issue in Updating Customer specific fields in WBS using BAPI_BUS2054_CREATE_MULTI

    Hi Experts,
    I am able to create the WBS element using BAPI_BUS2054_CREATE_MULTI.But the issue is i am not able to update customer specific fields even after passing the fields as per specification in Function module documentation. I have also created an implementation of BADI  as per below specification in FM documentation:
    Procedure for Filling Standard Enhancements
    Before you call the BAPI for each object that is to be created or changed,
    for which you want to enter customer-specific table enhancement fields, add a
    data record to the container ExtensionIn:
    STRUCTURE:    Name of the corresponding help structure
    VALUEPART1:   Key of the object + start of the data part
    VALUEPART2-4: If required, the continuation of the data part
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with the
    keys that identify the table rows and then with the values of the
    customer-specific fields. By structuring the container in this way, it is
    possible to transfer its content with one MOVE command to the structure of the
    BAPI table extension.
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields for
    which the respective update indicator is set are changed). Therefore, even if
    you only want to change one field, all the fields that you transfer in
    ExtensionIn must be filled.
    Checks and Further Processing
    Using the methods ...CREATE_EXIT1 or. ...CHANGE_EXIT1 of the BAdI
    BAPIEXT_BUS2001, BAPIEXT_BUS2002, and BAPIEXT_BUS2054, you can check the entered
    values (and/or carry out other checks).
    In the BAdI's second method, you can program that the data transferred to the
    BAPI is processed further (if you only want to transfer the fields of the CI
    includes, no more action is required here).
    But still i am unable to update fields though i am able to create WBS with rest of the fields except  custom fields.
    I am using attached code to achieve this.Do we need to code anything inside method create_exit1 or create_exit2 implementation for BADI or
    Please help on priority

    Hi Rahul,
    First observation from your code is that i could not find the assignment for the field
    GWA_WBS_EXTIN-STRUCTURE. I hope you are not filling this field, that could be one reason for failure. Try to do it and let us know if you still have the problem.
    Br..
    Dwaraka

  • How to register User custom field using PHP?

    Hi!
    I am looking for a way to share user specific data between connected users. For example, all participants should know each other IDs(our own system IDs, not LCCS).
    User's custom fields looks the best solution for this, but I can't find a way to register one using PHP, while creating room.
    How to register User's  custom field using PHP? Or may be there are better solution to make such things?

    Got it, just need to add new node to UserManager collection.
    const USER_MANAGER_COLLECTION = 'UserManager';
    static private $USER_MANAGER_CUSTOM_FIELD_CONFIGURATION = array(
       'accessModel'=>self::ROLE_VIEWER,
       'publishModel'=>self::ROLE_VIEWER,
       'persistItems'=>true,
       'modifyAnyItem'=>false,
       'userDependentItems'=>true,
       'sessionDependentItems'=>false,
       'itemStorageScheme'=>self::STORAGE_SCHEME_MANUAL,
       'allowPrivateMessages'=>true,
       'lazySubscription'=>false,
       'p2pDataMessaging'=>false
    const USER_INVITE_ID_CUSTOM_FIELD = 'inviteId';
    static private function createUserManagerCustomFields($room){
       $account = self::init();
       $collection = self::USER_MANAGER_COLLECTION;
       $account->subscribeCollection($room, $collection);
       $account->createNode($room, $collection, self::USER_INVITE_ID_CUSTOM_FIELD, self::$USER_MANAGER_CUSTOM_FIELD_CONFIGURATION);

  • Using ms project 2007 and vba macro to list all the custom fields used in the project?

    Hi,Using ms project 2007 vba macro, I would like to be able to list all the custom fields used in the project and their corresponding field names. e.g. let us say I create a calculated duration field and name it "expected duration" and the name
    of the field I select is Duration1.
    I am trying to write a macro that will list all the used custom fields such as the result would look like:
    Duration1 ---> "expected duration"
    Text1       ---> "anything"
    Flag1        ---> "....."
    Number1  ---> "..............."
    Can anyone provide me with the solution?
    Regards,
    Chuck

    John,
    I found this module, which provides the the list of custom fields used in the project but does not provide the name given to the field. Here below is the module and hope you could help me achieve this by modifying the macro to list the renamed field.
    ' MSP Checks all Custom Task Fields
    Sub checkfields2()
    'This macro will check and report out which custom task fields are used
    'It requires Project 2002 and above as it relies on the GetField
    'and FieldNameToFieldConstant methods which were not introduced until
    '2002.
    'It does not include resource fields, however it is a simple matter to
    'do it by replacing the pjTask constant with pjResource.
    'Copyright Jack Dahlgren, Oct. 2004
    Dim mycheck As Boolean
    Dim myType, usedfields As String
    Dim t As Task
    Dim ts As Tasks
    Dim i, it As Integer
    Set ts = ActiveProject.Tasks
    usedfields = "Custom Fields used in this file" & vbCrLf
    myType = "Text"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 30
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Number"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 20
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Duration"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If Left(ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)), 2) <> "0 " Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Cost"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> 0 Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Start"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    myType = "Finish"
    usedfields = usedfields & vbCrLf & "--" & UCase(myType) & "--" & vbCrLf
    For i = 1 To 10
    mycheck = False
    it = 0
    While Not mycheck And (it < ts.Count)
    it = it + 1
    If Not ts(it) Is Nothing Then
    If ts(it).GetField(FieldNameToFieldConstant(myType & i, pjtask)) <> "NA" Then
    usedfields = usedfields & myType & CStr(i) & vbCr
    mycheck = True
    End If
    End If
    Wend
    Next i
    MsgBox usedfields
    End Sub
    This is what the module gives me. But I would like to have beside Text 1 the name that is shown as below. e.g Text1 is "Test".
    Would you mind helping me achieve this?
    Thanks in advance.
    Chuck

  • How to use ADD_METADEF to add a custom metadata field

    Hi All,
    I am trying to add a custom metadata field to check in profile, and this I want to do using RIDC library through my java program. I have tried the following code, but some how I could not see its getting added to Information Fields and also to Standard check in profile.
    Can you let me know what am I missing?
                myIdcClient = myIdcClientManager.createClient("idc://XXXX:4444"); // just commented out
                IdcContext myIdcContext = new IdcContext("weblogic", "weblogic1");
                ServiceResponse myServiceResponse = null;
                  DataBinder myRequestDataBinder = myIdcClient.createBinder();
                    myRequestDataBinder.putLocal("IdcService", "UPDATE_OPTION_LIST");
                    myRequestDataBinder.putLocal("dKey", "xLocationList123");
                  myRequestDataBinder.putLocal("OptionListString", "Madrid\nTokyo\nLondon\nWashington");
                    myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
                    myRequestDataBinder = myIdcClient.createBinder();
                    myRequestDataBinder.putLocal("IdcService", "ADD_METADEF");
                    myRequestDataBinder.putLocal("dName", "xLocations123123");
                    myRequestDataBinder.putLocal("dIsRequired", "0");
                    myRequestDataBinder.putLocal("dOptionListKey", "xLocationList123");
                    myRequestDataBinder.putLocal("dOptionListType", "choice");
                    myRequestDataBinder.putLocal("dIsOptionList", "1");                    
                    myRequestDataBinder.putLocal("dIsSearchable", "1");
                    myRequestDataBinder.putLocal("dIsEnabled", "1");
                    myRequestDataBinder.putLocal("dType", "Text");
                    myRequestDataBinder.putLocal("FieldName", "xLocations123123");
                    myRequestDataBinder.putLocal("dCaption", "Locations");
                    myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
                    myRequestDataBinder = myIdcClient.createBinder();
                    //IdcService=UPDATE_META_TABLE
                    myRequestDataBinder = myIdcClient.createBinder();
                    myRequestDataBinder.putLocal("IdcService", "UPDATE_META_TABLE");
                    myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
                    myRequestDataBinder = myIdcClient.createBinder();
                    myRequestDataBinder.putLocal("IdcService", "START_SEARCH_INDEX");
                    myRequestDataBinder.putLocal("IsRebuild", "1");
                    myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
                    myRequestDataBinder = myIdcClient.createBinder();
                    myRequestDataBinder.putLocal("IdcService", "PUBLISH_SCHEMA");
                    myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
    Thanks in advance.

    Try calling the following code:
    import static intradoc.shared.MetaFieldUtils.hasDocMetaDef;
    import static intradoc.shared.MetaFieldUtils.updateMetaDataFromProps;
    import intradoc.common.ServiceException;
    import intradoc.data.DataBinder;
    import intradoc.data.DataException;
    import intradoc.data.Workspace;
        protected static void addMetadataFields(final Workspace workspace, final DataBinder binder) {
            traceVerbose("Start addMetadataFields");
            // Parameters for metadata field
            final String[] parameters = new String[] { "dsdComponentName", "dComponentName", "dsdVersion", "dType", "dIsRequired", "dIsEnabled", "dIsSearchable", "dIsOptionList", "dOptionListKey", "dOptionListType", "dDefaultValue", "dOrder", "dIsPlaceholderField", "dsdCheckFlag",
                    "dsdDisableOnUninstall" };
            // Common values for primary and alternate field values
            final String[] values = new String[] { "ComponentName", ComponentName, "build_1_20131206", "BigText", "0", "1", "1", "0", "", "", "", "2500", "0", "", "" };
            // Primary file checksum field parameters and values
            final Properties field = new Properties();
            for (int i = 0; i < parameters.length; i++) {
                field.put(parameters[i], values[i]);
            // Setup primary file specific parameters
            field.put("dName", "Metadata field name");
            field.put("dCaption", "Metadata field caption");
            try {
                // Name of metadata field
                final String fieldName = field.getProperty("dName");
                trace("dName: " + fieldName);
                if (fieldName != null && fieldName.length() > 0 && !hasDocMetaDef(fieldName)) {
                    try {
                        updateMetaDataFromProps(workspace, null, field, fieldName, true);
                        trace("Successfully added metadata field " + fieldName);
                    } catch (final ServiceException e) {
                        warn("Metadata field " + fieldName + " was not installed.", e);
                    } catch (final DataException e) {
                        warn("Metadata field " + fieldName + " was not installed.", e);
                } else {
                    trace("Metadata field already exists; will not modify");
            } finally {
                traceVerbose("End addMetadataFields");
    Jonathan
    http://jonathanhult.com

  • How to use customer-specific fields with FI-CA event 940?

    The following text can be found under FI-CA event 940:
    You can also set customer-specific fields if you have defined the predefined include for customer enhancements CI_FKK_ACCIT_CUS in the structure FKK_ACCIT_CUS. The fields included here must have the same field name as the fields included in the structure ACCIT. These can also originate from an enhancement of the coding block in General Ledger Accounting. The fields Reservation Class and Reservation Key of the reconciliation key and the totals record are available as import parameters.
    My requirement is to populate the field HZUON in this event, which will be called when running t-code FPG1 (Transfer of FI-CA total records to general ledger)
    The problem is the fact that the output of the event (i.e. output of function module FKK_SAMPLE_0940 at first) only have the following fields:
    E_ZUONR     LIKE     ACCIT-ZUONR     Zuordnung (BSEG-ZUONR)
    E_XREF2     LIKE     ACCIT-XREF2     Referenz  (BSEG-XREF2)
    E_SGTXT     LIKE     ACCIT-SGTXT     Positionstext
    E_BUPLA     LIKE     ACCIT-BUPLA     Businnes Place (Korea only)
    I tried adding a new field to structure CI_FKK_ACCIT_CUS and adding this field to the output of the event 940, but how do I ensure that the content of the field will be used to populate the HZUON field of the FI document during "transfer of FI-CA total records to general ledger"?
    Cheers,
    Teo

    Hi Teo,
    I happened to see this post from you when I searched for a similar scenario related to event 940. I also need to add two fields in CI_FKK_ACCIT_CUS and make these fields as outputof the event. Did you come across any solution for the same? If so, can you please share.
    Regards,
    Harikumar. S
    Edited by: Harikumar Sasidharan on Dec 30, 2009 12:14 PM

  • Customize Approval Form to add custom fields using SharePoint Designer

    Hi,
    i have a created a Custom approval workflow using SharePoint Designer 2010. This is two steps approval WF, All i did put the variable "CancelonRejection" Value "Yes" and one Approval action with 2 different users as Serial. Right now
    Status, Requested by, Consolidated comments and comment fields are available on the approval form. Now i want to add some fields with radio buttons on Approval Form, so that 1st approver can select those radio/check box. Once 1st approver will approved this
    then display all the values on 2nd approver approval from or send email to 2nd approver along with all the information from 1st approver.
    Thanks in advanced!

    Hi,
    According to your post, my understanding is that you wanted to customize Approval Form to add custom fields using SharePoint Designer.
    In the SharePoint Designer, you can customize the task form.
    Here is a great article for your reference:
    Creating Custom Workflow Task Approval Forms with SharePoint Designer 2010
    However, every task can only have one task form.
    That is to say, the two approvors will have the same task form.
    As a workaround, I recommend to customzie the task form using InfoPath.
    You can create different view for the approvors.
    You need to add form load rules to swich views based on the approvors.
    More information:
    Using Multiple Views in Customized List Forms
    Add, delete, and switch views (pages) in a form - InfoPath
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Disable WLAN when LAN connected - how do I do?

    Hi, We are in the process of migrating from HP notebooks to Lenovo. We used to set a BIOS setting called "LAN/WLAN Switch" in the HP notebooks, which makes the WLAN to disable when the LAN cable is plugged in or the pc is docked Where do I find a sim

  • I downloaded an update for IPhoto.  How do I install the download?

    I just had Apple migrate from my old computer to a new MacBook Pro.  I can't view my iPhoto pix because it says I need to format them to be compatible with the new machine.  It told me what to download and install.  I have downloaded successfully but

  • PAYEXT - PEXR2002 Idoc

    I am generating the Idoc through F110. Few of the mandatory segments from the bank prospective are not populated. These are : E2IDT02 / E2EDKA1003 (Ordering Party)  and EXTPAYM field of segment E2IDKU3002 Any idea what data should be maintained and w

  • Dynamic Tabstrip and Alv's

    Hi All, My requirement is like that dynamically i have to create tabstrip and in that each tab has Alv table to disply the data. Regards, Rajesh.

  • IntelliJ and Weblogic Debug Integration

    All, I am looking for some information about how to locally debug a servlet application in IntelliJ using Weblogic as my app server. I am doing this is a local debug, and have been using Tomcat in this fashion for a couple years now. I want to set up