Add new payment group to order.

I want to add extra payment group to order.I can use order.addpaymentgroup and addrelationship.is this right approach?
I read somewhere it's not good approach to add relationship this way.
Please ssuggest how can i add new payment group to order.

You dont need to create the relationship explicitly. OrderManager, PaymentGroupManager, CommerceItemManager etc gives some method to support split payment groups and that will create the relationship.
For example, in case if you want to use half of the order amount to one Payment Group called PG1 and remaining to PG2, you can use the below approach.
OrderManager.addOrderAmountToPaymentGroup(Order, PG1.id (payment group id), amount), this method will create a relationship and assign the amount to that payment group.
Next, you need to set the remaining amount to PG2,
OrderManager.addRemainingItemAmountToPaymentGroup(Order, PG2.id), this will add the remaining amount to PG2 and create the relationship.
Similiar methods are available in the manager classes mentioned above, check API docs for details.
Cheers
R

Similar Messages

  • Error in PipelineManager while creating new payment group

    Hi Everyone,
    I am  trying to create a new payment group for purchasing an item with the reward points.  i am trying to modify the pipeline flow by overriding commercePipeline.xml.  i have added the following lines of code in that xml.
    commercepipeline.xml
    <pipelinemanager>
    <pipelinechain name="validatePaymentGroup">   
      <pipelinelink name="dispatchOnPGType">
        <transition returnvalue="5000"
          link="validatePointsPG" />
      </pipelinelink>
      <pipelinelink name="validatePointsPG"
        transaction="TX_MANDATORY">
         <processor jndi=
          "/com/mystore/order/processor/ValidatePointsPaymentGroup" />
      </pipelinelink>
    </pipelinechain>
    <pipelinechain
      name="validatePaymentGroupPreConfirmation">
      <pipelinelink name="dispatchOnPGTypePreConfirmation">
        <transition returnvalue="5000"
         link="validatePointsPGPreConfirmation" />
      </pipelinelink>
      <pipelinelink name="validatePointsPGPreConfirmation"
       transaction="TX_MANDATORY">
         <processor jndi=
          "/com/mystore/order/processor/ValidatePointsPaymentGroup" />
      </pipelinelink>
    </pipelinechain>
    </pipelinemanager>
    when i am starting  the server  getting below error:
    ERROR [nucleusNamespace.] Unable to start service "/atg/commerce/PipelineManager": atg.nucleus.ServiceException: CONTAINER:atg.service.pipeline.PipelineInitializationException; SOURCE:atg.service.pipeline.TransitionException: A PipelineLink is already mapped to return code [5000] in the pipelink named [dispatchOnPGType].
    when i tried to check the commercepipeline in Dynamo Administration it is showing that the pipelinechain is locked
    CommercePipelineManager
    Pipeline Chains
    Chain Id
    Num Runners
    Enabled
    Locked
    LockAcquiredTime
    LockReleasedTime
    LockingThread
    validatePaymentGroup
    0
    false
    true
    Fri Jan 24 10:55:46 IST 2014
    N/A
    main
    loadOrder
    0
    true
    false
    N/A
    Fri Jan 24 10:55:44 IST 2014
    N/A
    updateOrder
    0
    true
    false
    N/A
    Fri Jan 24 10:55:44 IST 2014
    N/A
    processOrder
    0
    true
    false
    N/A
    Fri Jan 24 10:55:45 IST 2014
    N/A
    validateShippingGroup
    0
    true
    false
    N/A
    Fri Jan 24 10:55:46 IST 2014
    N/A
    refreshOrder
    0
    true
    false
    N/A
    Fri Jan 24 10:55:44 IST 2014
    N/A
    processOrderWithReprice
    0
    true
    false
    N/A
    Fri Jan 24 10:55:44 IST 2014
    N/A
    repriceOrderForInvalidation
    0
    true
    false
    N/A
    Fri Jan 24 10:55:44 IST 2014
    N/A
    validateForCheckout
    0
    true
    false
    N/A
    Fri Jan 24 10:55:45 IST 2014
    N/A
    Thanks&Regards,
    RKishore

    U have assigned return code 5000 in both chain to ur new pipeline link.
    OOTB 5000 is already assigned to invoice chain.
    U need to change return code to new unassigned value.Also return code must be added in expected return codes in ValidatePaymentGroupByType component.
    Refer this: Oracle ATG Web Commerce - Extending Order Validation to Support New Payment Methods
    Thanks,
    Nitin.

  • How to add new payment Options in WEB SHOP

    Hi all
    We need to add new payment options in the B2C shop, but we don't find any customizing place to do it, we read about the BADI CRM_RISK_MGMT_BADI, but in the documentation said that we can set a Default payment option or exclude, but nothing about to add Customer Options.
    Any info regarding would be very useful.
    Best Regards

    Look at your Payment Process Profile. THere should be a reporting subtab and within that subtab is a Separate Remittance Advice region. I believe that is where you specify the format for the remittance advice document (which is built in XML Publisher). Take a look at that.
    John Dickey

  • Want to add new material group plz where I can Add it

    Dear experts I want to add material group can you help where I can add it. The material groups are saved in table T0123 . This table is having view also can I enter the value in View or I have to go to SPRO to add new material group. plz help me as I am new. What is the right procedure to add material

    Hi Shilpa,
    u need to confugure the material group in SPRo
    path: sapro>logistic general->setting for key fieds>define material group
    T.code:OMSF 
    here click on new entries add ur 4 character material group with description as per ur requirement.
    Regards,
    Gopala.S

  • Add new Security Groups

    Hi Dear;
    is there a way to add new security groups in
    Document Numbering
    Price List
    Query Manager
    best regards;

    Hello Gordon;
    in the document numbering and the price list, you have to define a group, it's very clear
    it's a security group and you have to give authorization to the user
    is there a way to add more groups
    regards;

  • Add new payment term base on sales order contract date and shipment date

    Dear Sir/Madam,
    My company need to create new payment term base on sales order's contract date and shipment date.
    the first time is 30% made in T/T within 30days from contract signed date.
    the second time is 70% made in T/T before shipment.
    I don't know how to configuration this payment term base on that both date, who can tell me ,thanks very much!
    Best Regards
    Danny Zhang

    Hi,
    You have to define the PAYMENT TERMS as per days and Percentage.
    Define the Payment terms in the transaction OBB8 and assign this payment terms in the CUSTOMER MASTER and will be copied to the SALES ORDER from the customer master
    In the MATERIAL MASTER in the SALES ORG 1 view you have to check the field CAHS DISCOUNT In the Pricing procedure you can defin the CASH DISCOUNT condition type ( in standard there are two SKTV & SKTO)
    Now process the sales order and check
    regards,

  • Can we add new Payment means in SAP Business One Payments

    Dear Experts,
    Can we new Payment means in SAP Business One Payments?
    Currently, I am having 4 Payment means as Cash, Cheque, Bank Transfer and Credit Card.
    I need one more Payment means as Coupons.
    These are the Discount coupons which will be issued to our regular customers on Purchase of amount above certain limit.
    Thanks & Regards,
    Amrut Sabnis

    Hi Amrut,
    you can't add a payment means, but you can book the new payment means as an additional creditcard name for example "coupons"
    Kind regards
    Ad

  • Add new tab in Sales Order(VA01/02/03)

    Hi All,
    Additional Tab A and Tab B in Sales Order (header) are already used for other developments so I need to add a new tab in Sales Order header/item. (I have already updated the table VBAK/VBAP with the include structure).
    Could anyone give the steps as to how I could proceed ?.
    Thanks,
    Kushi

    Hi Kushi,
    You can use screen 4459 or 4462 in program SAPMV45A which are the item additional data A or B tab to add your custom fields. In order to capture the data from this custom fields you can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE OR USEREXIT_SAVE_DOCUMENT in program MV45AFZZ.
    Please check this link for more information on sales order user exits.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    Regards,
    Ferry Lianto

  • Add new fields to Sales Order

    Hi All,
    I want to add new fields to the Additional Data A of the sales order header and
      and new fields to the Additional Data A of the sales order item. Can anyone please suggest me if there are any user exits or BADI's for this.
    Thanks,
    Nammi.

    Hi Pavan,
    The BADI which could have been used was BADI_SD_TAB_CUST_H but its made for SAP internal use only.
    if you are working on ECC 6. May be you can try implementing this badi as an extension to SAP standard program and see if it works.
    Regards,
    Vikas
    <b>Encourage by rewarding points if useful.</b>
    Message was edited by:
            Vikas Taneja

  • Add new field in Work Order Component Tab

    Dear Experts,
    Really need your advice to solve my client requirement related to Work Order. The requirement is to put status code and estimated date of returned material in WO Component Tab.
    And because we almost use all of fields in Component. So i'm trying to know, is there any configuration (in SPRO - if any) by adding new custom fields in Work Order (WO) Component Tab?.
    Or is there any enhancement (EXIT) to add new fields in WO?
    Please advice.
    Thanks.
    LN.

    Hi Anthyodaya,
    Try this screensexit not sure if this is what you are looking for
    EXIT_SAPMV45A_001( Take help of ABAP for this)
    Hope this helps.
    Thanks and Regards
    Rohit
    this Question is raised by you twice..please close one.

  • How to add new payment methods to an existing EDI interface to bank

    Hello:
              <b>Requirment:</b> Need to add  two new payment methods to an existing EDI interface to bank. As of now only USD EFT's are sent. With the new set up we need to be able to send CAD and USD checks and CAD EFT's to that particualr bank.
    <b>Scenario:</b> The payment methods are all set up in the payment program. I need two separate variants on the program RFF0EDI1 thats triggers the EDI file. The trigger of the EDI after the payment run should have a different variant... but the message type ought to be the same.
    Can some one please exlpain how I should go about setting this up. Thank you.

    I figured out the way to do it myself, after poking around the system for hours together.
    All I need to do was to make config changes in FI12- define the posting rules and the bank accounts the checks needs to be drawn against. Also adding the payment method "C" in the DME section of the FI12. Next check and see if the Idoc message types have been set to what was required by clicking on "EDI partner  profile in the DME section.  Also to have different varaints for the program RFF0EDI1  , I just had to goto SE38 select the program and create the new variant. For enabling EDI I had to do some config changes in FBZP- MAINTAIN PAYMENT PROGRAM CONFIGURATION: PAYMENT METHODS in country, Delete the entry made in the "Name of print data set" in the form print section and enter "RFF0EDI" under "Name of the print program" in the form data section. If anybody needs any other information , please let me know. Thanks everyone.

  • Cannot add new LDAP Group Members in Sun Java Server 7.0

    Hello!
    I've got Sun Java™ System Web Server 7.0 installed and Apache Directory Server as LDAP server.
    So, the task is -to create/add users to a group (just created or already existent).
    When I try to do that, I got only "An error has occured" message and that's all.
    What really happens, I cannot understand even from server logs:
    here is the screenshot - http://tinyurl.com/34xuw42
    and the log:
    [08/Dec/2010:16:44:03] info ( 8504): for host 127.0.0.1 trying to POST /admingui/admingui/editGroupDialog, service-j2ee reports:
    java.lang.NullPointerException
         at com.sun.web.admin.configlib.LdapDatabase.isUserGroupMgmtSupported(LdapDatabase.java:161)
         at com.sun.web.admin.mbeans.UserGroupMBean.isUserGroupMgmtSupported(UserGroupMBean.java:244)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.web.admin.mbeans.BaseAdminMBean.invoke(BaseAdminMBean.java:49)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
         at com.sun.web.admin.gui.util.MBeanUtil.invoke(MBeanUtil.java:139)
         at com.sun.web.admin.gui.util.MBeanUtil.invoke(MBeanUtil.java:39)
         at com.sun.web.admin.gui.handlers.CommonHandlers.invokeMBean(CommonHandlers.java:66)
         at com.sun.web.admin.gui.handlers.CommonHandlers.invokeWizardMBean(CommonHandlers.java:170)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:938)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:875)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:841)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beginChildDisplay(DescriptorViewHelper.java:477)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.beginChildDisplay(DescriptorViewBeanBase.java:168)
         at com.iplanet.jato.taglib.TagBase.fireBeginDisplayEvent(TagBase.java:133)
         at com.sun.web.ui.taglib.common.CCTagBase.fireBeginDisplayEvent(CCTagBase.java:149)
         at com.sun.web.ui.taglib.common.CCTagBase.doEndTag(CCTagBase.java:108)
         at org.apache.jsp.jsp.addGroupMembers_jsp._jspx_meth_cc_propertysheet_0(addGroupMembers_jsp.java:347)
         at org.apache.jsp.jsp.addGroupMembers_jsp._jspx_meth_cc_pagetitle_0(addGroupMembers_jsp.java:317)
         at org.apache.jsp.jsp.addGroupMembers_jsp._jspx_meth_cc_form_0(addGroupMembers_jsp.java:201)
         at org.apache.jsp.jsp.addGroupMembers_jsp._jspx_meth_cc_header_0(addGroupMembers_jsp.java:154)
         at org.apache.jsp.jsp.addGroupMembers_jsp._jspService(addGroupMembers_jsp.java:99)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:457)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:351)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:792)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:472)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
         at com.iplanet.jato.view.ViewBeanBase.forward(ViewBeanBase.java:340)
         at com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:261)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.execute(DescriptorViewHelper.java:338)
         at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.execute(DescriptorViewBeanBase.java:210)
         at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
    What I am doing wrong?
    Please, help.

    You can configure a LDAP authentication database. Once you have configured it, you will be able to see users and groups contained in the configured ldap store.
    Select a web instance configuration and select the Access Control tab. Under the Authentication Database sub tab create a new Authentication Database and select as database type LDAP Server. Make sure you provide as a bind dn a user that has sufficient permissions to read user and group entries.
    Once that is done and you applied the changes, you will be able to select your LDAP server as an Authentication Database under the Users and Groups sub tabs.

  • OMJJ - add new account grouping for transaction type

    Hi
    How can I add anew combination of movement type and special stock indicator, that don't exist in our system.
    How can I add a line to OMJJ account grouping table?
    Is it dependant on something else?
    Thanks
    Liat

    Hi Liat, if you want to create a new movement type, you go to transaction OMJJ, select movement type, put in field from movement type that you want to copy and in field to movement type that you want to create, you copy all entries and on Update control... tab you can put special stock indicator.
    Please review this
    I hope this information help you
    Rose

  • Add new instrument group/category?

    I'm working on composing for a video game project, and for the music I've set up a bunch of my own instrument presets. I'd like to create a new group/category for these presets. For example, there is "Bass", "Drum Kits", "Guitars", etc. I'd like one titled "The Game" for example. That way I don't have to jump around between categories to find/edit the game's instruments. It would save a LOT of time. How do I go about doing this?
    Thanks for any advice!!

    Go into the folder HD/Library/Application Support/GarageBand/Instrument Library/Track Settings/Software. There you see the folder with the categories. (Or in the respective folder in your User directory.)
    You should be able to create new folders there and put your self-created .cst files into them. Be careful with everything you do in the Instrument Library - it is not meant to be maniputlated manually, so you might confuse GB!

  • The payment group could not be authorized for payment:

    Hi All,
    I am facing one issue when ever I try to submit the order.Mention issues log below.
    at java.lang.Thread.run(Thread.java:619)
    17:30:09,608 INFO [CommitOrderFormHandler] DEBUG Acquired local write lock using id 140023
    17:30:09,631 INFO [CommitOrderFormHandler] DEBUG beforeSet created transaction TransactionImple < ac, BasicAction: -53edde10:dc90:51a34807:1077 status: ActionStatus.RUNNING >
    17:30:09,632 INFO [CommitOrderFormHandler] DEBUG no form errors - staying on same page.
    17:30:09,635 INFO [CommitOrderFormHandler] DEBUG no form errors - staying on same page.
    17:30:09,637 INFO [CommitOrderFormHandler] DEBUG no form errors - staying on same page.
    17:30:09,720 WARN [ValidatePaymentGroupByType] Returning default transition value 0 for unregistered property value cashOnDelivery.
    17:30:09,763 INFO [CommitOrderFormHandler] DEBUG PipelineError: key=FailedPaymentGroupAuth:pg50002; error=The payment group pg50002 could not be authorized for payment: The given PaymentGroup {0} cannot be processed because a processor was not configured for its type..
    17:30:09,763 INFO [CommitOrderFormHandler] DEBUG adding form exception: FailedPaymentGroupAuth:pg50002: The payment group pg50002 could not be authorized for payment: The given PaymentGroup {0} cannot be processed because a processor was not configured for its type..
    17:30:09,764 INFO [CommitOrderFormHandler] DEBUG root cause of exception: null
    17:30:09,764 INFO [CommitOrderFormHandler] DEBUG Transaction Marked as Rollback - redirecting to: error.jsp
    17:30:09,765 INFO [CommitOrderFormHandler] DEBUG afterSet sees currentTransaction as TransactionImple < ac, BasicAction: -53edde10:dc90:51a34807:1077 status: ActionStatus.ABORT_ONLY >
    17:30:09,765 INFO [CommitOrderFormHandler] DEBUG afterSet committing transaction TransactionImple < ac, BasicAction: -53edde10:dc90:51a34807:1077 status: ActionStatus.ABORT_ONLY >
    17:30:09,766 INFO [CommitOrderFormHandler] DEBUG Released local write lock using id 140023
    Could you please give suggestion how to resolve this issue.
    Thanks,
    Raj

    It seems like you have created a new payment group cashOnDelivery but have not configured the required property files required for its validation
    1) In /atg/commerce/order/processor/ValidatePaymentGroupByType.properties add something as following
    # Add a return code for your cash payment method
    returnValues+=\
    cashOnDelivery=5051
    2) then in CommercePipeline.xml add the mapping for the integer value specified earlier to its validator processor, something as following
    <pipelinechain name="validatePaymentGroup" transaction="TX_REQUIRED" headlink="dispatchOnPGType" xml-combine="append">
    <pipelinelink name="dispatchOnPGType" transaction="TX_MANDATORY">
    <processor jndi="/atg/commerce/order/processor/ValidatePaymentGroupByType"/>
    <transition link="validateCashPG" returnvalue="5051"/>
    </pipelinelink>
    <pipelinelink name="validateCashPG" transaction="TX_MANDATORY">
    <processor jndi="/atg/commerce/order/processor/ValidateCash"/>
    </pipelinelink>
    </pipelinechain>
    3) Create a new ValidateCash component and its class(which implements a pipeline processor) and in this simply return the SUCCESS code, or put any validation logic that you want to put for validating your new cash paymentGroup.
    This would solve the the current error you are getting,
    and If the PaymentManager, PaymentPipeline(The new createCahInfo and ProcessCash processor etc),OrderTools component etc have been confgiured properly for your new payment group then you should be able to submit the order.
    Thanks

Maybe you are looking for

  • HT4205 how do you fix your iPod touch when it is disabled?

    my son's ipod touch is disabled (he forgot his password).... How do I get it going again?

  • How to display string which has BSP elements correctly?

    Hi,    I have a string variable lv_text which content is: <htmlb:group height = "100%"                      width  = "100%" >           <htmlb:groupHeader>             <xhtmlb:toolbar id="toolbar1" >               <xhtmlb:toolbarItem placement="LEFT"

  • Flat File Datasource

    Dear All. I have created one planning cube in which i have laoded the data through CSV file, after completing all the work, i need to move this on Production system but when i transport the only cube and aggregation level got transport not the transf

  • Can I clone an intel based iMac to a powerbook G4

    I have an intel iMac (2006) running Tiger, and have just procured a powerbook G4. Is there a way to clone the iMac onto the powerbook. I do;t have much knowledge of the differences between the intel chips and powerpc chips as to whether they cause is

  • Photoshop update (of CS6) terminates in error.

    I recently enrolled in the CC monthly plan for Photoshop and downloaded Photoshop CC.  Both my Photoshop CS6 and Photoshop CC work fine, though they are somewhat different. Adobe updater informs me an update is available for Photoshop CS6.  When I tr