Field length during syndication & Automatic scheduling

Hi All,
I have 2 questions and need your valuable suggestions for same.
1) I have one field in MDM called Article code which contains value as 012345 thats 6 digit. My target system wants only 12345. Mean to say we need to do some settings in syndicator so that we can remove 0 and make it as 5 digit instead of 6 digit code.
2) Suppose I have schduled a automatic file generation in MDM that takes place in the evening 7PM daily. This will cover all the changes made in master data in whole day and will generate xml file covering all those changes. Let say on some day no changes were made. Then i need a file containing no values but it must generate a file atleast. How can we do this.
Please let me know if you ned any further info.
Thanks
Himanshu Nijhawan

Hi Himanshu,
See MAX ITEM LENGTH will take care of field value which will always have  <= 5 characters.
Suppose if you set only this property then if you have length with 6 character then it will eliminate the last char of value.
e.g. 012345 to 01234 which you actually not looking for so alone this property will not solve your problem.
If you also set this property too along with MAX ITEM LENGTH, I mean Leading Character to strip = 0, then it will always eliminate field value with all the leading character's to 0 first and then count max item length should not > 5
e.g. 012345 to 12345
       001234 to 1234 not 01234, if you want to contain 0 if it has length 5 then with leading char strip to 0 will not work.
It will work if your 5 char does not have leading zero. e.g 12345 to 12345  but not 01234 to 01234 but will result in 1234
So, If you are sure that when it comes to 5 char then it will not have leading 0 and for 6 char it will always have leading 0 then you can set these both properties in Syndicator and then can save in map which will give you desired result.
e.g. 12345 to 12345
e.g. 012345 to 12345
So, if you feel that you always want 5 char value irrespective of leading char 0 then you should go for this below approach.
e.g. you want when its 5 char value as 01234 and you want to maintain in the same manner during syndication 01234.
Here i would suggest go for assignment and write assignment expression as below in Data Manager.
IF(LEN(XXX) > 5 , RIGHT(XXX,5), XXX)
XXX is the Field name,  this expression pass for value > 5 , e.g 6 then it will give the last 5 char of value
e.g. 012345 to 12345
It fails when the field value is not > 5 that means = 5 then it will put this same value e.g. 01234 to 01234. So in this manner you will always have length of 5 char and you don't need to cut off the 1st char and need to do this for 6 char only.
Regards,
Mandeep Saini

