User can not add more then two products against one order

Hi frnd,
My requirement is in CRM while creating order using CRMD_ORDER transaction. The user can not be entered more then two products against one order.
I am using CRMD_ORDERADM_I_BADI badi to give error I am unable to use this badi. Is there any other options are there.
Please do need full help.
Regards,
Ashish.

Hi Amit,
DATA: gt_header TYPE crmd_orderadm_h. "OCCURS 0 WITH HEADER LINE.
data: ET_PRODUCT_I     TYPE     CRMT_PRODUCT_I_WRKT.
data: gs_PRODUCT_I     TYPE     CRMT_PRODUCT_I_WRKT.
DATA : gt_header_guid     TYPE     crmt_object_guid_tab.
DATA : gs_header_guid     TYPE     crmt_object_guid.
  gs_header_guid = IV_HEADER.
*INSERT gs_header_guid INTO TABLE IV_HEADER.
  CALL FUNCTION 'CRM_ORDER_READ'
    EXPORTING
      it_header_guid       = gt_header_guid[]
    IMPORTING
      ET_PRODUCT_I         =   ET_PRODUCT_I[]
    EXCEPTIONS
      document_not_found   = 1
      error_occurred       = 2
      document_locked      = 3
      no_change_authority  = 4
      no_display_authority = 5
      no_change_allowed    = 6
      OTHERS               = 7.
endmethod.
I am using ds code. Its working fine records are coming in Product. But how i will save product into one
itab.
Regards,
Ashish S

