Doubt in Generating Function!!!!!:(

Hi All,
It is said that
"A target field with maxOccurs=<n> that is assigned a generating function is generated <n> times in the target structure. if maxOccurs=unbounded for the target field, then exactly 5 target field are created".
But if we have done Message Mapping, we could realise that this statement does not hold.
Could anyone please help me out by explaining what this statement actually means.
Regards,
Sundar.

Hi,
Are you sure it is said like that?
Because in help.sap it says
http://help.sap.com/saphelp_nw04/helpdata/en/e4/82cf0ec8b9494db92e27e2be69524f/frameset.htm
+If generating functions are assigned to a target field, the attributes minOccurs and maxOccurs determine how frequently a value is generated:
If minOccurs = 0 the value of the function is generated once.
· Otherwise, the value of the function is generated as often as is specified by minOccurs.
    ( This applies regardless of the value set in maxOccurs. Even if maxOccurs = “unbounded“, the mapping runtime will still only generate the value as often as is specified by minOccurs.)+
Regards
Suraj

Similar Messages

  • MDX + Generate function

    Hi all,
    I have query below which works and I understand the output. However, if I remove the Generate I also get the top 5 products per country, descending order, but the Order amounts or not the same and thus not correct. 
    My question, what does the generate actually do to make it a different output?
    WITH SET [5MostInternetOrderedProductsByCountry] AS
    GENERATE([Customer].[Customer Geography].[Country].Members, 
     CROSSJOIN([Customer].[Customer Geography].CurrentMember, 
    HEAD(
    ORDER([Product].[Product].[Product].Members, 
    [Measures].[Internet Order Count],BDESC),
    5)
    SELECT 
          {[Measures].[Internet Order Count]} ON COLUMNS,
          {[5MostInternetOrderedProductsByCountry]} ON ROWS 
    FROM
          [Adventure Works]
    Thanks in advance for helping!

    Hi,
    Generate( Set_Expression1 ,  Set_Expression2 [ , ALL ]  )
    Applies a set to each member of another set, and then joins the resulting sets by union.
    If a second set is specified, the Generate function returns a set generated by applying the tuples in the second set to each tuple in the first set, and then joining the resulting sets by union. If
    ALL is specified, the function retains duplicates in the resulting set.
    Generate (MDX)
    Regards,
    Charlie Liao
    TechNet Community Support

  • Difference between Generic and Generating functions

    Hi,
    Can any body explain me the difference between Generic and Generating functions? Do also let me kwno which Standard functions are Genereic and which are Generating/
    Regards,
    Pranshu

    Hi Pranshu,
    All functions (regardless of whether they are standard or user-defined functions) that do not have input values are refered to as Generating Functions (Constant, Sender, Receiver and CopyValue() are generating functions). All other functions are generic.
    So, the standard XI functions can be generic or generating.
    Hope this helps
    Regards
    Kiran..

  • Difference between  Generating Function,  Generic Function, Conversion func

    Difference between  Generating Function,  Generic Function, Conversion function?

    Hi,
    Generating functions are those functions which do not fetch any values from the source message,but generate target message based upon some conditions.All functions(regardless of whether Used Defined or standard) which do not take any values are called generating functions.functions of the Constant function category(e.g.constant,copyvalue,sender,receiver) are generating functions.
    conversion is used to convert the data from one format to the other.
    for ex: we use the FCC parameters to get the desired solutions .
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/frameset.htm
    SAP conversion agent it a tool that helps to convert unstructured data
    (like EDI messages, work files, pdf files etc) into XI (or from XI)
    you just use an IDE to develop the program that you can later on
    put inside the adapter module (for fiel adapter for example)
    so no programming (as it's drag and drop)
    for many documents
    generic function?
    All functions (regardless of whether they are standard or user-defined functions) that do not have input values are refered to as Generating Functions (Constant, Sender, Receiver and CopyValue() are generating functions).
    Thanks
    Vikranth

  • Table Maintenance Generator - Function Group regeneration issue

    I have table maintenance genertor in a function group that contains lot of tables . I by mistable regenerate the whole function group using table mainteance generator.
    Now i want to check which of the programs changed during the regenerator. I am looking for some sap table that contains all the changed objects and their transport number.
    Please rememebr i have still not released the transport,
    I have checked E071, E071, VRSD . That contains the entry for function group and does not contains the programs inside the function group changed
    Thanks

    Thomas,
    Thanks for your reply. Currently I don't want to release the transport.
    Is there any table i can check which are programs changed without releasing transport
    a®s
    Edited by: a®s on Jul 13, 2009 12:42 PM

  • Doubt in ABAP function

    Hi,
    I have a doubt in one of the abap function module i use.
    This contain code to retrieve ,update and delete and create values in table. I am using this function  module to
    retrieve ,update and delete and create values in table.  This is the ABAP code.
    FUNCTION ZUP_DESIG12.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(DESG_CODE) TYPE  ZUP_DESIG-DESG_CODE OPTIONAL
    *"     VALUE(DESG_DESC) TYPE  ZUP_DESIG-DESG_DESC OPTIONAL
    *"     VALUE(DESG_ACT) TYPE  ZUP_DESIG-DESG_ACT OPTIONAL
    *"     VALUE(DESG_OPT) TYPE  ZUP_DESIG-DESG_OPT OPTIONAL
    *"  EXPORTING
    *"     VALUE(DESG_CODE_C) TYPE  ZUP_DESIG-DESG_CODE
    *"     VALUE(DESG_DESC_C) TYPE  ZUP_DESIG-DESG_DESC
    *"     VALUE(DESG_ACT_C) TYPE  ZUP_DESIG-DESG_ACT
    *"     VALUE(DESG_OPT_C) TYPE  ZUP_DESIG-DESG_OPT
    *"  TABLES
    *"      WA STRUCTURE  ZMSTR_DESIG
    DATA CNT TYPE I.
    SELECT MANDT DESG_CODE DESG_DESC DESG_ACT FROM ZMSTR_DESIG
      INTO TABLE WA.
    IF DESG_OPT = 'U'.
    UPDATE ZMSTR_DESIG
        SET DESG_DESC = DESG_DESC
        DESG_ACT = DESG_ACT
        WHERE DESG_CODE = DESG_CODE.
    MESSAGE 'Updated Successfully' TYPE 'I'.
    ELSEIF DESG_OPT = 'C'.
    SELECT COUNT( * ) FROM ZMSTR_DESIG INTO CNT
       WHERE DESG_CODE = DESG_CODE.
       IF CNT > 0.
       MESSAGE 'Duplicate Designation code' TYPE 'I'.
       ELSE.
      WA-DESG_CODE = DESG_CODE.
      WA-DESG_DESC = DESG_DESC.
      WA-DESG_ACT = DESG_ACT.
      MODIFY ZMSTR_DESIG FROM WA.
       MESSAGE 'Inserted successfully' TYPE 'I'.
    ENDIF.
    ELSEIF DESG_OPT = 'D'.
       DELETE FROM ZMSTR_DESIG WHERE DESG_CODE = DESG_CODE.
       MESSAGE 'Deleted successfully' TYPE 'I'.
    ENDIF.
    ENDFUNCTION.
    can any one what is  wrong in this function.
    Regards,
    H.V.Swathi

    My doubt is how to write code to insert data to table. I have written code like this.
    try{
             String str1= wdContext.currentTestElement().getCode();
              String str2= wdContext.currentTestElement().getDesc();
              boolean str3= wdContext.currentTestElement().getAct();
              String str4= wdContext.currentTestElement().getOpt();
              String str5;
              if(str3)
              str5=new String("x");
              else
              str5=new String(" ");
              Zup_Desig12_Input input=new Zup_Desig12_Input();
              input.setDesg_Code(str1);
              input.setDesg_Desc(str2);
              input.setDesg_Act(str5);
              input.setDesg_Opt(str4);
              wdContext.nodeZup_Desig12_Input().bind(input);
              wdContext.currentZup_Desig12_InputElement().modelObject().execute();
        }catch(Exception e)
             wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    But i am getting      java.lang.ArrayIndexOutOfBoundsException: -1
    in line
    input.setDesg_Act(str5);
    can any one help me plz

  • Doubt in update function module

    dear friends..
    i have created an UPDATE function module with Processing type- Update Module, Start Immediate. i have handled the exceptions using Raise statement in the function module..
    the call function looks as..
      CALL FUNCTION 'ZFI_LCTXN_TABLES_UPDATE'
        in update task
        EXPORTING
          ZLCTMB1  = p_lctmb1
          NU_ENTRY = p_global-ins_zlctmb1
        TABLES
          UPD_PO   = UPD_PO
          UPD_SH   = UPD_SH
        EXCEPTIONS
          ERROR    = 1
          OTHERS   = 2.
      p_subrc = sy-subrc.
      commit work.
    but if the update fails, and even though the RAISE ERROR works, and update termination message is registered in SM13, i dont get the value for sy-subrc as 1 .
    is it the right way..if yes please tell me how to generate an error message within the transaction..so that the user knows the update has failed..
    thank you for your time
    Nivin

    Hi,
    Maybe it's usefull  for you.
    <b>
      IF sy-subrc EQ 4.
        MESSAGE e001 RAISING not_found.
      ELSEIF sy-subrc EQ 8.
        MESSAGE e002 RAISING not_found.
      ELSE.
      ENDIF.</b>
    Using this to create a message and raise in the same time !
    Regards.
    Marcelo Ramos

  • Doubt in keyPressed() function!

    Hi to all,
    Im doing project in J2ME. In my source code, i used keyPressed() function to get the user's choice by using switch case.Now my doubt is, should i use one more keyPressed() function in inside my previous keyPressed() func.(i.e. nested keypressed() func)?.. For eg: In my application, there will be four choices.. 1.Cars 2. Bikes 3.Mobiles 4.exit...If an user press the key '3' means, i need to giv him one more choice screen like 1.Nokia 2.Sony ericsson 3.Motorola.. If an user press '2' means, have to display the info about sony ericsson...Right now im using code like the following:
    public void keyPressed(int key)
    switch(key)
    case KEY_NUM1:
    break;
    case KEY_NUM2:
    break;
    case KEY_NUM3:
    break;
    case KEY_NUM4:
    break;
    Now my doubt is....Should i use like the following:
    public void keyPressed(int key)
    switch(key)
    case KEY_NUM1:
    break;
    case KEY_NUM2:
    break;
    case KEY_NUM3:
    public void keyPressed(int key)
    switch(key)
    case KEY_NUM1:
    break;
    case KEY_NUM2:
    break;
    case KEY_NUM3:
    break;
    case KEY_NUM4:
    break;
    break;
    case KEY_NUM4:
    break;
    }

    My doubt is how to write code to insert data to table. I have written code like this.
    try{
             String str1= wdContext.currentTestElement().getCode();
              String str2= wdContext.currentTestElement().getDesc();
              boolean str3= wdContext.currentTestElement().getAct();
              String str4= wdContext.currentTestElement().getOpt();
              String str5;
              if(str3)
              str5=new String("x");
              else
              str5=new String(" ");
              Zup_Desig12_Input input=new Zup_Desig12_Input();
              input.setDesg_Code(str1);
              input.setDesg_Desc(str2);
              input.setDesg_Act(str5);
              input.setDesg_Opt(str4);
              wdContext.nodeZup_Desig12_Input().bind(input);
              wdContext.currentZup_Desig12_InputElement().modelObject().execute();
        }catch(Exception e)
             wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    But i am getting      java.lang.ArrayIndexOutOfBoundsException: -1
    in line
    input.setDesg_Act(str5);
    can any one help me plz

  • Doubt in using :Function Module : MS_CONVERT_TO_OTHER_CURRENCY

    Hi ,.
    In the Function Module :MS_CONVERT_TO_OTHER_CURRENCY.
    I have to export following parametes:
    DATE            
    FROM_CURRENCY   
    FROM_AMOUNT     
    TO_CURRENCY     
    COMPANY_CURRENCY
    RATE  (optional)    .
    Here my doubt is :what is the purpose of COMPANY_CURRENCY .What value i have to populate here , how i have to find the  company currency?
    I think we have to find this COMPANY_CURRENCY  based on the sales organization.
    Please update me regarding this COMPANY_CURRENCY .
    Thanks,
    Suresh.

    Have you tried using 'CONVERT_TO_FOREIGN_CURRENCY' instead?
    DATA: v_amount TYPE p DECIMALS 2.
    CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
    EXPORTING
    date = sy-datum
    foreign_currency = 'INR'
    local_amount = '1.00'
    local_currency = 'USD'
    IMPORTING
    foreign_amount = v_amount
    EXCEPTIONS
    no_rate_found = 1
    overflow = 2
    no_factors_found = 3
    no_spread_found = 4
    derived_2_times = 5
    OTHERS = 6.
    IF sy-subrc = 0.
    WRITE: / 'US dollar to Indian rupees - ', v_amount.
    ENDIF.

  • Call Function not Generating Function Module for Smartform

    Hi Gurus,
    We have a work copy print program use to print deliveries (smartforms). This program works fine in Production but right now we are doing some testing and I found out that when we run this program in QUALITY environtment, it shortdumps with error saying "Function Module Not Found"
    Basically when it gets to the Function Module "SSF_FUNCTION_MODULE_NAME", it could not generate any function module for the form it Sy-Subrc = 2 Exception meaning NO_FUNCTION_MODULE.
    The problem is this only happens in our QUALITY environment.I compare the function module in the 2 systems, there was not diff as this is a Standard SAP module. I passed diff smartforms we have in QUALITY through the FM and it will not generating any FM for any of them. So this is not an error from the smartforms, bcos all the same smartforms generates FM in Prod.
    So what I did next is to Debug the FM "SSF_FUNCTION_MODULE_NAME" in the 2 systems to see where the diff is coming from. I noticed 2 views that the FM is using, they are STXFADM and D010SINF . So on the Production system, STXFADM-LASTDATE and D010SINF-UDAT fields are the same value, so it generates the FM. On the QUALITY systems, the values are different hence it skips the code to generate the FM.
    Thanks Guys.
    Points will greatly be awarded for this.

    Please guys, help me look into this, I really need a solution fast.
    Thanks

  • Error generating Function Module 'TEXT_CONVERT_XLS_TO_SAP'

    Hi All,
    When i am executing the FM 'TEXT_CONVERT_XLS_TO_SAP' i am getting the error Error generating the test frame.
    Can you please tell me how to execute the FM.
    Thanks & Regards,
    Vivek Agarwal

    Hello...
                   Iam sending a sample code.
                   Hope it will helps U how to deal with FM :  TEXT_CONVERT_XLS_TO_SAP.
    TYPE-POOLS : TRUXS.
    TYPES : BEGIN OF TY_TAB,
             F1(10) TYPE C,
             F2(10) TYPE C,
             F3(10) TYPE C,
            END OF TY_TAB.
    DATA : WA_TAB TYPE TY_TAB,
           LT_TAB LIKE STANDARD TABLE OF WA_TAB.
    DATA : I_TAB_RAW_DATA TYPE TRUXS_T_TEXT_DATA.
    DATA : FNAM TYPE IBIPPARMS-PATH.
    PARAMETER : P_FNAM TYPE RLGRAP-FILENAME.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAM.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
       FILE_NAME           = FNAM
    P_FNAM = FNAM.
    START-OF-SELECTION.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        I_TAB_RAW_DATA             = I_TAB_RAW_DATA
        I_FILENAME                 = FNAM
      TABLES
        I_TAB_CONVERTED_DATA       = LT_TAB.
    LOOP AT LT_TAB INTO WA_TAB.
    WRITE :/ WA_TAB-F1, WA_TAB-F2.
    ENDLOOP.
    But my suggestion is why cant you use FM : ALSM_EXCEL_TO_INTERNAL_TABLE
    instead of TEXT_CONVERT_XLS_TO_SAP.
    The performance can be improved much by ALSM... FM.
    Thanks and Regards
    Sekhar.C

  • Doubt in Analytical Functions

    Hi,
    I am new to oracle , i have a doubt : I have written a query using analytical functions to get the desired , but i wanted the same in a normal query .
    INPUT TABLE :
    NAME AMOUNT
    A 100
    A 200
    A 300
    B 200
    B 300
    C 300
    Query : SELECT name,AMOUNT,ROW_NUMBER( ) OVER (PARTITION BY name order by name NULLS LAST) SRLNO
    FROM data ORDER BY name, SRLNO;
    output table:
    NAME AMOUNT SRLNO
    A 100 1
    A 200 2
    A 300 3
    B 200 1
    B 300 2
    C 300 1
    QUESTION: I wanted the same output table with normal SQL quey , but i don't want to use any partition statement here (nor any analytical functions) .
    Please provide solution for this .

    i don't want to use any partition statement here (nor any analytical functions) .Why not? What you want to do is what analytics does. I get suspicious when anybody - but especially somebody who's new to Oracle - aks how to do something different from using the built-ins provided by Oracle.
    I wanted the same output table with normal SQL queySo you're ruling out Pipelined functions and MODEL clauses? Or not?
    Cheers, APC
    blog : http://radiofreetooting.blogspot.com

  • Doubt in enqueue_array functionality

    Hi,
    I am using enqueue_array function to insert multiple rows in the queue. Payload type is user defined object (obj) containing one attribute: JMS Message. If I create a type (tbl) which is table of obj at the schema level then enqueue_array works perfectly and inserts all the rows into the queue.
    But If I don't declare a type at the schema level and instead declare it in the pl/sql block, then enque_array function doesn't work. I don't get any error but no row gets inserted in the queue.
    My doubt is why no row is getting inserted in the 2nd case? Does Oracle treats the 2 types in different ways? Please clarify. Thank you.

    Hi,
    I am using enqueue_array function to insert multiple rows in the queue. Payload type is user defined object (obj) containing one attribute: JMS Message. If I create a type (tbl) which is table of obj at the schema level then enqueue_array works perfectly and inserts all the rows into the queue.
    But If I don't declare a type at the schema level and instead declare it in the pl/sql block, then enque_array function doesn't work. I don't get any error but no row gets inserted in the queue.
    My doubt is why no row is getting inserted in the 2nd case? Does Oracle treats the 2 types in different ways? Please clarify. Thank you.

  • Generating function in for loop

    I am generating a function sin[2*pi(24MHz + f)] - sin[24MHz]. The 'f' has to vary from -2MHz to 2MHz. I have to add the output of this loop with another 24MHz sine wave input. I have attached the code, please let me know whether what has been done is right or no.
    Attachments:
    AD9852 Set FTW1.vi ‏50 KB

    No, you code makes no sense. You simply get an array of 10 identical values, because nothing changes as a function if iteration count.
    PKBombay wrote:
    I am generating a function sin[2*pi(24MHz + f)] - sin[24MHz]. The 'f' has to vary from -2MHz to 2MHz. I have to add the output of this loop with another 24MHz sine wave input. I have attached the code, please let me know whether what has been done is right or no.
    I don't understand your formula, e.g. what is "sin[24MHz]"? Just a constant?
    Is the solution 1D (y vs. f) or 2D (e.g. y vs. (f,t))?
    Can you point to a web site that describes the math?
    LabVIEW Champion . Do more with less code and in less time .

  • Sequence generated function

    Hi Folks
    can any one help me in finding a solution for restricting a function used by other procedures ..
    in my case i have function which is sequence number generator as it is used by other procedures its sequence is disturbed .
    solution is highly appriciated.

    it's failing what could be the root cause of this failure to insertPerhaps this:
    Session 1:
    SQL> create table testtable (id number primary key, col2 number)
    Table created.
    SQL> create function get_seq_num return integer
      2  is
      3  v_seqnum integer;
      4  begin
      5  select max(id)+1
      6  into v_seqnum
      7  from testtable
      8  ;
      9  return v_seqnum;
    10  end get_seq_num;
    11  /
    Function created.
    SQL> insert into testtable values(1,1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> insert into testtable values(get_seq_num, 2);
    1 row created.
    Session 2:
    SQL> insert into testtable values(get_seq_num, 3);
    Session 1:
    SQL> commit;
    Commit complete.
    Session 2:
    insert into testtable values(get_seq_num, 3)
    ERROR at line 1:
    ORA-00001: unique constraint (XXXX.SYS_C00162488) violatedTerrible idea to use a function while there are sequences for this purpose.
    Regards,
    Gerd
    Message was edited by:
    gerd_99
    Sorry, forgot to paiste the function code.

Maybe you are looking for

  • Trouble Connecting iPad and iPhone to Exchange Server 2010

    Exchange Server 2010. I have found some online instructions for connecting iPhones and iPods (or iPads) to Exchange Server 2010 using activesync.  I enter all the information as I understand it (the same info used to successful connect Droids), and I

  • File Manager & Bluetooth?

    Hallo. I have searched for a File Manager and a Bluetooth app but cant find any good one. When i hade a undroid phone, there was very good file managers who showed the root of the phone and the bluetooth was great. The only file managers i found for

  • Query Enhancement

    Hello everyone, I am trying to fetch data from LIKP and LIPS using INNER JOIN. The following are my selection criteria : 1. Shipping point/receiving point - LIKP-VSTEL (Mandatory) 2. Delivery Date - LIKP-LFDAT (Mandatory) 3. Receiving plant for deliv

  • No Such method found error

    I am getting this exception while deploying an ear file Any solution to solve this java.lang.NoSuchMethodError: IE.Iona.OrbixWeb.SSL.IT_SSL.init(Lorg/omg/CORBA/ORB;)LIE/Iona/OrbixWeb/SSL/IT_SSL; at com.ten.snt.SS.ei.Connection.initializeSSL(Connectio

  • I-Movie project file not readable!?!?!

    Just did a lot of work in I-Movie 4.0 and had a good 25 min. of almost finished movie and a lot of clips stored in the clip window. This is a project I have been working on for a few weeks. Later when I went to turn I-Movie back on it said the I-Movi