SAP CRM CONTRACT - Adding more line items

Dear Experts,
As am trying to add the line items in Service Contract, I am going to type the first line item then i will press enter then automatically the second line item should come.
For example if i type the first line item as ABCD123, then the second line item ZYX321 should come automatically.
So i tried with Badi CRM_ORDERADM_I_BADI and method CRM_ORDERADM_I_MERGE, in this method am trying to add the values using   CRM_ORDER_MAINTAIN.
But its thorwing short dump.
Pls guide me. How to achive this functionality.
Regards,
Anandhan

Hi Anandhan,
If you write the order_maintain FM in CRM_ORDERADM_I_BADI BADI it will dump saying recursive call. So that is not an option and you are not supposed to so.
If your requirement is something like adding a new line in the items, you can try below.
1) Create an event on enter.
2) In the event handler, write following code.
    DATA: l_o_struct_ref TYPE REF TO structure (Structure of u'r table view),
              l_o_value_node TYPE REF TO cl_bsp_wd_value_node,
              l_o_entity    TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS.
    CREATE DATA l_o_struct_ref.
    CREATE OBJECT l_o_value_node
      EXPORTING
        iv_data_ref = l_o_struct_ref.
* Update collectionwrapper with adding new entity.
    me->typed_context->giftcard->collection_wrapper->add( l_o_value_node ).
Try this and let me know if this doesn't work.
Thanks,
Faisal

Similar Messages

  • Excise invoice getting reversed automatically and adding more line item

    Dear sir,
    i m creating one item delivery and invoice and excise invoice and in excise invoice no excise duty is capturing and it is saved.when i go to display excise invoice shoowing excise invoice cancelled and reversed automatically and adding another item into that.
    can u tell me why it is happening?
    regards,
    Debesh

    gghh

  • Adding  some more  line  items  in  the  unconfirmed  Transfer Order

    Hi  All,
         We do kitting activity at our warehouse i.e. several components make up an assembly of a particular final product. The WH creates a production order(BOM) based on which the system creates TO wherever stock of individual components are available for picking. However, the remaining components which are required to make up the product are still awaited in such a case (stock unavailable at present). Under this situation, is it possible that the balance remaining components can be added to the same original TO created earlier (i.e. where only available line items of that TO is confirmed and the TO header is still open).
    Alternatively, can we add  some more  line  items  in  the  same unconfirmed  Transfer Order to facilitate this kitting process and thereby confirming the TO header finally.
    A quick feedback will be appreciated. Thanks.
    Regards
    Jaman

    Hi,
    If you know what all the items you will include in one TO, even though you haven't pick the items;
    In the TO, you have an option to make the items "Inactive" for which picking hasn't been done.
    After making the items "Inactive", if you save the TO, it will allow you to confirm the TO, but then, it will create the new TO with the inactive items.
    Hope its clear.
    Aktar

  • How to Restrict one more line item in Purchase Requisition

    Dear SAP MM Guru's
    My business Requirement is to Restrict one more line item to create in Purchase Requisition,
    Using T code : ME51N  i have  created a PR with 10 (TEN) Line item's on 20 June '14 ,
    Using T Code : ME52N  on 23 June '14 my business demands to add one more line item 11th  with different material code in Purchase Requisition .
    Now Sourcing Team is demanding  is once Purchase Requisition is created Don't allow to create one more Extra line item in same PR .
    Through an Error : " One More Line Item is not possible to ADD "
    Can i use below BAPI :
    1) BAPI_PR_CHANGE
    2) BAPI_REQUISITION_CHANGE
    Please do the Needful
    Thanks & Best Regards
    Kumar

    Hi,
    Change Screen layout for PR.
    For ME52N make Material number and Material description/short text fields to 'Only display'. By this user cannot enter new material code or direct material description to add new item.
    In this scenario check :
    1. Create new with reference to another PR by adopting details.
    2. Check with Change push button behavior within ME52N and ME53N transactions available.
    3. Consider remove ME52N authorizations from users (& Change Push button also from ME53N).

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

  • Adding new line item while save

    Hi all,
    use an implementation of BADI  ME_PROCESS_REQ_CUST in the MM-Purchase-Requisition, method IF_EX_ME_PROCESS_REQ_CUST~POST while save.
    based on the line items available(USER ENTERED) i have to add few more line items based on the account assignment category and quantity while save.
    How to create new line items (copying the existing line item and change the quantity ) and save the requestion with the additional line items. I used this code. while calling the method CRETE_ITEM  create based on the object REF_ITEM  in the MY_STATE.
    the REF_ITEM object is Initial . so while creation the empty object is created.
    kindly help to give tips/details  to handle.
    Coding:
    data: l_item_list TYPE MMPUR_REQUISITION_ITEMS,
    l_item TYPE MMPUR_REQUISITION_ITEM,
    l_item_akt TYPE mereq_item,
    l_item_ref TYPE ref to IF_PURCHASE_REQUISITION_ITEM.
    l_item_list = im_header->get_items().
    loop at l_item_list into l_item.
    l_item_akt = l_item-item->get_data( ).
    IF l_item_akt-MENGE > 1 AND
           l_item_akt -KNTTP = 'A'.
          DO l_item_akt -MENGE TIMES.
             l_item-item= IM_HEADER->CREATE_ITEM( IM_ITEM =  l_item-item).
            INSERT  l_item INTO TABLE IT_ITEMS_list.
    %%%%%  here i checked useing    get data  method  i am not getting any data other than relesing procedure data.
    I used SET_DATA method to set the data. even I am not getting data.
    endloop.
    (Debugging the code, I manage by doubleclicking while create Item  method the fieldcontent of l_item (e.g ) to show the content of the class-attribute my_state. This works only if the field “Interface” in the Debugger is empty because then I see the attributes of the class. If the field Interface is filled with “IF_PURCHASE_REQUISITION_ITEM”, there aren’t any attributes shown.)
    Thanks in advance for your kind help!!
    Nicole

    I searched sdn and found this not possible.

  • Adding new line item in SC after it is added to PR or PO

    Hi Experts,
    Our customer wants that if line item is added to PR and PO on ECC side, it should be added to SC as well. I am sure you can't change apporved SC for which follow on document is created. But if someone did similar kind of requirement.
    Here is requirement.
    >  SC has 2 line items.
    >  PR is created in ECC for 2 line items after SC is apporved.
    > User added 3rd line item in PR on ECC side.
    > Customer wants this line item should be added to SC as well.
    Please advise.
    Regards,
    Kamal

    Hi,
    In Classic Scenario: This is not possible .when you are adding a P.O in ECC it will not reflect in
    SRM.
    In Extended Classic scenario: In SRM  only P.O is  created .You can add a new line items (or) change
    because P.O in SRM Server is the main P.O.
    Moreover in this also Shopping cart will not update. Once Shopping cart is approved you can do any changes
    Please check which scenario your client is using.
    Regards
    G.Ganesh Kumar

  • CRM table where transaction line item status are stored.

    Hello,
        Can anybody suggest me the standard transaction table in CRM where on passing line item guid as input, i get the status ( like release, open completed... ) of those line item in the transaction as output.
    Regards
    Devika.S

    Hi,
    CRM_JEST  pass OBJNR as your item guid.
    for the description of status check TJ02T - System status.
                                             check TJ30T - User status
    ~ Kishore

  • Message 'USER LOCKED'  when trying to give more line items in VA03

    Hi All,
    We have created a 'Z' smartform layout at delivery level and it has a 'Z' Output type.
    When i am trying to enter more line items in va03 then it says user is locked .
    Kindly give me suggestion whether this has a problem in the Layout OR else is some configurational problem.
    Very Urgent.
    Regards,
    Rajesh Kumar.

    Rajesh,
    its not a layout or print program problem at all.
    i think you have implemented some EXIT for va* and it may be creating problem.
    you have to see by debug from where this message comes from.
    than you will come to know and rectify this.
    Amit.

  • Adding new line item to Delivery

    When I try to post (Add) a delivery document based on a sales order that has a line item added that did not belong to the sales order I get the following error "[OACT] No matching records found (ODBC -2028)".  Looking in the DI API documentation I see that the Document_Lines object has a mandatory AccountCode property.  How do I go about getting the appropriate account code for the added line item?  The help documentation shows some sample code (included below), which doesn't make much sense to me. 
    Dim sStr As String
        Dim vRs As SAPbobsCOM.Recordset
        Dim vBOB As SAPbobsCOM.SBObob
        Dim vCH As SAPbobsCOM.ChartOfAccounts
        Set vCH = Vcmp.GetBusinessObject(oChartOfAccounts)
        Set vBOB = Vcmp.GetBusinessObject(BoBridge)
        Set vRs = Vcmp.GetBusinessObject(BoRecordset)
        Set vRs = vBOB.GetObjectKeyBySingleValue(oBusinessPartners, "CardName", "aaa", bqc_Equal)
        ' When working with segmentation use this function
        ' to find the account key in the ChartOfAccount object
        Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "125100000100101", bqc_Equal)
        'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).
        sStr = vRs.Fields.Item(0).Value
        'Use the sStr value to set the AccountCode
    Where does the FormatCode value of "125100000100101" come from?  Why the first call to GetObjectKeyBySingleValue?  It doesn't appear the results are being used?
    Any help would be greatly appreciated!
    Thanks,
    Jason Eiler
    BTW - I'm developing with/for SAP Business One version 2004 (or 6.7 of the DI API).

    Hi Jason,
    First of all:
    The displayed account code must be translated into the internally used code ("_SYS...") when using segmentation - when not using segemntation it is just internal code = displayed code.
    The code displayed is just a sample to give you a hint in case you are already familiar with the SAP Business One application.
    Therefore the sample code does not talk about where you got e.g. the value for FormatCode from ("FormatCode" is e.g. a field in table OACT where the account name with segments is (redundantly) stored without separators).
    The user should know on which account he/she wants to book a line on; maybe you might want to give some help to the user by displaying a dialog with suitable - or preselected accounts?
    In addition I am sure you know how to assign a string value to a string property - without explicitly writing it, right?
    HTH,
    Frank

  • Adding new line item directly to PO

    Hi,
    We have a requirement for adding a new line item directly within the Purchase Order in SRM (without using the shopping cart). We are using the FM BBP_PD_PO_UPDATE for this purpose. However, we are getting the following error while updating. " BUFFER TABLE NOT UP-TO-DATE". Please provide assistance in order to resolve this issue.
    Regards,
    Arun

    We achieved  based on the Security roles to identify if the user is Requester or Purchaser or Manager and Webdynpro changes by the portal team to activate the Change and Order button based on the required business rules.
    Transaction Code for PO Change to be added to the security role.
    Requisitioner:  Any user with out any existing A012 relationship with any existing Organizational units on the current date:
    Manager:  Any user having A012 relationship with any existing Organizational units on the current date.
    If the Authorization object checked programmatically results the value of "PUR" then the standard SAP code for "Purchaser" has to be executed.
    Some additional Info :
    Control list of PO using BADI BBP_WF_LIST - Change Work lists and Search Results Lists   Method:  BBP_WF_LIST
    Badi -BBP_AUTHORITY_CHECK for any additional authorisation checks
    Hope this helps.
    Thanks
    Balaji

  • SAP Script Check printing Layout, Line Items to display twice in First Page

    Hi All,
    This requirement is for US check printing Layout.
    My Requirement is to display Items twice on the first page.
    Eg : Main Window has 10 Items, I need to display all the Items at the bottom in another window at the bottom.
    I can't create 2 Main windows in the first page, as the data from the Main window 1 overflows to Main window 2 in the first page.
    I copied print program RFFOUS_C into a Z-version and try to implement the logic, however unable to print the line items in the bottom window.
    Kindly give your valuable Inputs.
    Thanks
    Vinayak

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • Purchase Contract Price on line item

    Scenario
    Purchase contract line item has conditions defined with multiple validity periods and scales for the price.
    When one uses transaction ME33K one sees the net price applicable on the current date. and this is not what is stored in the EKPO-NETPR.
    Needless to say the condition amounts and scales amounts can be defined in a different UoM from the contract line item Order Unit.
    Is there a FM which enables you to get the current Net Price of the Contract line item?
    Gurus please respond.

    Dear Lin,
    I'm looking for a solution in SAP for the following:
    If I make a change in contracts or purchase info records in SAP (for instance in prices) is there any way to update the open Purchase orders in the system with this information?
    As this question is relevant to what you asked I thought that you may have a clue about this.
    Thanks for your attention,
    Marc Fabiá

  • Sap standard report for showing line items of any GL with its offsettinga/c

    Dear all,
    Is there any standard report in SAP to show line items of GL with its offsetting accounts. in short i want to see all journal entries of one specific GL account.could any of you help me in this?
    points will be rewarded for the relevant answer.
    thanks,
    hemanth

    Hi Dave,
    I have gone through the note 112312.But there it is mentioned that it relates to 4.6x versions.We are in ECC 6.0.and we have not implemented new GL accounting concept.Is there any other alternative functionality or any other OSS note which meets my requirements.Can you please suggest me on this ?
    Thanks,
    Hemanth

  • Service Entry sheet creation - Using a diffent contract diff from line item

    Hi,
    Here is the scenario...
    I have a services purchase order referring to contract  and its service item with services ( service masters) attached to it.
    And the PO  item is a limit item with some limits maintained on the limits tab, but contract reference is specified at the limits level it is only at the line item level.
    System version : ECC 6.0
    Lets say PO number : 123456789
    Lets say contract number and item is : 2323232323  item 10 ( Account assignment U )
    My supplier is : 111111111
    Now I am creating the Service Entry sheet  and I am trying to add the services  ( services selection button)  I get a pop up to  search for services  by certain selection criteria  and one of them is purch document ( remember it doesn't pre-populate and grey out the purch doc field with that the contract number from the item level) and now I can select any service contract that belongs to any supplier and select the services from it and complete my  SES.
    So lets say the contract from which I chose the service is : 3232323232
    And the supplier on the contract is 2222222222
    Is this a valid scenario or not?
    Has any body ran into this situation  before?
    Hope I was clear in explaining my scenario....  
    Thx,
    Krishna.

    Hi Krishna,
    the External Services Management distinguishes between planned and unplanned services.
    In case you have ONLY limits, no planned services in the PO item, it does not matter if you have entered a contract number into the PO item - in this case this contract will be not a real reference for your services.
    If you have entered limit values only as overalllimit and expected value and you did not enter a contract limit on the contract limit tab, then you will not have a special contract reference on unplanned level neither.
    In this case it is NOT an error when you start the entry sheet creation and you can select services from other contracts or purchase orders against your limit values in the PO into the entry sheet.  The system does NOT check for a different vendor when you select services from other documents than the contract which you have specified in your PO item, because it is NOT a real reference - nor on services level as you have only limits in your PO item, nor on limit level since you have NOT entered a contract limit into your PO item.
    In order to understand this process please study the unplanned scenario and contract reference scenarios.
    Regards,
    Edit

Maybe you are looking for