Get the next new item number of service contract va43

Hi Experts,
I have to get the next new item number of the service contract (va43)
For example: I have the service contract number like 50100929
For this existed line items like 10,20,30
in this case The next new item number is 40.
How we can get this number .
Could any one suggest me.
Thnx,
Jaya.

Hi Nitish,
Thnx for Reply,
Acually I have to create the new item to the existed service contract , for that I am using the FM 'BAPI_CUSTOMERCONTRACT_CHANGE' .
1 . Except the Item numebrt,  if I pass the remaing data like (material,plant) I will create the new Item in the service contract.
2 .But for the same new Item if I pass the condition data with out the Item number it is going to short Dump ( In the short dump it showing Item number is missed )
I should do the above steps ( 1 & 2)  at a time using the FM 'BAPI_CUSTOMERCONTRACT_CHANGE'  other wise performancely its taking the time.
Thnx,
Jaya.

Similar Messages

  • Function module to get the next new 12 months of a year

    Hi All,
    I have a requirement to get the next new 12 months of a year from the current month , i.e. if my current month is June 2009 , I need to get June 2009, July 2009,...................., May 2010 .
    Does anybody know if there is any function module for this or is there any logic to implement this .
    Please could someone help me out with this.
    Regards,
    Sushanth H.S.

    Dear Srinivas,
    Have a look at the below code. It works fine. Change according to your req.
    REPORT ztest_notepad.
    DATA:
          month_index TYPE i,
          wa_t015m    TYPE t015m,
          it_t015m    TYPE t015m OCCURS 0 WITH HEADER LINE.
    DATA:
          BEGIN OF it_next12 OCCURS 0,
            months_12 TYPE string,
          END OF it_next12.
    PARAMETERS:
          p_month TYPE num2,
          p_year  TYPE num4.
    START-OF-SELECTION.
      SELECT * FROM t015m INTO TABLE it_t015m WHERE spras = sy-langu.
      READ TABLE it_t015m INTO wa_t015m WITH KEY monum = p_month.
      IF sy-subrc = 0.
        month_index = sy-tabix.
        LOOP AT it_t015m INTO wa_t015m FROM month_index TO 12.
          CONCATENATE wa_t015m-monam p_year INTO it_next12-months_12 SEPARATED BY '-'.
          APPEND it_next12.
          CLEAR  it_next12.
        ENDLOOP.
        p_year = p_year + 1.
        LOOP AT it_t015m INTO wa_t015m FROM 1 TO month_index.
          CONCATENATE wa_t015m-monam p_year INTO it_next12-months_12 SEPARATED BY '-'.
          APPEND it_next12.
          CLEAR  it_next12.
        ENDLOOP.
      ENDIF.
      LOOP AT it_next12.
        WRITE:/ it_next12-months_12.
      ENDLOOP.
    Thanks
    Venkat

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • I can't Start, Uninstall or Install new iTunes. I'm getting the same error message: Window Installer Service could not be accessed.  No other programs have similar problem. Any suggestion what can be done?

    I can't Start, Uninstall of Install new iTunes. I'm getting the same error message: "Window Installer Service could not be accessed". No other programs having similar problem. Any suggestions how to fix it?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) (not for XP) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • How to get the Next free Number for External Number Range

    Hi ,
    To get next free number for External Number Range, I have used NUMBER_GET_NEXT Function module.
    It is throws the exception like  NUMBER_RANGE_NOT_INTERN.
    How can i get the next free number for external number range object. And How to update the Current Number for External Number Range Object
    Scenario.
    Call Function module              NUMBER_GET_NEXT
    Import Parameter.
    NR_RANGE_NR : 02
    OBJECT            : RV_BELEG
    QUANTITY         : 00000000000000000001
    I am getting Exception : NUMBER_RANGE_NOT_INTERN
    Thanks in advance.
    Regards
    Ram

    Hi Anand,
    The SAP system issues the numbers for internal number range intervals automatically. This number is between the from-number and the to-number. The last number issued is logged in the current number level.
    You need to enter a number for external number issue. The number you enter needs to be between the from-number and the to-number. For external number ranges, the number number used is not logged. So the next available number is not possible in a straight forward way.
    Only for Internal number ranges, the FM NUMBER_GET_NEXT can get the next available number.
    Hope this helps.
    Thanks,
    Balaji

  • How to Get the required List Item values by using Where Clause

    I have two tables named "TAX_RULES","BILL"
    1. " Tax_Rules" (Sub_Head_Code,Tax_ID,Tax_Percentage)
    { While "Sub_Head_Code" field is unique,
    Tax_ID describes that there are two kinds of Tax_IDs based on Tax_percentage which is 6% for some Sub_Head_Codes and 3.5% for the remainng Sub_Head_Codes. I have given Tax_ID 1 for 6% and Tax_ID 2 for Sub_Head_codes having 3.5%. }
    2. "BILL" (Bill_ID,Sub_Head_Code,Tax_ID,Bill_Amount)
    {While "Bill_ID" describes unique Bill Identification Number,
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table}
    I have design form for both tables.
    In BILL form i am trying to get values of Tax_ID from Tax_Rules table at run-time by using WHEN-NEW-FORM-INSTANCE.
    For this whenever i select a Sub_Head_Code in Bill Form, all the Tax_IDs that i have recorded against each Sub_Head_Code which is either 1 or 2 against 6% and 3.5% respectively.
    But I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code ahould come in the LIST ITEM.
    I have used WHERE clause but that is useless.
    Following is the Code that i have applied in the WHE-NEW-ITEM-INSTANCE Trigger at FORM LEVEL
    <CODE>
    DECLARE
         rg_n1 VARCHAR2(40) :='TAX_ID';
         rg_idn1 RecordGroup;
         gc_idn1 GroupColumn;
         errcode NUMBER;
    BEGIN
         CLEAR_LIST('BILL.TAX_ID');
         rg_idn1 := Find_Group(rg_n1);
    IF      Id_Null(rg_idn1) then
              rg_idn1 := Create_Group(rg_n1);
         gc_idn1 := Add_Group_Column(rg_idn1,'EXPLAIN',CHAR_COLUMN,60);     
              gc_idn1 := Add_Group_Column(rg_idn1,'TAX_ID',CHAR_COLUMN,3);
         END IF;
         errcode := Populate_Group_With_Query(rg_idn1,'select TAX_ID,TAX_ID from TAX_RULES');
         POPULATE_LIST('BILL.TAX_ID',RG_IDn1);
    END;
    </CODE>

    In the Tax Rules table, you state:
    "Sub_Head_Code" field is unique
    In the Bill table, you state:
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table
    If the Sub_Head_Code is unique, then it's acting as a primary key, so Sub_Head_Code and Tax_ID in the Bill table are not behaving like a composite foreign key. The Sub_Head_Code is a foreign key, and the Tax_ID is irrelevant as far as keys are concerned.
    It is not clear what it is you want to do.
    If you want to display the Tax_IDs from the Bill table when you select a Sub_Head_Code from the Tax_Rules table, then change your query to:
    select TAX_ID, TAX_ID from BILL where Sub_Head_Code = :Tax_Rules.Sub_Head_Code
    If you want to display the Tax_IDs from the Tax_Rules table when you select a Sub_Head_Code from the Bill table, then change your query to:
    select TAX_ID, TAX_ID from TAX_RULES where Sub_Head_Code = :Bill.Sub_Head_Code
    If this is not what you want, then clarify what it is you want to do. Don't say:
    "I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code"
    because it is not clear what tables you are referring to.

  • How do you get the integer of a number with more than 10 digits

    I can't seem to be able to get the integer of a number with more than 10 digits.
    ex:
    integer(12345678901.3) returns -539222987 when it should really return 12345678901
    Thanks for the help
    (I'm on director 11 at the moment)

    You can write a Parent script to represent Big Integers. I wrote some code to get you started. It consist of two classes - "BigInt" and "Digit".  At this point you can only add two "BigInts" and print out the value with a toString() function. Note that you pass a String to the "BigInt" constructor.
    In the message window you could enter something like:
    x = script("BigInt").new("999999999999")
    y = script("BigInt").new("100000000000000000004")
    z = x.add(y)
    put z.toString()
    And the output window will show:
    -- "100000001000000000003"
    Here are the two Parent scripts / Classes
    -- Digit
    property  val
    property  next
    on new me, anInt
      val = anInt
      next = 0
      return me
    end new
    -- BigInt
    property  Num
    property  StringRep
    on new me, aString
      Num =  script("Digit").new(Integer(aString.char[aString.length]))
      curNum = Num
      repeat with pos = aString.length - 1 down to 1
        curNum.next = script("Digit").new(Integer(aString.char[pos]))
        curNum = curNum.next
      end repeat
      return me
    end new
    on add me ,  Num2
      curNum = Num
      curNum2 = Num2.Num
      result = curNum.val + curNum2.val
      if result > 9 then
        carry = 1
      else
        carry = 0
      end if
      result = result mod 10
      sum = script("Digit").new(result)
      curSum = sum
      curNum = curNum.next
      curNum2 = curNum2.next
      repeat while curNum.ObjectP AND curNum2.ObjectP
        result = curNum.val + curNum2.val + carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum = curNum.next
        curNum2 = curNum2.next
      end repeat
      repeat while curNum.ObjectP
        result = curNum.val +  carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum = curNum.next
      end repeat
      repeat while curNum2.ObjectP
        result = curNum2.val +  carry
        if result > 9 then
          carry = 1
        else
          carry = 0
        end if
        result = result mod 10
        curSum.next = script("Digit").new(result)
        curSum = curSum.next
        curNum2 = curNum2.next
      end repeat
      StringRep = ""
      me.makeString(sum)
      return me.script.new(StringRep)
    end add
    on toString me
      StringRep = ""
      me.makeString(Num)
      return StringRep
    end toString
    on makeString me, digit
      if not digit then
        return
      end if
      me.makeString(digit.next)
      put String(digit.val) after StringRep
    end makeString

  • New item number sequence

    Hi,
    Is it possible to have new item automatically default to next unused item number, meaning let's say last item creaed was 12345. When a user creates new item in inventory module, can this automatically default to 12346.
    FYI, I am using all Manufacturing modules including Engineering.Thanks.

    on the same note, I have found these metalink docs : 3342612 and 1365738. Not sure if there is an update on this from Oracle in the last few years. Surprised, why same functionality as Serial Control is not provided.

  • EAS Console - Not getting the option "Refresh security from Shared Services"

    Hi,
    In EAS Console 11.1.2.2, I am not getting the option "Refresh security from Shared Services" when I right click on Security (under Essbase Servers).
    However, I can see this option via EAS Console 11.1.1.3 (current existing version).
    Could you please let me know how can I get this option in EAS Console 11.1.2.2? Is this by any chance related to the option "Externalize Users"?
    Thanks in advance.

    Thanks a lot join for this information and your kind support .
    One more question:
    The owner of the Planning application is user 'hypadmin'.
    I can see the SIDs of user 5001 a little different in both the versions. Is this ok?
    Hyperion Planning 11.1.1.3 (Existing Environment)
    USER_ID     SID ROLE SYNC_PSWD OFFLINE_ENABLED HUB_ROLES
    50001          native://DN=cn=0fa19f8241602600:3b78a0e0:130926693d2:-78ba,ou=People,dc=css,dc=hyperion,dc=com?USER 3 2 0 5019
    Hyperion Planning 11.1.2.2 (New Environment)
    USER_ID     SID ROLE SYNC_PSWD OFFLINE_ENABLED HUB_ROLES
    50001           native://nvid=54aec0428a3ba591:-44b7ca9b:13f03c114d2:-5d99?USER 3 2  4507
    I have not yet performed "Externalize Users" yet in the new environment (11.1.2.2) throgh EAS Console. Is it required in the newer version 11.1.2.2?

  • I get the next mistake (fout is the dutch word for Mistake): "Fout: uncaught exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIDownloadManager.userDownloadsDirectory]" nsresult: "0x80520015 (NS_ERROR_

    OS: win XP pro SP 2
    I tried to download a pictures at a number of sites, but I never succeed.
    I installed some suggested add-ons to help the download proces: 'downthemall' and 'downloadhelper' but they didn't help. I went to help and did the suggested action by means of 'about:config' to fix the problem but still I get the next failure. I would be pleased if anyone can explain what it means. I would be even more pleased if anyone could solve this.
    == This happened ==
    Every time Firefox opened
    == from the moment I installed firefox

    Additional info: the following message is repeatedly logging in my error console:
    Security Error: Content at http://googleads.g.doubleclick.net/ may not load data from http:...
    The info following the second http:// depends on the website. I am getting this message at google.com, userscripts.org, digitalopint.com, and others.

  • I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I am having difficulty: we are running a windows server 2003 - mail and outlook support 2007 and upwards, how do I get the brand new apple machines to work with the 2003 version of server

    I may be way out, but do you know about this product, would it help integrate the Macs for you.
    https://www.thursby.com/sites/default/files/images/ADmitMacv8_SPD.pdf

  • How do I get the Next Button to appear on a form?

    I have a form built off of a view. I pass a parameter from a report through a link to launch the form with the appropriate values. I would like user to then be able to navigate to the next set of information from the report without having to navigate all the way back to the report. I tried to activate the Next button with the onClick event and doNext function but the button never appears to the user. Thank you for any assistance!

    Samuel,
    The reason that you don't get the "Next" button is that the query that the form is running on returns only one row. Take a look at EXAMPLE_APP.EXAMPLE_SQL_REPORT and EXAMPLE_APP.EXAMPLE_FORM. You'll find that this form also does not show the "NEXT" button when called from the report. However if you edit the report and change the link parameter from empno to deptno, you'll find that the button comes up in the form.
    I guess the best option you have is to create a custom button that simulates the functionality of the NEXT button i.e. have some logic to find out which empno must be the next one and then call the form like this :
    l_empno := <whatever logic you have come up with>
    l_url:=<portal_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<module_id of the form>&p_arg_names=empno&p_arg_values='||l_empno||'&p_arg_names=_empno_cond&p_arg_values='||<portal_schema>wwv_standard_util.url_encode('=');
    <portal_schema>.wwa_app_module.set_target(l_url, 'CALL');
    Hope that helps,
    Hsiu

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • How to get the next FACTORYDATE

    Hello all,
    Can somebody show me how to get the next (FACTORYDATE) from SAP in the objective to check and validate the shipto date in the ISA b2b application.
    Thanks in advance.

    Hi Manuel,
    my email: [email protected]
    thank you in advance,
    Djamel.

  • How to you get the percentage of a number in an array in ipad numbers

    How to you get the percentage of a number in an array in ipad numbers?

    Try asking here
    https://discussions.apple.com/community/iwork/numbers
    it's a part of the forum dedicated to numbers.

Maybe you are looking for

  • Nokia 808 Pureview Youtube Videos not working

    Hi guys, I just purchased my Nokia 808 and everything is running smooth except videos are not playing online. I am seeing a little f sign in the left upper corner which I believe is the flash player sign. I can see everything else in the window excep

  • Why won't Mail under Exchange send large attachments?

    I upgraded my new iMac to Snow Leopard in large part because of its support for connecting to Exchange 2007 servers, which I use for my work. But I can't send attachments of any size. Setting it up in Mail seemed to go fine - I connect using a softwa

  • Which JBOSS i should download for EJB?

    I want to run EJB program and any of you told me JBOSS server to run this. when i am downloading it, many downloads are available, which JBOSS version should i download. please send me link. Thanks

  • If you don't like MISSION CONTROL, here's my FREE fix.

    I stumbled on some free software called ISOLATOR.  It isolates every open program by itsellf, essentially placing each open app you have alone in a 'space'.  It's so simple and elegant it's almost impossible to describe. http://willmore.eu/software/i

  • TV has been broken for 2 months now.

    U guys hired the work out to a secondary TV repair company. I keep having to get a hold of him, because I don't hear from him for weeks. Last time I talked to him, he said the part was on back order, and I haven't heard from the guy in weeks. Can u h