Similar Messages

  • Control an Integer field Length without using Validation ??

    Hi,
    I have Couple of fields where I need to configure them as Integers.
    Now each one has a fixed length that i need to limit to.
    But when i create a field of type: integer, i cannot select teh length!!!
    To achive this the idea i have is to write a validation which checks length..
    But can i achive it without going for a validation on each field???
    PS: I am aware that TEXT field can limit the length But it also allows me to enter text values, my requirement clearly says that to allow users to only enter Numeric values..
    Did anyone face a similar Case?
    Kind Regards
    Eva

    Hi Eva,
    I didn't try in the system, but I feel there are two solutions to achieve your requirement (*of course in both cases you will need to write a simple validation)
    Solution 1 : When field is defined as "Integer" in Console.
    lets take an example, you want to restrict an integer field with a limit of max 4 characters.
    Maximum value of a 4 character integer can be "9999". So, you can put a simple validation to compare the field value with 9999. if the value is less then this means fields values is less than 4 characters, else more than 5 characters.
    In this case Your validation expression in expression editor will be:
    FIELD NAME<= "9999"
    Solution 2 : When field is defined as "Text" in Console.
    In this case you can restrict the maximum field length through Console. But you will also need to write a validation to ensure that user is not entering any alphabets or special characters in this field.
    In this Case you can use below validation:
    HAS_ALL_CHARS(FIELD NAME, "0","9")
    This will ensure that field has all characters between 0 and 9 and doesn't hold any special character or alphabets.
    In Both cases you will need to set  "Automatic Execution" property as "Error". Also please do not manually type any function or value in expression editor. use drop down for fields, operators, functions etc.  and enter numeric values using the first blank box before dimension list.
    Kindly revert if you face any issues.
    -Shiv

  • Making GL Account field editable during Approval Process

    Hi Experts,
    We are in SRM 7.0 and using process controlled workflow.
    As a business requirent,we want the  GL account  field to be editable during the approval process i.e during approval process,approve wants to change the GL account in the shopping cart as the GL account may not be correctly entered.
    Is it possible to make the GL account field editable during approval process?if Yes,please share how it can be done.
    Any pointers will be highly appreciated.
    Thanks & Regards,
    Rupesh

    Hi,
    You can find info in help.sap.com.
    http://help.sap.com/saphelp_srm70/helpdata/EN/5c/b5a6783fc34466834fbc48def23d2d/frameset.htm
    http://help.sap.com/saphelp_srm70/helpdata/EN/01/ad7bc4d66f4bc1a52a0cd21cdfa2ff/frameset.htm
    Level Type: There are 3 possible entries. Approval with completion, Approval and Automatic. Within
    a completion step the document can be changed by the approver if the u2018Changeableu2019 flag is set.
    Within the approval phase, the document can only be approved or rejected but not changed. It is not
    possible to mix the two phases of completion and approval. The completion phase is always before
    the approval phase. The automatic step is a final means of validating the approval process, and to
    verify that at least one step was returned without any error (example: event 0EV999). Depending on
    the task ID assigned to the automatic step, the document will then be either approved or rejected.
    Regards,
    Masa

  • Value conversion during syndication.

    Hi All,
    I need to do a value conversion during syndication of records out of MDM. The values maintained in my MDM Repository is true and false while the destination system can only read Y and N. What would be the best option to have this value conversion done during the auto syndication?
    Appreciate your responses.
    - Aditya

    One way to handle this is by using key mapping on a lookup table instead of a boolean field.  Often times your remote systems will have different internal values than the ones you are storing in your system.  For example, you may store "True" or "False" as values in your MDM repository, however ECC doesn't accept those values, instead it wants "X" or "NULL".  Likewise, a third-party system may expect "T" or "F".  The same thing goes for other fields in your repository (ie: country codes, region values, etc).  In cases such as this, you should create a lookup table with key mapping enabled.  Then, you can maintain different values based on the remote system.  In other words, you may store the value "TRUE" in your lookup table, but the key mapping for true may maintain "X" for ECC and "T" for a legacy system that you define in the console.  Then, when you build your syndication map, you may the remote key to the destination field instead of mapping the actual code value of your repository.  This way the correct value will always get syndicated to the partner system regardless of what system is being syndicated to.
    Does that make sense?

  • Risks of changing the field length of data structure of a Cluster Table

    Hello,
    We are on ECC 604 and had implemented HR & Travel Management. Reporting on these applications is done in BI. We use ESS and & Mobile Travel for  time, travel expenses, etc and use PCLn clusters.
    There is business need to change the length of a field from 20 to 40 for the data structure PTK** of cluster table PCL1. 
    We are exploring various options to avoid core modifications.
    We are also assessing the risks associated with changing the field length.
    I  am asking you for your opinion about the risks associated with changing the field length of a data structure of cluster table.
    Thanks & Regards,
    Manoj K Pingali

    Recently, we came across the same situation where we had to change the length of a field. Let me explain you what precautions we had taken during that time.
    1. Apply the where use list of that table/ Field and check whether it has been used in some program and FM or not. If yes then check one more thing that check the TYPE of another variables on which system has populating data (move, write or in FM parameters). if you will not consider this then you can land you in big trouble. (Conversion dump)
    2. Ask the basis to take a dump of the production, quality and data for the safer side if something does not go right.
    Now, you can do the changes in your development system and then adjust the database and see the impact of it.
    Hopefully, you will not come across any difficult situation in this changes.
    Thanks.
    Anurag

  • Field length change in Web Dynpro Components iView

    Hi,
    We are using SAP MDM Web Dynpro Components - Configuration Manager (NW7.3) to develop the UI. One of the issue while disply field is, Though field maintained in MDM has only 2 charaters UI that displays a full-screen-width field.
    I would like to display actual field length maintained in reposiroy for each field. Is it possible??
    Cheers,
    Rc

    This is closed.
    By mistake Raised Twice....I guess I need break

  • Automatic Schedule Lines for SA

    Dear Gurus,
    Is it possible to create automatic Schedule lines for Subcontracting Scheduling Agreements????
    cheers

    Hi
    It is possible to create SA for item catgory L. No specific configurational setting is required.
    Pls check
    Regards,
    Raman

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • Type conflict when calling a function module (field length)

    Dear All,
                I am getting this following error while executing:  Type conflict when calling a function module (field length)
    This is piece of coding i have writern in my action button.
    method SEARCH_MATERIAL .
      data:
            node_mat_input TYPE REF TO  if_wd_context_node,
            node_mat_output TYPE REF TO if_wd_context_node,
            material TYPE BAPIMATDET-MATERIAL,
            itab TYPE TABLE OF BAPIMATDOA.
      node_mat_input = wd_context->get_child_node( 'NODE_MAT_INPUT' ).
      node_mat_output = wd_context->get_child_node( 'NODE_MAT_OUTPUT' ).
      node_mat_input->get_attribute( EXPORTING name = 'MATERIAL'
                                     IMPORTING value = material ).
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material                    = material
        PLANT                       = plant
        VALUATIONAREA               =
        VALUATIONTYPE               =
        MATERIAL_EVG                =
       IMPORTING
         MATERIAL_GENERAL_DATA       = itab
        RETURN                      =
        MATERIALPLANTDATA           =
        MATERIALVALUATIONDATA       =
      node_mat_output->bind_table( itab ).
    endmethod.
    Attributes are:
    Node name = INPUT its structure is BAPIMATDET
    INPUT attributes = MATERIAL of type BAPIMATDET-MATERIAL
    Thanks,
    Gopi.

    Hi Amit,
               I have used service call to fetch records from that bapi..
    The following is the code generated by service call:-
    METHOD execute_bapi_material_get_deta .
    declarations for context navigation
      DATA:
        node_bapi_material_get_de   TYPE REF TO if_wd_context_node,
         node_exporting   TYPE REF TO if_wd_context_node,
         node_material_general_dat   TYPE REF TO if_wd_context_node,
         node_importing   TYPE REF TO if_wd_context_node,
          lri_element    TYPE REF TO if_wd_context_element.
    declarations for fuba parameters
      data:
        stru_c_material_general_dat    TYPE if_componentcontroller=>element_material_general_dat.
      DATA:
        attr_material    TYPE bapimatdet-material,
        attr_plant    TYPE bapimatall-plant.
    get all involved child nodes
      node_bapi_material_get_de = wd_context->get_child_node( `BAPI_MATERIAL_GET_DE` ).
      node_exporting = node_bapi_material_get_de->get_child_node( `EXPORTING` ).
      node_material_general_dat = node_exporting->get_child_node( `MATERIAL_GENERAL_DAT` ).
      node_importing = node_bapi_material_get_de->get_child_node( `IMPORTING` ).
    get input from context
      node_importing->get_attribute(    EXPORTING      name = `MATERIAL`
                                                         IMPORTING      value = attr_material ).
      node_importing->get_attribute(  EXPORTING       name = `PLANT`
                                                              IMPORTING       value = attr_plant ).
    the invocation - errors are always fatal !!!
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material =                        attr_material
          plant =                           attr_plant
    "      valuationarea =                   wd_This->Valuationarea
    "      valuationtype =                   wd_This->Valuationtype
    "      material_Evg =                    wd_This->Material_Evg
        IMPORTING
          material_general_data =           stru_c_material_general_dat
    "      return =                          wd_This->Return
    "      materialplantdata =               wd_This->Materialplantdata
    "      materialvaluationdata =           wd_This->Materialvaluationdat
      node_material_general_dat->bind_structure( stru_c_material_general_dat[] ).
    ENDMETHOD.
                                 but the problem is I  am getting the following error while compiling...
    " stru_c_materialplantdata " is not an internal table - the " OCCOURS n"  specification is missing.
    Thanks,
    Gopi.
    Edited by: Yegalaivan on Nov 18, 2009 8:30 AM

  • No Field Copy during creation of  assets Subnumber

    Hello,
    Is there any way to deactive the some field data during the Creation of Sub number when using the reference assets number.
    I have already unchecked the copy field in Screen layout setting for Assets master data. But still the Capitalisation date and Ordinatory depreciation dates are copyed from the reference assets number.
    I don't want to have the old value for the capitalisation date and ordinatory depreication strat date in the newly created Sub assets number.
    kindly show the wayout of this issue.
    With regards
    Satish Karanath k.

    hi Dominic Holdstock 
    Thanks for reply. you have given me vital clue to solve the problem. We have to uncheck the Main Assets number ("MnNo") in screen layout for master data.
    I have assigned point for you.
    With regards
    Satish Karanth k.
    Edited by: Satish Karanth on Dec 24, 2007 11:57 AM

  • Outline agreement or automatic schedule from scheduling agreement

    Hello Master's,
    Plz find the below workflow which will brief u abt the complete process;-
    1.User raises indent(me51n) and then releases(me54n) else as per our MRP, indent/PR gets generated automatically.
    2. Standard Practice is that we invite offers, negotiate and place order (me21n) else f we have rate contract for any item we go for direct ordering (me21n) and then get it released (me29n)
    For around 20-30k material codes we have rate contract finalized with various suppliers for a period of time.
    When we find any indent/pr falling into this category, we dont invite offer but go for ordering as per the finalized price. The price is maintained in excel or pdf format.
    Problem is we want to map material codes with vendor and rates associated with the contract.
    For this either we have to go for outline agreement(me31k) of scheduling agreement(me31l) so that whenever any indent/PR gets generated in this category, order/delivery schedule will be generated automatically in SAP.
    Points in which i need help from you:-
    1. How to generate automatic po from outline agreement or automatic schedule from scheduling agreement.
    2. complete understanding of the difference between outline agreement and scheduling agreement.

    Hi Nilson,
    The data contained within the global outline agreement is distributed as purchasing contracts or scheduling agreements to the backend systems of the release-authorized purchasing organizations of the relevant corporate group. These purchasing organizations can then use the purchasing contracts or scheduling agreements according to the terms agreed centrally within the global outline agreement.
    For more details.
    http://help.sap.com/saphelp_srm50/helpdata/en/42/f93dfd975f3ee6e10000000a1553f7/frameset.htm
    Nishant

  • How to create an infotype with one of its field length eq 1000.??

    hi ,
    i need to create a infotype where one of the field length is 1000 characters how do i achieve this. if i give more than 255 in the PS structure it will not allow. then how do i get a text field of 1000 chars in the screen ( which is an input field)

    You can use those function calls even inside a PA Infotype.. they just invoke the text ediotr table control.. I gave you the reference of the PD infotype 1002 just for an idea. I don't think you will able to meet your 1000 char reqt without using the text editor.
    ~Suresh

  • R/3 Field length 80, BW field max allowed 60

    Hi all,
    Field ABC is in R/3 production system.
    Its length is 80(CHAR).
    This field data is now to be extracted to BW.
    It is used in extract program and updated to an extract table(R/3), then this has be loaded into a master load(BW).
    But in BW the field length allowed is 60(Max).
    So how to get in this 80 char data into BW??
    Please let me know in detail.
    Also please share links pertaining to this if possible.
    Thanks,
    Sowrabh

    Hi Sowrabh,
    Create two Infoobjects one with length 60 and one with length 20.
    Now in transfer rules write routines for both.
    IOB1 = <r/3 field>+0(60)
    IOB2 = <r/3 field>+60(20)
    Regards,
    Mansi
    Edited by: mansi dandavate on Apr 23, 2009 6:23 PM

  • CATT - vendor/customer master address field length over

    Dear all,
       when use CATT to record vendor/customer master,the address some fields length are over recorded field length(ex. ADDR1_DATA-NAME4,ADDR1_DATA-STR_SUPPL3...etc)
    is there any config in CATT to solve this kind of problem?

    When you are doing your LSMW batch input recording, on selection screen (where you specify the sales org, distribution channel, division, account group, etc) please put a flag on "Use central address management" checkbox (SAPMF02D 0100 >  USE_ZAV).
    In this case you should be able to see and fill the desired fields.

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

Maybe you are looking for

  • How to find out who deleted the directory in Unix

    Hi Experts, In my system some body tampered the directories, and more over some body deleted the bin directory under the /usr/sap/trans in Unix operating system. now i am checking to find out who deleted and for the more logs. i am unable to find out

  • Unable to create a service in SDCCN

    hi all ,   i want to create a service in my Quality service in TC : SDCCN . but when i click on on the NEW button , i get a status message as 'no action is possible ' but i was able to do it on Development and production system . Do we need to change

  • Using V9 C++ parser within shared library (Solaris)

    I am trying to use the latest C++ version of XML parser within a shared library on Solaris (v8) but I am having a problem with an unresolved symbol when the shared library is loaded. ../bin/Release/xxsd: fatal: relocation error: file /space/xxs/bin/R

  • Jdeveloper more font family CSS

    Hi I need to use more fonts than the css has by default (jdev 11.1.2.3.0) look image http://img33.imageshack.us/img33/2567/7fuy.png

  • Stuck in XP limbo.

    Start off by saying Hi and I need help. My old hard drive was full on my current computer. I bought a new one and a guy from work did what he called a ghost image of my old hard drive onto the new one. I had to redo a few tiny tings here and there bu