Counter Problem for Target segments

Hi All,
I am facing a typical problem... Need your valuable inputs..
I have two segments E1TXTP9, E1TXTP8 in the source which will be repeated n times...
And Target i have two structure I9INPT00, I9INPT00(this is duplicate subtree)
E1TXTP9-->TDLINE is mapped to first I9INPT00
E1TXTP8 -->TDLINE is mapped to second I9INPT00
The problem is in both I9INPT00 i have one counter field PIINBR...
I am getting the output like this if i give counter function to the field PIINBR to both I9INPT00
First I9INPT00 -->PIINBR
1
2
3
4
second I9INPT00 --> PIINBR
<b>1</b>
But i should get the out put like this
First I9INPT00 -->PIINBR
1
2
3
4
second I9INPT00 --> PIINBR
<b>5</b>
I have tried using user defined functions using GlobalVariable but i am not able to set the second I9INPT00 value as 5...
Please help me..
Thanks and Regards,
sridhar

Hi,
maybe you can try this:
1. create a UDF to which you will connect
E1TXTP9-->TDLINE
2. inside this function count how many E1TXTP9-->TDLINE
are there and start the counter from this number +1
3. and connect this UDF to second I9INPT00 ?
do you ge the IDEA ?
BTW make sure the UDF is type = <b>queue</b>
(to store all E1TXTP9-->TDLINE occucancies)
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • Changing archived status for target group or segmentation model.

    Hello, CRMies!
    In SAP CRm WEBUI i set "To archive" flag for segmentation model and now it has status "Archived". The problem is hat it became inactive now and i can't reset this status. I didn't execute any archiving reports, just set the flag on.  I was looking for any FM or reports to recover the status.
    Anybody knows how to unarchive segmentation model or TG?

    Hi Katya,
    as far I know the segmentation model is archived with the next scheduled archive run once the status 'to be archived' is set. The status can be undone before the archive run, once this is archived there is no way other then generating the segment again.
    Please refer to the online help about further information:
    Archiving Segmentation Elements - SAP Library
    For target groups andproduct segments there is also a read program in transaction SARA, which you can use to display the archived segmentation elements again at a later point in time, if required.
    Furthermore, the information structure SAP_CRM_MKTTG_I is available for target groups and product segments in the transaction SARA.
    You can not only read, but can also load archived segmentation models into the system. However, you should only use this function when it is absolutely necessary. For further information, see Reloading Archive.
    Since you cannot load target groups or product segments into the system, you need to generate these again to be able to use them.
    I hope this helps.
    best regards,
    Johannes

  • Currency Translation in Planning sequence with variable for target currency

    Hello ,
    i have a requirement, the cube contains multiple data in the Group Currency for multiple company codes. & I want to convert these amounts to another KF as local currency using planning sequence only (not using transformation, as the users want to do this when they require.)
    For this, i defined a Aggr level , filter & Planning function with Currency translation selecting the source field as AMOUNT_GC & target field as AMOUNT_LC using the Currency Translation type ZCTGCLC.
    The target currency is not know beforehand, as it depends on the company code of each records that comes in.
    Hence, Currency translation type uses  a Customer exit variable 'Z_R_0026' for target currency.
    This is customer exit variable which searches the Master data table of the Company code & replies back with the local currency of that particular company code (derived value from the company code variable also in teh filter).
    However, when i execute this planning sequence, it gives me an error saying, "no value found for variable 'Z_R_0026'
    1. when edit the CMOD code, to return only say "EUR" the planning sequence runs fine.However when i use this select statement to fetch the corresponding value of the currency using the company code reference from the company code master data table, it gives the above error. it seems to be a problem with the select statement.
    below is the code for that exit
    when 'Z_R_0026'.
         data: l_curr type /BI0/OICURRENCY.
         IF i_step = 2.
           LOOP AT i_t_var_range INTO loc_var_range
                              WHERE vnam = 'Z_S_0003'. " Company Code Single
             CLEAR l_s_range.
        Filling Currency Key from Company Code
             select single currency
             from /bi0/pcomp_code
             into l_curr
             where comp_code = loc_var_range-low
             and objvers = 'A'.
             if sy-subrc = 0.
               l_s_range-low = l_curr.
             else.
               l_s_range-low      = 'ABC'.
             endif.
             l_s_range-opt      = 'EQ'.
             l_s_range-sign     = 'I'.
             APPEND l_s_range TO e_t_range.
             clear l_s_range.
             EXIT.
           ENDLOOP.
         ENDIF.
    2. there is a option of using infoobject for target currency in the RSCUR itself, however, when i try to input the 0COMP_CODE for finding the attribute currency from this infoobject, it doesnt accept.
    has anyone tried this earlier ?
    Any help/suggestions , guys, pls?
    Thanks
    John

    Hi Praveen ,
    Thanks for that.
    I have a Question.
    If RSCUR were to only accept a Date InfoObject , it would be placed under a differnt heading.
    The Tab is "Currrency"  & the sub-Tab is "Target Currency"
    so i guess, it should accept other infoObjects as well.
    Moreover, the help on that InfoObject buttons says
    "Specification of an InfoObject (Characteristic) in which a currency
    attribute is stored in InfoObject maintenance. At runtime, the
    associated currency attribute is determined using the characteristic
    value and this is interpreted as source or target currency."
    & i have already defined 0currency as a attribute of 0comp_code. so this should work ideally.
    almost similiar CMOD code i have used for other too, but i dont know why only this one is getting struck.
    any help, pls.
    Thanks
    John
    Edited by: John Lewis on Apr 17, 2009 3:24 PM
    Edited by: John Lewis on Apr 17, 2009 3:25 PM

  • Problem with profitability segment derivation while posting sales order

    Hello,
    We have the issue of profitability segment being not derived when the sales order is changed using BAPI 'BAPI_SALESORDER_CHANGE'. Subsequent to calling this BAPI we execute a BDC - to derive the profitability segment - which runs well in the foreground but fails in the background. Immediate help in this regards would be of immense help.
    I have searched the forum but could not locate anything useful. There is this thread (Re: BDC for profitability segment VA02 (sales order)) citing the same problem but without answers.
    Kind Regards,
    Indu Shekar

    Probability Segment is maintained but  Profitability Segment is still grayed out.
    The only way i was able to move things to COPA  was to do a project Settlement from
    WBS element to Profitability Segment (PSA).
    But does anyone know if we can move things to COPA during Sales Order (specifically for a project-based Sales Order)?
    Thanks.

  • Mapping Issue. Parsing problem to target Fields based on condition.

    Hi All,
    File to Idoc scenario.
    My file looks like below.
    HD 89650 28/01/11 "Presciber tan"
    AF "disc-rsn"
    RK "007287001" A
    KE disc-code "007287"
    KE addr-num "001"
    DF fax-num ""
    DF in-out "I"
    DF phone-2 "23221"
    AF "drs"
    RK "007287" A
    KE dr-num "00221"
    KE addr-num "001"
    DF affil "OPSM"
    DF rec-stat "A"
    DF phone-2 "12444"
    AF "disc-rsn"
    RK "dr-addraddress-1 17287|1EN" A
    KE disc-code "008287"
    KE field-name "address-1"
    KE element " 1"
    DF in-out "I"
    DF phone-2 "1232"
    DF post-code "3109"
    DF provider-num "5349201J"
    DF rec-stat "A"
    T         24
    I need to capture and create target segments only for the values "AF "disc-rsn"".And pass all the relavant rows (RK,KE,DF...) which are under "AF "disc-rsn"" to the target fields.
    I'm struggling to parse the value to the output structure as RK,KE,DF will be present under anywhere like "AF drs", "AF disc-rsn" etc.
    I'm able to create the target segments (2 Zdisc segments as 2 "AF disc-rsn" present in the file), but unable to parse the field values to the target fields.
    Ex: DF phone-2 is present in 8th, 15th,22nd row. I need to pass only 8th and 22nd rows to the target fields.
    After content conversion, My Source XML looks like below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <MT_DiscountDetails>
    - <HD>
      <KeyField>HD</KeyField>
      <HDRow>89650 28/01/11 "Presciber tan"</HDRow>
      </HD>
    - <AF>
      <KeyField>AF</KeyField>
      <AFRow>"disc-rsn"</AFRow>
      </AF>
    - <RK>
      <KeyField>RK</KeyField>
      <RKRow>"007287001" A</RKRow>
      </RK>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>disc-code "007287"</KERow>
      </KE>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>addr-num "001"</KERow>
      </KE>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>fax-num ""</DFRow>
      </DF>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>in-out "I"</DFRow>
      </DF>
    - <DF>
    Is there any way I can acheive my  mapping based on the above condition?? Kindly suggest me.
    Thank you for your time.
    Regards
    Deepthi

    Not required. Using Java function. Solved the issue.

  • Invalid Path for target file, check if connector is deployed correctly

    Hi all,
    I've got a tricky problem over here: we are using OMB scripts for generating simple extract mappings that just copy data from an oracle source table to a flat file on a directory. Up untill now ( with version 11.1 ) this did not pose any troubles, but now we are using 11.2 for the first time and we don't get the mappings to execute. Generating, validating and deploying all works fine, only executing fails with the error: "Invalid Path for target file, check if connector is deployed correctly". It ends to rapidly, so I'm assuming the problem lies in the repository and not on the database itself.
    I'm pretty sure all locations are defined as needed, flat file operator in the mapping has correct location, the flat file module has the same location,...
    I tried almost everything: recreate oracle module, recreate flat file module, unregister and recreate db location, unregister and recreate dir location, recreate mapping and flat file, export/import...
    The strange thing is, I was able to execute a mapping once. Although it ended with an error (due to a function in the mapping), it created the file correctly. After that I needed to update the directory path of the target location and from then on, I always got the error above, and I don't see a good reason.
    Any suggestions??
    Tnx,
    Michel

    That error is displayed when the generated code fails to execute with one of the following database errors;
    UTL_FILE.INVALID_PATH
    UTL_FILE.INVALID_OPERATION
    UTL_FILE.INVALID_FILEHANDLE
    So its worth checking the generated code for that map and searching for the code around UTL_FILE.FOPEN and seeing what the path and the file name in the code are. Maybe the file is created with permissions such that it can be created but not then re-written and its an OS permissions thing (such as UMASK settings).
    Cheers
    David

  • 6500 Slide Counter problem

    Is there a way to turn off the picture counter auto reset?
    Everytime I move the pictures to the computer the counter starts over from Pic000 is there anyway to turn this off? I want it to keep on counting so I dont get any "replace existing file" when I move the pictures to the computer.

     had this problem for ages too and it irritated the hell out of me. i only just found that you can use the 'default title' option
    type in what you  want your photos to be named as ie picture, image
    then it'll automatically number them correctly as the number of pics taken rather than trying to fill in the numbers.
    I put in "Nokia6500slide" so i could keep track of what phone the pics came from, and it puts the correct numbers at the automatically in proper order of how many pics the camera has taken since then (even when you change folders or delete photos it seems as far as i can tell
    hope you get this and hope it helps

  • How to Pass Multiple data records into SDATA for a segment

    Hi Friends,
    I need to Pass data records to Function Module
    MASTER_IDOC_DISTRIBUTE for Creating Outbound IDOCs
    I am Collecting all the Data Records and Passing into the Structure EDIDC.
    Here my problem is
    For one Route there are Multiple Customer records.
    so my First Parent Segment is ZROUTE
    i am passing the Datarecord for this Segment.
    and for the Customer Segment , I have 5 Customers,
    so i am passing the 5 Data records to SDATA .
    Loop at gt_route into gw_route.
    Pass the Route data into the Data record SDATA
      gw_idocdata-sdata    = gw_route_header.
      gw_idocdata-segnam = lc_route_header.
      gw_idocdata-hlevel = lc_4.
      APPEND gw_idocdata TO gt_idocdata.
      CLEAR : gw_route_header, gw_idocdata.
    Loop at gt_customer into gw_customer
                                   where anlage  = gw_route-anlage.
    Pass the Customer data into the Data record SDATA
      gw_idocdata-sdata  = gw_customer.
      gw_idocdata-segnam = lc_customer.
      gw_idocdata-hlevel = lc_5.
      APPEND gw_idocdata TO gt_idocdata.
      CLEAR : gw_customer, gw_idocdata.
    ENDLOOP
    ENDLOOP.
    So this customer segment is comming 5 times in my IDOC
    Can any one suggest me whether i am going in correct way or not.
    I am Getting the IDOC status 26.
    Error during syntax check of IDoc (outbound)
    I think it is because the IDOC is not yet SET RELEASE.
    But i am having the Dought in Passing the data to SDATA fied
    of the EDIDC Structure.
    Can any one Suggest me.
    Thanks in Advance,
    Ganesh

    Hi,
    First of all EDIDC is the control record, EDID4 is the data record. When collecting customer record into idoc_data you need to insert customer's parent segment number.
    Eg.
    route1, segnum 1.
       child 1, segnum 2 and parent segnum = 1
       child 2, segnum 3 and parent segnum = 1
       child 3, segnum 4 and parent segnum = 1
    route 2, segnum 5
       child 1, segnum 6 and parent segnum = 5
       child 2, segnum 7 and parent segnum = 5
       child 3, segnum 8 and parent segnum = 5
    Cheers.
    ...Reward if useful.

  • Currency conversion type with variable for target currency

    Hi,
    I use a currency conversion type with a bex variable for target currency in a query in order to convert a Key Figure. It works fine but instead of short text description there's the technical description of the variable in the selection screen. How can i change the description of the variable ?
    For information, in the bex, we can't see the variable in "variable sequence". I use BI 7.0
    François.

    Hi,
    The problem was that in the maintenance of the currency translation type the option  Target Currency from Variable” was checked. As a consequence in the properties of our key figure the drop-down-list Target Currency was set to  from variable” with no chance of changing it (it was grey).
    What we can do was to choose the option  Target Currency Selection with Translation” instead of  Target Currency from Variable”. Now, in the properties of the key figure we can choose the variable in the dropdown-list Target Currency and tick the option “Variable Entry”. As a result, the variable shows up in the query properties and we can change its arrangement.
    Regards,
    Siva Patil.

  • How to generate multiple files for each segment in the IDOC

    Hi,
    I have a IDOC with multiple segments, for each segment, a file needs to be generated,
    There is only one target structure. Please let me know as to how do we handle this requirement in XI.
    Regards,
    Younus

    Use multimapping in message mapping. Then map the Idoc node to the Message Type of File.
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Regards,
    Prateek

  • Personalization (Cross-Selling Rules for Target Group) in E-commerce

    Hi,
    Could any one suggest solution for the query...
    Scenario: Personalized Cross-Selling for Target Group in a Webshop (E-Commerce-B2B Occasional User Scenario). The Cross Selling is to
    appear only for Target Group, but the system is prompting the Cross Selling
    Rule for both Target Group aswell Global. The Config details are below
    mentioned.
    1. In Method Schema (11) we maintained Cross Selling Methods for Global as well
    as Target Group.
    (CRM_MKTPR_PP_CS_GL_READ & CRM_MKTPR_PP_CS_TG_READ).
    (I did remove Global Method for testing, but still it is appearing for Global
    Target Group)
    2. Created Cross Selling rules in CRM for Target Group Target Group & is
    Activated.
    3. Target Group Modeling done in Segment Builder.
    4. Target Group Assignment done in the webshop.
    5. Application Administration related tasks (clearing done).
    6. Product Catalog Updated Replication is done aswell.
    7. Simulation of Product Proposal is done using program
    "CRM_MKTPR_PRODUCT_PROPOSAL"
    Please suggest me if I miss anything to recommed Cross-Selling rules only to the Target Group.
    Thanks in Advance,
    D u r g a r a o

    Cartweaver
    http://www.cartweaver.com/
    Web Assist Power Store
    http://www.webassist.com/support/ecommerce-options.php
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Warning "Source selection for is incompatible for target selection" in RRI

    Hi Friends,
    I am getting the following warning message while jumping from one query to another(RRI) :
    Source selection for is incompatible for target selection
    I have also found one SAP Note : Note 1265027 - Incompatible selection for a variable in the target query which states that it is a program error and we have to Import Support Package 04 for SAP NetWeaver BI 7. 01 (SAPKW70104) into your BI system for SAP NW BI 7.0 Enhancement Package 1.
    But the problem is we are already in Support Package 04 .After that also we are facing the same problem.
    Can anyone please let me know how to fix this issue?Is anyone faced such an issue.
    Thanks in advance.
    Regards,
    Debjani..

    check if the correction instruction given in the note is present in your system.

  • Problems for installing

    I've some problems for installing HTML DB 1.6 in my
    Oracle Database (v9.2.0.2 for Windows XP). After the runtime script is terminated the installation log shows several errors.
    The first error encountered is:
    [coreins.sql] ...grant privs to flows owner
    grant create job to FLOWS_010600 with admin option
    ERROR at line 1:
    ORA-00990: missing or invalid privilege
    Afterwards there is more to come:
    [tab.sql] -- W O R K S P A C E
    create table wwv_flow_companies (
    ERROR at line 1:
    ORA-01658: It isn't possible to create INITIAL extent for segment in the tablespace SYSAUX
    I've tried to install either from single package (zipfile) or from 10g Companion CD (HTML DB standalone), but after every re-installing the log always shows compilation errors.
    Anyway, when I try to login on page .../htmldb_admin I get that it isn't possible to display any page.
    Any ideas on what I should do?
    Thanks in advance for your help.
    Regards.

    First of all I've no windows edition but a sun one. But your problems don't seem to be platform dependant.
    - Are you sure that you connected as sysdba?
    sqlplus /nolog
    connect / as sysdba
    - Did you first create the workspace SYSAUX? It is just
    an alias for an existing tablespace. It can be named
    like you want but has to be exist befor starting the
    sql-script.

  • Counter problem while lot no is being changed

    hi dears,
    I face  a   problem for counter in my report.
    I am developing a report  for qm module for inspection lot .
    This report shows the result of recording for each lot no.
    The problem is that in out put the serial no. shows like this
    Lot no. 1
    1 a
    2 b
    3 c
    4 d
    Lot no2
    5 a
    6 b
    7 c
    8 d
    But the o/p should come like this
    Lot no. 1
    1 a
    2 b
    3 c
    4 d
    Lot no2
    1 a
    2 b
    3 c
    4 d
    And my code is as this
    Loop at itab.
    Loop at itab1.
    Write: sy-tabix, itab1-kurztext.
    Loop at itab2.
    Write: itab2-output.
    Endloop.
    Endloop.
    Endloop.

    Hi,
    Write the code as below :
    itab1[] = itab[].
    Sort itab by lotno.
    delete adjacent duplicates from itab comparing lotno.
    loop at itab.
         write : lot no.
         loop at itab1 where lotno = itab-lotno.
         count = count + 0.
         write :  count, item.
         endloop.
         clear count.
    endloop.
    Thanks,
    Sriram Ponna.

  • Hard drive beachball problem for the 17"

    Ok, so I know that there is already a few posts about this issue, (including the very large 96 page one) but I wanted to start a post for those of us with a 17" MBP that are having the same issues.
    I was on the phone to a senior technician at Apple (Australia) today for about 2 hours trying to sort out this problem. Firstly he was a bit hazy about the issue to begin with assuming it was a RAM paging issue. Seriously, this thing has 4gb of ram, I think you would have to running so much stuff at once for it to legitimately run out of ram. I'm a web developer/designer so I can push the machine reasonable hard sometimes but I get the beachballs even when I only have safari and mail open. This is the fastest (stock) laptop Apple have ever produced, surely it can handle a bit of stick.
    So I suggested it could be the hard drive/firmware etc and mentioned about the large amount of people on here with the exact same issue. After looking into some internal documentation he noted that there was indeed similar problems happening around the place but he seemed convinced that this only applied to 13" and 15" models and that the 17" never got the 1.7 firmware update.
    After looking at the firmware page: http://support.apple.com/kb/HT1237 it seems maybe he's right. I can't see my boot ROM version there anywhere (MBP52.008E.B05) The mid 2009 model 17" isn't on that list.
    Whilst my friend at Apple is reasonably sure that my issue is software related and wants me to watch the console when Im having the freezing, I'm positive that I'm having the exact same problem as the 13 and 15s.
    Can other people with 17" MBP that are having the same issue please post here so that we can begin to build a case for Apple to acknowledge the problem for our model too? Please add whether you have installed a 3rd party hdd or whether you are having the problem despite only having the stock hdd like me.
    Thanks guys.

    soniktrooth, count me in. I am experiencing the same problem myself - I just recently posted over in the mega forum here: http://discussions.apple.com/thread.jspa?messageID=10222616#10222616
    There is a chance that the hard disk could be at fault I guess, but the symptoms of this problem for me are remarkably similar to what I've read in the 96 page post, and on the macrumors forums. To summarise:
    * the problem usually begins when I'm playing iTunes all day, and then I'll go to save something, say in TextMate, and then iTunes stops playing.
    * Any app you then try to switch to while the freeze is there will then just beachball itself.
    * Like you, I know this is something out of the ordinary, since iTunes rarely stops playing music, and hardly ever did on my 4 year old G5.
    * I can make the problem go away by restarting and zapping the PRAM. All day today my computer has been fine, but I suspect that sometime tomorrow it'll probably start all over again.
    * My drive is a factory Hitachi 5400 RPM drive... what do you have?
    * My boot ROM version is the same as yours too.
    * I have 8GB of RAM in this machine, so I'm pretty **** sure it's NOT a paging issue for me. paging issues never last 20-30 seconds though, that's absurd if anyone claims that is the cause... also, the hard disk doesn't really crank noticeably while the freeze is there.
    I'm wondering if there was some sort of revision too for this model that may be causing this. Seems unlikely that Apple would have changed the motherboard between the january model and this one, but I'm not sure if this is absolutely confirmed...

Maybe you are looking for

  • Chart(graph) is not displaying in my Excel output

    Hi All, I was working with oracle EBZ R12, and bi publisher 10g, I have developed a RTF with graph, when i moved the RTF and run the report through application (the Excel output is not showing the Graph,but in pdf output the graph is coming fine). I

  • Run in Background

    Hi I wrote a program which will write a flat file to application server and presentation server at a time. It runs fine in foreground. But when i execute it in background iam getting status cancelled. What could be the problem?. Iam clicking on the F

  • How to get-set Hidden field value from JSP ?

    Hii, I am quite newbie about jsp and looking for some help.. I have several url links on my jsp page. I when I click one of them, I want to reload my page with new request parameter(s) but also keep the older one(s) in hidden field(s)... but I dont k

  • Syncing prob:icons for apps won't sync from Mac to ipod touch G1

    I have a 1st Generation iPod touch, 32 GB and the latest version of iTunes on my MacBook Pro. I have tried several times to sync my laptop to my iPod...all goes well except it won't sync the icon pictures of my apps to my ipod...except 2 or 3. Please

  • Can't acces the database with EM database control

    I just did a fresh 10g R2 (only oracle home) installation on a laptop with Win XP SP2 (spanish) and everything was fine. I can connect to de database using Plus or any other development tools. But when I open the EM start page (host:1158/em) using ei