Similar Messages

  • Can not add more contacts on address book

    Hello
    i have a blackberry curve 8520.
    at the momment i have 288 contacts but i can not add more. I go to menu, address book, new contact, the window give me the options, i add the information (name, phone, email, etc) and when i want to save the contact it do not save
    i tried to reboot removing the battery for a minute and restart but still with the same problem.
    Also i figured out that when y sync my bb with the desktop manager, the address book is not sync it says (Adress book not installed) that is why i can not swipe the contacts to reinstall the info because i have no back up of the address book
    Please i need some help with this issues
    thanks
    Solved!
    Go to Solution.

    While there is no hard limit on how many contacts you can have in your device, there is a soft limit in that you can only have as many as your device memory can handle. Check your available memory to see if you have any remaining space. If not, then consider cleaning out/uninstalling some things you do not need in order to increase available memory for more contacts.
    Disclaimer: I'm just a regular user like the rest of you. I have spent a lot of time learning the limitations of the Blackberries to know how to fix most problems. If I have suggested a fix, please give a kudo and mark as a solution!

  • I can not establish more then 1 call at the same time

    Hi,
    I have SPA9000 with four active accounts. I can not establish more then 1 call at the same time. Accounts are all in registered state. The field in SIP tab, Default Group Line:, is by default: 1,2,3,4 which means if line 1 is busy try the next one in the order ( in this case number 2). But this is not happening. It always tries to dial out with the first line (account). There is no problem with the provider and I don't want to specify groups of userID's and to assign them special line for dialing out.( by the way in this way it is possible to establish more parallel calls, but then each user will always have to dial thru specific line only). Please help me to find out if the SPA is faulty or give me some workaround, so that when I try to make a call , if one line is busy to dial out thru the next available.
    P.S. I suspect that SPA9000 does not notice when the line is busy or not. Maybe there is some issue with the Control Timer Values (sec) on Regional tab.
    Thanks,

    no it can only be one person at a time

  • Can you add more then one song to idvd slideshow?

    i have a lot of images on a idvd slideshow and i need more then one song.. ive heard this same one for about 3 times! does anyone know if you can add more then one song to a slideshow??
    thanks in advance...
    keri

    Create a Playlist in iTunes. Select that Playlist in the Audio section behind the Media button in iDVD '08.

  • HT204380 Can you have more than two people on one facetime call at a time?

    Can you have more than two ipad/iphones on one facetime call at a time?

    Sure, you have have more than one person using each device
    But, only two devices can connect using Facetime.

  • Can not add more entries in feature ABKRS

    Dear Expert,
    This is very strange and gives me a real headache because it's supposed to be very simple.  I have feature ABKRS that queries TCLAS, MOLGA, PERSG, and finally BUKRS.  I need to add more entries in BUKRS field but I can't.  The value of BUKRS that I choose is not displayed on the list and  I've tried several times since yesterday with no result.  Is this a bug or what ?
    Please anyone help me..
    Regards,
    Arief

    Hi Sikindar, below is the screenshot.  I'm planning to add company codes for each and every existing employee groups.
    ABKRS ABKRS  Default value for payroll accounting area                   Status: Active
      ---   TCLAS Transaction class for data storage
    --   B Applicant data
          ---   otherwise
              ---   MOLGA Country Grouping
    --   34 Indonesia (INDONESIA)
    ---   PERSG Employee Group
    --   1 Direct
    ---   BUKRS Company Code
    --   2001 PT Riau Andalan Kertas
    --   2005 PT. East Indonesia Airtax
    --   2007 PT Riau Andalan Pulp&Pape
    --   2012 PT. Anugrah Kertas Utama
    --   2015 PT. Asia Prima Kimiaraya
    --   3000 Asianagro Abadi, PT
    --   3001 Inti Indosawit Subur, PT
    --   3002 Asianagro Lestari, PT
    --   3003 Gunung Melayu, PT
    --   3004 Asianagri Riau Jambi, PT
    --   3005 Asianagro Subur, PT
    --   3100 Supra Matra Abadi, PT
    --   3101 Nusa Pusaka Kencana, PT
    --   3102 Hari Sawit Jaya, PT
    --   3103 Indo Sepadan Jaya, PT
    --   3104 Rantau Sinar Karsa, PT
    --   3105 Andalas Intiagro Lestari
    --   3106 Saudara Sejati Luhur, PT
    --   3200 Mitra Unggul Pusaka, PT
    --   3201 Raja Garuda Mas Sejati,PT
    --   3202 Tunggal Yunus Estate, PT
    --   3203 Rigunas Agri Utama, PT
    --   3204 Pusakamegah Buminusantara
    --   3205 Sari Dumai Sejati, PT
    --   3206 Cemerlang Energi PerkasaD
    --   3300 Dasa Anugrah Sejati, PT
    --   3600 Asianagro Agung Jaya , PT
    --   3700 Karya Dewi Putra, PT
    --   3701 Archipelago Timur Abadi
    --   3702 Kalimantan Ria Sejahtera
    --   4000 PT Riau Prima Energy
    --   5100 Toba Pulp Lestari, PT
    --   5501 PT Pacific Fiber Indonesi
    --   5502 PT Adindo Hutani Lestari
    --   5528 PT ITCI Hutani Manunggal
    --   5530 PT Kreasi Hutani Lestari
    --   5590 PT Kutai Chip Mill
    --   5591 PT Tarakan Chip Mill
    --   6000 APRIL Human Capitals
    --   6101 Pec Tech Indonesia
    --   6201 Pec Tech Svcs Indonesia
    --   6205 Inter Benua Medan Perkasa
    --   6206 Berkat Nugraha Sinar Lest
    --   6207 Sinar Andalan Bekal Murni
    --   6208 Kalimantan Prima svcs Ind
    --   6301 PT Sentosatama IndahAbadi
    --   8100 PT Pacific Oil & Gas Indo
    --   8101 PT Pacific Oil & Gas Perl
    ---   otherwise
    --   2 Matrix
    --   3 HIPO
    --   4 Active Employee
    --   5 Advisor
    --   6 MIPO
    ---   otherwise
                  |--   37 Brazil (BRAZIL)
                  |--   42 Taiwan
                  |--   43 New Zealand (NEW ZEALAND)
                  |--   44 Finland (FINLAND)
                  |--   48 Philippines (PHILIPPINES)
                  |--   99 Other Countries
                  ---   otherwise

  • Can I add more then one mask item on the data collection ?

    Hi,
    I have a requirement, for example as follows.
    ex.
    Data collection: DC01
    Parameter 1: P1 and Type is text.
    P1 parameter just only allow two values, "AB" or "CD".
    Data collection's mask can do that?  If not, any good soultion can do that?
    thanks!

    Hi,
    There might be the case to use Formula to interpret the input value to one of 3 possible options.
    Though, you can consider the easier approach:
    - set the parameter type to Numeric;
    - set MIN = 1;
    - set MAX = 3;
    - set Mask = #.
    This implies that only 1, 2, or 3 can be entered.
    In Data Collection Prompt, you can decribe which number corresponds to which colour.
    Regards,
    Sergiy

  • Can I add more then 2 computers on my membership?

    I have been on hold on the Adobe hotline for 1 hours 6 minutes. I am looking to find out if I can add on to my current membership. I Have a work computer, a home computer, and a travel computer. I want to be able to log onto all 3 devices but I can't figure out if that is an option. Please help! I currently have a student plan.

    No... 2 only... http://www.adobe.com/legal/licenses-terms.html
    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each
    You will have to deactivate one to use a 3rd, so still only 2 at a time
    Remove license on a computer http://forums.adobe.com/thread/1442423?tstart=0 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html

  • There is only one ebook on my lybrary and I can not add more

    In this single file I can do all features, bookmarking, reading etc and it saves when I close ADE. I have lots of PDF's and none of them stays in my lybrary after I close the programm, even ebooks we can download from ADE home are not there anymore after I close ADE. What should I do?
    Regards
    Raphael

    Have you tried a soft-reset? http://support.apple.com/kb/ht1430

  • Can not add the Palm Emulator to Sun ONE Studio 5 ME

    I am trying to add the Palm Emulator (version 3.5) to the list of emulation devices within the Sun ONE Studio 5 ME.
    First, it seems like Studio 5 requires that the emulator resides in a bin subdirectory. Second and here where the problem is. Once the emulator is identified by Studio 5 (as a "Standard UEI Emulator" and after I click on "Next", Studio 5 tries to get information about the configuration of the emulator and its profiles.
    I, immediately get an error (generated by the Palm OS Emulator) stating: "Don't understand the command line parameter "-version"." within a message box. Once I click OK, the Studio 5 says that the operation failed.
    This is as far as I could go.
    I would like to mention that I am running Windows XP Professional with Service Pack 1. I am also working with a ROM image that I downloaded from my PalmVx PDA.

    Hello Hassan,
    I've done the following: I've used Palm emulator that's included with WTK 1.0.4_01 provided with Sun ONE Studio 5, ME. If you try to execute application using this 'device' you'll be asked to point to directory with Palm Emulator 3.5 (the one you have), emulator.exe. Then it takes over and asks for skins, ROMs and other stuff.
    Hope this helps,
    Peter

  • Can i fire more than two quiries in one program

    hi
    i have write some java code for searching recors fron ttable
    but i want the query will contains all the possiblities
    what i have written is nit working well

    what i have written is nit working wellThis is also true for your post here.
    What are you talking about?

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • Item should not invoiced more then order value

    Hi my all friend and Laxmi
    I have one requirement where i want a item can not invoiced more then there order item value
    Please suggest me with your valueable suggestion

    Hi,
    T. Code: VTFA (Order-Bill Copy-Control Settings)
    Select Target Bill Doc and Source Sales Doc.
    Click: Item (Left Hand tree)
    Select Item category and Double Click.
    There is one Field: Billing quantity
    Please maintain appropriate selection (My suggestion "A" - Order to Bill ; else "B", if Delivery to Bill)
    Best Regards,
    Amit

  • Able to add 2 titles, but need 4, can't add the other two

    Hello
    This question has been posed,and seems to remain unanswered. I know the procedure to add titles, I have added 2 to my video project, but can not add the last two. At some point the background of my video project turned from green (the color it changed to when I added audio) to a purple color. Each time i try to drag the title box to the frame it snaps back to its original place....really, I must be crazy because I have tried to do this about 300 times...with the same results...yet I try again. Someone on this site sort mocked us....saying Apple should provide the answer, true they should, but they are not going to...so I implore those of you who know the answer to this question, please, please enlighten me and the others that may have it....is it me, is it a bug, is there work around.
    THank YOu for any help you can offer

    No, you cannot, unless you are just referring to apps that are in the multi-tasking list. The groupings of icons on the screen cannot exceed 4 across.,

  • Master Data Services - Can not add new User and MDS can not Identify LOCAL Users

    Team,
    We are using  SQL Server 2008 R2 and system working since long and suddenly we observed mentioned two issues. The server MyServer is already restarted but did not help.  The MDS installed and configured on SAME Machine (MyServer).
      I  have two issues here.
    1. MDM website can not Identify the local Users (MyServer\MyUser).
    The User created on local Machine (MyServer\MyUser). I logged into MDM website using Admin login and click on User and Permission. Then I click on add and Text box appears to type UserName. Here I type "MyServer\MyUser" (MyServer\MyUser is already
    exists and working since long). Then click checkName; I received a message "No exact Match was found for MyServer\MyUser". Where as User from OTHER domain identified in MDM but could not identify ONLY the local users like "MyServer\MyUser".
    2. Can not add new user in Existing working MDM.
    I created windows user on machine (MyServer\MyUser1) and add it in UserGroup having an access to MDM. and then I tried to login to MDM using newly created user (MyServer\MyUser1) ; I see error Access Is Denied. The Permission assigned to UserGroup (not
    to individual user). The new User (MyUser1) should automatically get added in MDM once logged in. This is working for existing users in UserGroup; BUT NOT ONLY for new user (MyUser1).

    Now I Solved this problem in my case.
    I just grant again all permissions according http://msdn.microsoft.com/en-us/library/ff486994.aspx. Now all work fine.
    Hope, it will help 

Maybe you are looking for

  • Safari 2.0.4 crashes often but not always

    here enclosed the report, can you help me?? Date/Time: 2007-07-14 12:12:52.196 +0200 OS Version: 10.4.10 (Build 8R218) Report Version: 4 Command: Safari Path: /Applications/Safari.app/Contents/MacOS/Safari Parent: WindowServer [105] Version: 2.0.4 (4

  • Wireless keyboard needs pairing with my iMac

    I changed the batteries in my wireless keyboard and now need to pair it again with my iMac. However I need to type in my password to wake up the computer - which I can't do without the keyboard! Any ideas?

  • [CS3][JS] Return first page for story

    I'm bogged down trying to find a simple way to return the number of the first page that a particular story appears on, assuming that it is placed on a page and not all overset. Or the number of the page that the first word in the story appears on, or

  • Encoding JPEG renders "blurry"

    I have created a java servlet that dynamically renders an image for use as a heading for each page. The servlets works fine, except for when a "background image" is used to go behind the text. Here is what the result looks like: http://www.mikelukeno

  • Can i back up more than one iphone onto the same computer and keep data separate?

    can i back up more than one iphone to the same (pc) computer and keep the data separate?