Moving data from shopping cart to Purchase Req in backend

Hi,
We are implementing SRM 5.0 with R/3 ECC 6.0 in the backend.  I am brand new to this module and version. 
When shopping and ordering, then running clean_reqreq_up to transfer to the backend, we notice a material number does not flow through to R/3.  I have implemented the BADI BBP_CREATE_BE_RQ_NEW to try and force a material number into the parameter field CS_RQ_DOCUMENT-IT_REQUISITION_ITEMS-MATERIAL.  When I activate the badi, and shop and order some product, then I check the status, it shows the following message in the follow on documents, which I can not figure out.
"Shopping cart 3nnnnnnnnn/1 Error in Process"  but if I deactivate the badi and do the same thing, the shopping cart status is successful.  I am having trouble debugging this badi and getting it to stop in the code to see what is happening.
I would like suggestions regarding if I am using the correct badi for what I need, and if so, how can I see more details regarding my error.
Thanks,
Marty

Hi
Please read the BADI documenation provided by SAP, before making any coding.
<b>Here is the SAP Documenattion of the BADI Definition - BBP_CREATE_PO_BACK</b>
Short Text
Purchase Order in Backend System
You can use the Business Add-In BBP_CREATE_BE_PO_NEW to change all data transferred to the backend system to create a purchase order. This includes the item data, account assignment, and text.
Standard settings
The following changing parameters are available in the FILL_PO_INTERFACE method:
Parameter   Transfer structure
PO_ITEMS   Purchase order items
PO_ITEMS_ADD_DATA   Additional purchase order item data
PO_ITEM_SCHEDULES   Purchase order delivery schedule line
PO_ITEM_ACCOUNT   Purchase order item account assignment
PO_ITEM_TEXT   Purchase order item texts
PO_LIMITS   Purchase order limits
PO_CONTRACT_LIMITS   Purchase order limits - Contracts
PO_SERVICES   Services for a purchase order item
PO_SRV_ACCOUNT   Account assignment data for service
PO_SRV_TEXTS   Texts for service line
PO_HEADER   Purchase order header
PO_HEADER_ADD_DATA   Purchase order header additional data
PO_ADDRESS   Purchase order header address data
You can use the following parameters for transferring the attachements to the backend system:
CT_ATTACH_BE  KW attachments including document
CV_ATTACH_BE_DOC_TYPE  Document type (standard is SRM)
CV_ATTACH_BE_STORAGE_CAT  Storage type (standard is DMS_C1_ST)
CV_ATTACH_TRANSFER_ACTIVE  Activate transfer of attachments
CV_ATTACH_USE_URL  Transfer URL only
Recommendation
If you edit the PO_HEADER_ADD_DATA structure, you should check the settings of parameter HEADER_ADD_DATA_RELEVANT.
Activities
You are able to use the parameter HEADER_ADD_DATA_RELEVANT in the BAdI implementation. Assigning this parameter the value:
'1'
Means that the system only transfers the data of structure PO_HEADER_ADD_DATA to the purchase order in the backend system that is not empty (initial).
'x'
Means that the system transfers all data of structure PO_HEADER_ADD_DATA to the purchase order in the backend system regardless of whether individual fields are filled.
Regards
- Atul

Similar Messages

  • Attachment transfer issue from Shopping cart to Purchase req in ECC

    Hello,
    How are you all. Need your expert advise..
    We are trying to achieve functionality where documents which are attached on shopping cart get transfer into Purchase req in ECC (Classic Scenario with SRM 5.0 and ECC 6.0). For this we have done following config / enhancements:
    - Activated BADI "BBP_CREATE_BE_RQ_NEW" in SRM with following code for attachment;
    cs_ctrl_att-BE_DOC_TYPE = 'SRM'.
    cs_ctrl_att-BE_storage_cat = 'DMS_C1_ST'.
    cs_ctrl_att-TRANSFER_ACTIVE = 'X'.
    - Created new document type ECC with t.code DC30 for SRM and assigned the object links for EBAN table.
    After performing above task we are able to see Link of the attachment into Purchase req in ECC with document number (i.e. the one we assigned while defining document type in DC30) but not able to open the document in ECC.
    Could you please let us know if there is any settings which we have missed for actually opening documents in ECC?
    Thank you
    Ritesh

    Issue as reported Please let me know why the docs are not uploaded to SRm succesfully .
    I am facing the below weird issue .
    Easy shopping >Shop> eHiring catalog
    Click Transfer to SRM
    Now click on the button ‘Details’ and open the tab ‘Notes and attachments’
    All attchments are names after the 1st attachment and all have the same file type
    Basically you have lost all you attachments here, except 1 (when you click on the link, all links refer to the same document, so not just cosmetic). This is a problem.
    When you order this shopping cart and search for it and open it again, the attachment tab is even completely empty, so now all attachments are lost.
    Something like this, but less severe, happens in the process a bit further.
    - Approve the shopping cart with the applicable approver
    - Log in as Hiring desk:
    Still no original attachments (like job descriptions).
    Now click button ‘responses and awards’
    Click tab ‘Items’ and fill out price ‘40’ euro
    Click notes and attachment tab
    I added 5 attachments
    As can be seen here, the docx becomes an xlsx again, but it looks like it just takes over the 1st file type that was uploaded, it can also be the other way around (xlsx becomes docx) when the 1st uploaded attachment is a document.
    But in this case, when you click on the link, it will open the right file with the right program, so over here it looks like it is just cosmetic.

  • Auto creation of po from shopping cart

    hai gurus
    Iam in SRM 5.o,CLASSIC Scenario.
    In configuration for "Auto creation of po from shopping cart"i  have given "purchase order if item data complete,otherwise PR"in  SPRO>SRM>srmserver>cross application basic settings>Define  objects in Backend(PR,PO,requisition)
    So shopping cart is been created with PUR org,PUR GROUP,Vendor tax code,account assignment etc,but  purchase requisition is created and not  purchase order.Is there any  settings left over
    Thanks in Advance
    chandra

    Hello Chandra,
    You also could use the PR (in ECC) and try to convert it into a PO (ME57). If it asks you for some additional data (e.g. vendor, price, ..) this might indicate, that it is missing in the SC.
    Also, you could try and debug transaction ME59 (auto PO creation) to see, what's missing/checked.
    Good luck.
    Franz

  • Error in creating PO from shopping cart

    Hi,
    While creating PO from Shopping Cart in SRM, we are getting the error message "Net price must be grater than 0" and the PO is not getting generated.
    Is this issue is somewhere related to maintainance of pricing conditions? if yes, how can we maintain that?
    Regards,

    Hi,
    Are you creating PO directly from shopping cart or through PR.If through PR (Purcahse requisation) then chack the valution price in valution tab in PR (ME53N)
      PO directly from shopping cart then check the price in Basic data of the shopping cart.if price is there it should reflect in PO.Check your shopping cart free Zero value shopping cart.

  • Add customer fields in Shopping cart and purchase order

    Hi,
    I have to add fields(moder of transport, country origin, country destination and more) in Shopping cart and purchase order in SRM system and remotle i have to update the same data in R/3 System.
    could you please guide how to add the fields in screen.
    regards
    Shakeer

    Hi
    We have done this type of requirement several times in our previous SRM Implementations.
    <b>You need to create an Append Structure in the Standard Structure to create the custom fields in your case.</b>
    <u>Refer this link below for details.</u>
    http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
    <b>Define the fields of the append structure. You can proceed as when creating a normal structure with two restrictions (see Creating Structures).
    The fields of an append structure must lie in the customer namespace, that is the field names must begin with ZZ or YY. This prevents conflicts with fields inserted in the table by SAP.</b>
    http://help.sap.com/saphelp_srm50/helpdata/en/5b/c9df3b6ac34b44e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/28/857a1867b52e4f8472c5d49209a675/frameset.htm
    <u>BBP_CUF_BADI_2 BADI will be used to control the properties (hide/unhide, input/output enable or disable) for those customer fields you created in the above append structures.
    BBP_DOC_CHANGE_BADI for defaulting or modifying the customer field contents, incase required.
    BBP_DOC_CHECK_BADI for issuing customer messages for the customer field contents (incase data is entered incorrectly) , incase required.</u>
    Let me know incase you face any issues.
    Regards
    - Atul

  • System is not checking Account assignment data in shopping cart

    Dear Experts,
    We are implementing SRM7 with SP06. We are using extened classic scenario. Recently we have noticed that system is not validating account assignment data at shopping cart level and creating purchase order in SRM, however at the time of PO transmission to backend system it is failing.
    Does any one has faced this issue?If yes help me how to resolve this issue.
    Thanks in advance.
    Umakanth

    Hello Umakanth,
    Could you check if in your settings for Define backend system customizing ( BBP_BACKEND_DEST table), option "realtime backend validation of FI data" is set or not ?
    Regards.
    Laurent.

  • How to get Products from Shopping Cart(Basket) in ATG

    I want get all products from shopping cart
    can any one help on this requirement?
    Thanks in Advance.

    Hi ,
    If you want directly JSP , use the droplet as suggested correctly by shaik,
    If you want it in java code,
    A good way is to make a Droplet ( global scoped ) and pass the current shopping cart to the droplet.
    eg :
    <dsp:droplet name="MyDroplet">
    <dsp:param name="inOrder" bean="/atg/commerce/ShoppingCart.current"/>
    OR
    <dsp:param name="inOrder" bean="/atg/commerce/order/purchase/CartModifierFormHandler.order" />
    <dsp:oparam name="output">
    </dsp:oparam>
    </dsp:droplet>
    and in the droplet java file you can use it as :
    CommerceItemContainer inOrder = (CommerceItemContainer) request.getObjectParameter("inOrder");
    and you can use inOrder.getCommerceItems(); to get a list of commerce items from order.
    You can directly get the order in your droplet ,but then you will have to make it request scoped , making global scoped droplets is good practice.
    ~Praveer

  • Storage location from Shopping Cart is overwritten in PO

    Hi
    I am trying to convert a Shopping Cart to Purchase order using the sourcing application. However while doing that my Shopping Cart Storage location always gets overwritten by one particular Storage Location in PO. Even if i try and change the storage location to the correct one in PO, it again gets overwritten. This is causing problem during the Goods Receipt.
    I am using the SRM 5.0 version and recently the system got upgraded to Support Pack 9.
    Any help in this regard would be highly appreciated.
    regards
    manoj

    Hi Manoj,
    Please go through the following observations based on the information you have provided :
    1. Check the Extended Attributes tab for the user whether the concerned plant and storage location were maintained or not.
    2. Check whether that particular storage location is maintained for the concerned plant or not.
    3. Check for the same using different user and different plant storage location combination.
    Its difficult to say exactly what is the problem but for me it looks to be the storage location is not maintained for a particular plant thats why its taking the default storage location (generally the first one in alphabetical order)
    Please revert after checking the above observations for further help.
    Reward points for suitable answers.
    Rgds,
    Teja

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • Need information regarding Approver and approved date of Shopping Carts

    Dear All,
    We have got a requiremrnt to extract a list approvers and approved dates of shopping carts created for a given department and date range.
    Is there any standard way to find that?
    If we need to create a Z report please let us know the tables invovled.
    Thank you.
    Regards
    Arindam

    Hi
    Each approval step in SRM has got a work item guid and its relevant data stored in few Data tables. You may build a custom report to meet your requirements.
    Refer to this post for more details:
    Re: SRM table which stored shopping cart approval start and end time
    Regards
    Virender Singh

  • Moving Data from Normal table to History tables

    Hi All,
    I'm in the process of moving data from normal tables to
    History tables.
    It can be some sort of a procedure which should be a cron job running at night.
    My aim is to move data say 1.5 yrs or 2yrs old data to History tables.
    What aspects i need to check when moving data. And how can i write a procedure for this requirement.
    The schema is same in both the normal table and history table.
    It has to be a procedure based on particular field RCRE_DT.
    If the rcre_dt is above 2 yrs the data needs to be moved to HIS_<table>.
    I have to insert record in to HIS_table and simultaneously delete record from the normal table.
    This is in Production system and the tables are quite big.
    Pls do find enclosed the attached sample schema for Normal table and HIS_<table>.
    If i want to automate this script as a Cron job for similarly other History tables
    how am i to do it in a single procedure assuming the procedure for moving the data is the same procedure.
    Thanks for ur help in advance.
    SQL> DESC PXM_FLT;
    Name Null? Type
    RCRE_USER_ID NOT NULL VARCHAR2(15)
    RCRE_DT NOT NULL DATE
    LCHG_USER_ID VARCHAR2(15)
    LCHG_DT DATE
    AIRLINE_CD NOT NULL VARCHAR2(5)
    REF_ID NOT NULL VARCHAR2(12)
    BATCH_DT NOT NULL DATE
    CPY_NO NOT NULL NUMBER(2)
    ACCRUAL_STATUS NOT NULL VARCHAR2(1)
    FLT_DT NOT NULL DATE
    OPERATING_CARRIER_CD NOT NULL VARCHAR2(3)
    OPERATING_FLT_NO NOT NULL NUMBER(4)
    MKTING_CARRIER_CD VARCHAR2(3)
    MKTING_FLT_NO NUMBER(4)
    BOARD_PT NOT NULL VARCHAR2(5)
    OFF_PT NOT NULL VARCHAR2(5)
    AIR_CD_SHARE_IND VARCHAR2(1)
    UPLOAD_ERR_CD VARCHAR2(5)
    MID_PT1 VARCHAR2(5)
    MID_PT2 VARCHAR2(5)
    MID_PT3 VARCHAR2(5)
    MID_PT4 VARCHAR2(5)
    MID_PT5 VARCHAR2(5)
    PAX_TYPE VARCHAR2(3)
    PAY_PRINCIPLE VARCHAR2(1)
    SQL> DESC HIS_PXM_FLT;
    Name Null? Type
    RCRE_USER_ID NOT NULL VARCHAR2(15)
    RCRE_DT NOT NULL DATE
    LCHG_USER_ID VARCHAR2(15)
    LCHG_DT DATE
    AIRLINE_CD NOT NULL VARCHAR2(5)
    REF_ID NOT NULL VARCHAR2(12)
    BATCH_DT NOT NULL DATE
    CPY_NO NOT NULL NUMBER(2)
    ACCRUAL_STATUS NOT NULL VARCHAR2(1)
    FLT_DT NOT NULL DATE
    OPERATING_CARRIER_CD NOT NULL VARCHAR2(3)
    OPERATING_FLT_NO NOT NULL NUMBER(4)
    MKTING_CARRIER_CD VARCHAR2(3)
    MKTING_FLT_NO NUMBER(4)
    BOARD_PT NOT NULL VARCHAR2(5)
    OFF_PT NOT NULL VARCHAR2(5)
    AIR_CD_SHARE_IND VARCHAR2(1)
    UPLOAD_ERR_CD VARCHAR2(5)
    MID_PT1 VARCHAR2(5)
    MID_PT2 VARCHAR2(5)
    MID_PT3 VARCHAR2(5)
    MID_PT4 VARCHAR2(5)
    MID_PT5 VARCHAR2(5)
    PAX_TYPE VARCHAR2(3)
    PAY_PRINCIPLE VARCHAR2(1)

    Hi All,
    Thanks for ur valuable suggestion.But can u explain me bit more on this as i'm still confused about switching between partitoned tables and temporary table.Suppose if i have a table called PXM_FLT and an correspoding similar table named HIS_PXM_FLT.How can i do the partitioning shd i do the partitioning on the normal table or HIS_PXM_FLT.i do have a date field for me to partition based on range.Can u pls explain why shd i again create a temp.table.What's the purpose.Now the application is designed in such a way that old records have to be moved to HIS_PXM_FLT.can u pls highlight more on this.Your suggestions are greatly appreciated.As i'm relatively new to this partitioning technique i'm bit confused on how it works.But i came to understand Partitioning is a better operation than the normal insert or delte as it is more data intensive as millions of record need to be moved.Thanks for feedback and ur precious time.

  • Reservation not getting created from shopping cart for stores order.

    Hi experts,
    Reservation not getting created from shopping cart for stores order,process used is some custom BADI.Extended classic scenario is the procrss .
    Please help me
    Thanks in  advance.

    Hello,
    please check below wiki:
    Determination of the follow-on document type
    Regards.
    Laurent.

  • Music Store error 502 from Shopping Cart

    Just downloaded itunes 6 this morning and setup a new account. Attached new ipod nano. built a shopping list but when i click "buy now" I got the follwoing error
    "could not purchase the items in your cart. An unknown error occured (502). There was an error in the Music Store. Please try again later".
    Any ideas? My wife went onto her shopping cart for her account and was able to purchase. Is it something with a new account?

    I'm having a similar problem. My account, however, is not new. I tried updating to 6.0.1 and the problem still exists. I can access the music store just fine -- add music, listen to music, etc. -- but when I try to access my shopping cart to purchase the music that I've added -- "we cannot complete your music store request. An unknown error occurred (502). There was an error in the music store, please try again later".
    Anybody else with this specific problem? Any solutions?

  • Moving data from an array to a JTable

    Hi,
    I am facing some problems with handling array data to JTable.
    My objective is moving data from a 10X5 data array to a JTable.
    I am using the following code:
    String columnNames = { "Col 1", "Col 2", "Col 3", "Col 4", "Col 5" };
    for(int j=0; j<10; j++)
    data[ j ] = array1[ j ] + array2[ j ] + array3[ j ] + array4[ j ] + array5[ j ];
    JTable table = new JTable( data, coulmnNames);
    Can you please help me with the error in tha above code.My array1 is a String array and the other four arrays are of Integer data type.
    Thanks!!!

    hi,
    The actual error message is:
    [root@localhost java]# javac GUI.java
    GUI.java:144: incompatible types
    found : int
    required: java.lang.Object
    data [j] [1] = array1[j];
    ^
    GUI.java:145: incompatible types
    found : int
    required: java.lang.Object
    data [j] [2] = array2[j];
    ^
    GUI.java:146: incompatible types
    found : int
    required: java.lang.Object
    data [j] [3] = array3[j];
    ^
    GUI.java:147: incompatible types
    found : int
    required: java.lang.Object
    data [j] [4] = array4[j];
    ^
    4 errors
    My code segment with line no goes as follows:
    private static JTable createTable() {         
           String[] columnNames = { "Col 1", "Col 2", "Col 3", "Col 4"' "Col 5" };
             Object data [ ] [ ] = new Object [10] [5];
       for( int j=0; j<10; j++)
              data [j] [0] = array1[j]; ...................Line:144
              data [j] [1] = array2[j]; ..................Line 145
              data [j] [2] = array3[j]; ....................Line 146
              data [j] [3] = array4[j]; .................Line 147
              data [j] [4] = array5[j];
      final JTable table = new JTable(data, columnNames);
      return table;
    [code/]
    Array 1 is declared as String array and Array 2,3,4,5 are declared as Integer arrays.The error is coming from the Integer arrays only.
    Java version running on my machine is: 1.4.2
    Please help!!!
    Thanks!!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Regarding Removal of filed from Shopping Cart Extented Search

    Dear All,
    We have a requirment where we need to remove a field from shopping Cart Extended Search. Field name called "Role" has to be removed.
    Could some one let us know,  how to  remove the field?  we observed that BADi  CUF is being not triggered to suppress this field. And also we would like to know what is the Field name or Sturucture we need to remove.
    Waiting for  your response.

    Hello Amarnath,
    >
    amarnath g wrote:
    > (...)
    > we are on SRM version 5 ( SRM_SERVER 5.5). Does this imply to this release as well? (...)
    I think so. But to be sure, have a look at ABAP code for concerned Dynpro PBO.
    >
    amarnath g wrote:
    > (...)
    And also I would like to know wheter can we add a custom field  to the search Criteria.....
    Yes, but you will have to manage it in search structure GS_SEARCH_FIELD.
    Regards.
    Laurent.

Maybe you are looking for

  • Can I use Admin Console to Start Clustered Servers ?

              I have just started to look at clustering and am in the process of running through           the cluster example tutorial. I have used the domain config wizard to create           a manged server with a cluster and another server to act as

  • A question for the Pros!!!

    Hi everybody, First, i'm a LogicExpress user. Not that i want to underestimate the people at the LE forum, but i guessed that i could get a more informative answer over here. In the plug-in PDF manual of LE, they always show the reverb plug-ins with

  • I just upgraded to the iPhone 5.. how do I get all thats on my iCloud onto my new phone ?

    I just upgraded to the iPhone 5.. how do I get all thats on my iCloud onto my new phone ?

  • How to invoke a popup programatically from adf region

    Hi All, I have included a task flow as a region in my home.jspx page . My taskflow contains a assets,jsff page where on save button click i want to show some popup message programatically i mean i want to invoke showpoup code in my save action listen

  • 6 volt charging

    Has anybody any suggestions how to charge a 6220 from a vehicle with a 6 volt electrical system?