SUP Nested Array Problem in REST Response while Creating MBO

I am using SUP 2.0 to build MBOs from a rest web service which sends me a list of profiles in which each profile has a list of industries associated with him that mean my resultset contains an array of industries in the XML response for each of the profile.
What SUP is doing when I am trying to build MBOs and execute them, it is returning me duplicate rows as the MBO is not able to hold complex object like array or list. Each profile is repeated n times if the profile has got n industries,
How to handle this kind of response in SUP ?
My Profile structure looks like
Profile {
  STRING city;
  STRING name;
  STRING profileID;
  STRING[] industries;

Okay I am defining it more elaborately.
suppose from a web service u get a response which contains a list of profiles as its result. Now each profile has got a list of industries as well. But MBO in SUP don't support complex data type like array of objects. Now when i try to preview, if i had 2 profiles in the resultset and say 1st profile 'a' has got 3 industries and 2nd profile 'b' has got 2 industries so now my resultset contains 5 rows like
Name           City            ProfileID           Industries
a                   c1              p01                   i1
a                   c1              p01                   i2
a                   c1              p01                   i3
b                   c2              p03                   i4
b                   c2              p03                   i7
How to handle it in a better way, Can I use SUPObjectList somehow to hold list of Industries for each profile in the resultset without getting repeated entries.
Thanks

Similar Messages

  • Problem in refurbishment processing while creating GR.

    Dear experts,
    I'm working on refurbishment processing. I have done all the steps as below:
    I have a material for equipment for which I have 3 valuation types:
    C1 - New items
    C2 - Repaired Items
    C3 - Damaged Items.
    1. Equipment creation with serial number allocating the valuation type C1 installed at a F/L
    2. I have 2 no.s of the same in stock with the valuation type C1.
    Now I got a problem with equipment which is installed and needs to send it to the vendor for repair. I have changed the valuation type to C3 of the equipment in serial number data, and dismantled using t code IE4N with movement type 202. After that I have issued one material (equipment) from stock to the same cost center and then went to change mode of the equipment (IE02) in structure tab I have mentioned the F/L.
    Now I have created a Refurbishment order for the damaged equipment, mentioning from valuation C3 to valuation C2 in the order. I have mentioned the Service number, qyt and price in the External screen of the Operations tab. Released the order. I got PR. (I have mentioned only services for the PR, no materials). I have created the PO w.r.t the PR from the refurbishment order.
    After that the vendor has completed the services and returned the material (equipment), for that I'm following the GR w.r.t refurbishment order i.e, IW8W. I have entered the Order number then enter. There in the new screen it shows,
    Change charge / valuation type+Post GR. this is having tick by defualt.
    Posting date: 28.05.2009
    Document date28.05.2009
    Valuation type C2 in gray mode
    Plant 1250 in gray mode
    stor. location 1040 optional entry
    Then I have ticked the box for Deliv. Compl
    Here I am not finding the material number or serial number.
    In the bottom of the screen it shows the header
    Serial number   Material number     Materail doc number     Batch/Valuation Type
    The headers are showing but no data under the header. While saving the document it gives error message as below:
    Select serial numbers
    Message no. CMFU106
    But there is no data of serial number to select. I have tried the same in IDES, there it is showing only Material numbe no serial number, but allowing to save the document. (the screen is bit different that of Devl. server, in IDES the header as I mentioned above is not appearing, just below the order number the Material number is displaying.)
    Please help me in solving this issue.
    Rgrds,
    Praveen

    Pithan,
    I dont understand why new serial number is created while creating RO? That equipment is already having aserail number and was in use. Now that equipment is damaged and sending for repair to vendor.
    While creating RO it takes the serail number of that equipment (here I have one serial number to one equipment and one material with several serail numbers).
    If that is the case then how it has accepted the GR through MIGO?
    In the document itself SAP mentioned the you need to choose the serial number of the damaged equiupment while creating the RO. It will not be created while creating RO.
    When I try to create and release RO it gives error message as below:
    Automatic serial number assignment for refurbishment is not advisable
    Message no. IW832
    Diagnosis
    The material 700000236 is assigned to the serial number profile. For the serialization operation affected here, automatic serialization is configured in Customizing (value 04)
    System Response
    The setting is not supported in the refurbishment.
    Procedure
    Maintain the serial numbers manually.
    Regards,
    Praveen

  • Problem in getting data while creating public template shopping cart(urgen)

    Hi Gurus,
    I am technical guy...Could you please suggest me how to populate the purchase organisation details(be_pur_org) which is of type bbps_sc_app_item.
    The problem is while creating normal shopping cart template it is displaying the vendor and inforecord details..when I use the same data for creating the public shopping cart it is not displaying the values (vendor and inforecord details) this is due to the missing of purchase organisation field value which is populated in the field be_pur_org which is of type bbps_sc_app_item.
    Is there any badi's to populate the purchase organisation details...?
    awaiting for all your replies..points will be rewarded with lots of appreciation
    Thanks & Regards,
    Ravi Ganji

    Hi
    <u>You can use either of the BADIs depending on your requirement.</u>
    BAdI Definition Name Description                                                                               
    BBP_PGRP_ASSIGN_BADI EBP Purchasing Documents: Assign Purchasing Group(s)       
    BBP_PGRP_FIND        Shopping Cart: Determine Responsible Purchasing Group(s)                                                                               
    BBP_DOC_CHANGE_BADI
    BAdI for Changing EBP Purchasing Documents
    <b>Please read the Standard documetation available with them using SE18 transaction in SRM system.</b>
    Which SRM version you are using ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Terminated by user problem in  incomming  idoc while creating the sales ord

    This is a file to idoc issue.
    Idoc basic type: ORDERS03
    When an SO is created by an incoming idoc, problem comes with status u201Cterminated by useru201D with 51 status.
    When we tried to post this issue in BD87 t.code the document posts with out any issue.
    We are not able to create this issue in Quality box as well,
    Experts let us know if you have ever faced such problem in user system.

    "Terminated by user" means what it says. Someone has physically interrupted processing of the IDoc. That's all there is to it.

  • PROBLEM IN BDC FOR WHILE CREATING PGI

    Hi All,
    I am using BDC program to Create PGI automatically from custom development program for CASHTILL . In Vl02n there is one Custom development screen '9999', it will be called when press POSTGOODSISSUE button in VL02n. I am filling this screen also Using BDC. This custom screen is called in USEREXIT SAPMV50A include mv50afz1 in USEREXIT_SAVE_DOCUMENT_PREPARE. This code will update one Custome Table.
    Problem is when i run BDC it's updatting the custom table,but it's not creating PGI,but when i run the secondtime my BDC program it's creating PGI. Please help me why i am getting this error? I pasted my code here,
    REPORT  YVL.
    DATA T_CODE(10) TYPE C VALUE 'VL02N'.
    DATA:  T_BDCDATA TYPE STANDARD TABLE OF BDCDATA     WITH HEADER LINE.
    DATA:  h_bdcdata  TYPE STANDARD TABLE OF BDCDATA     WITH HEADER LINE.
    DATA : L_DATE(10) TYPE C,
           L_DATE1(10) TYPE C.
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
       EXPORTING
         DATE_INTERNAL              = SY-DATUM
       IMPORTING
         DATE_EXTERNAL              = L_DATE1
       EXCEPTIONS
         DATE_INTERNAL_IS_INVALID   = 1
         OTHERS                     = 2.
    perform bdc_dynpro      using 'SAPMV50A' '4004'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LIKP-VBELN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=WABU_T'.
    perform bdc_field       using 'LIKP-VBELN'
                                  '80003504'.
    perform bdc_dynpro      using 'SAPLZSD_PROOF_DELIV' '9999'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZSD_PROOF_DELIV-NAME_LAST'.
    perform bdc_field       using 'ZSD_PROOF_DELIV-NAME_FIRST'
                                  'cash'.
    perform bdc_field       using 'ZSD_PROOF_DELIV-NAME_LAST'
                                  'sales'.
    perform bdc_field       using 'ZSD_PROOF_DELIV-YSDATE'
                                  L_DATE1.
    perform bdc_field       using 'ZSD_PROOF_DELIV-YSTIME'
                                  '11:14:01'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=WABU_T'.
    COMMIT WORK.
    CALL TRANSACTION  T_CODE USING t_bdcdata.
    FORM bdc_dynpro USING program dynpro.
      CLEAR h_bdcdata.
      h_bdcdata-program  = program.
      h_bdcdata-dynpro   = dynpro.
      h_bdcdata-dynbegin = 'X'.
      APPEND h_bdcdata TO t_bdcdata.
    ENDFORM.                    "BDC_DYNPRO
    FORM bdc_field USING fnam fval.
      CLEAR h_bdcdata.
      h_bdcdata-fnam = fnam.
      h_bdcdata-fval = fval.
      APPEND h_bdcdata TO t_bdcdata.
    ENDFORM.                    "BDC_FIELD

    At first, I would suggest you try with VL02 Tcode rather doing for enjoy transactions.
    Updation of Z table should be sync with your PGI transaction. Here the INSERT/UPDATE should in PERFORM ON COMMIT so the both transaction and Z table will be in sync.
    what is the error you are getting for first time execution? Do you need commit work before call transaction?
    Regds
    Manohar

  • Problem with Account Group while creating a Customer

    Dear Friends,
    I am trying to create a customer with a specific Account Group. But when I try to save this customer I get an error message
    Acct group XXX uses internal no.assignment; leave blank.
    I have copied my account group (XXX)  from 001 Sold-to-Party.
    Request you to please guide me why this error is and what is the resolution for the same.
    Regards,
    Lalit Kabra
    PS : Pardon me for basic question as I am  trying to learn SD.

    Hi,
       This error means this Account group has the number range which is internal(Sold to party has the Internal assignment only). This means system gives the number automatically. If you want to use your own numbers ,them you change the assigned number range, go to "OVT0" and select the number range which is external. This should solve your problem.
    Regards
    Ram Pedarla

  • Problem in prod server while creating data source.

    hi experts,
    I hav transported the "view" frm quality to prod,and i hav not transported the data source, i want to create the  data source so wether it will allow me to create or not?
    If not what are the problems will come acorss???
    Any help will be apprecaited ane rewarded to.
    Urs,
    Raki

    Hi Vishwa,
    I know this i can create the DS in Dev and the same can trans to Prod sys.
    Due to some reasons i have to do it in prod sys.
    And one more thin i want to ask u is what are  problems it maight encounter if the view is transorted and data source is created (but not transported.
    And even in bw side also what are the prob may come across?
    Urs,
    Raki

  • Problem with FM MB_CREATE_GOODS_MOVEMENT while creating GRI .

    Hi All,
    I am facing an issue with FM MB_CREATE_GOODS_MOVEMENT. I am using FM MB_CREATE_GOODS_MOVEMENT to create
    material document (Doing GRI) with ref to a delivery document . FM sucessfully creating Material doc but it is not updating delivery document status(from open to completed).
    Regards
    Rahul

        READ TABLE git_header_temp INTO gwa_header WITH KEY vbeln = gwa_final1-vbeln.
        LOOP AT  git_item INTO gwa_item WHERE vbeln = gwa_final1-vbeln.
          READ TABLE git_detail INTO gwa_detail WITH KEY vbeln = gwa_item-vbeln
                                                         matnr = gwa_item-matnr.
      IF sy-subrc EQ 0.
            MOVE : gwa_detail-vbeln TO lwa_item-deliv_numb,
                   gwa_detail-posnr TO lwa_item-deliv_item,
                   gwa_detail-vbeln TO lwa_icontrol-deliv_numb,
                    gwa_detail-posnr TO lwa_icontrol-deliv_item,
                   gwa_detail-vbeln TO lwa_ispecial-deliv_numb,
                   gwa_detail-posnr TO lwa_ispecial-deliv_item.
          ENDIF.
    READ TABLE git_mchb INTO lwa_mchb WITH KEY matnr = gwa_item-matnr
                                                     charg = gwa_item-charg.
          IF sy-subrc EQ 0.
            lv_gross_weight = lwa_mchb-ptare + lwa_mchb-clabs.
    IF sy-subrc EQ 0.
            lv_gross_weight = lwa_mchb-ptare + lwa_mchb-clabs.
            MOVE : lwa_mchb-matnr   TO lwa_item-material,
                   lwa_mchb-charg   TO lwa_item-batch,
                   lwa_mchb-clabs   TO lwa_item-dlv_qty,
                   lv_gross_weight  TO lwa_item-gross_wt,
                   lwa_mchb-clabs   TO lwa_item-net_weight,
                   gwa_detail-gewei TO lwa_item-unit_of_wt,
                   gwa_detail-umrev TO lwa_item-conv_fact,
                   gwa_detail-umvkz TO lwa_item-fact_unit_nom,
                   gwa_detail-umvkn TO lwa_item-fact_unit_denom,
                   lwa_mchb-clabs   TO lwa_item-del_qty_flo.
            APPEND lwa_item  TO lit_item.
    MOVE : lwa_mchb-lgort TO lwa_ispecial-stge_loc.
            APPEND lwa_ispecial TO lit_idataspl.
            lwa_icontrol-chg_delqty = gc_x.
            lwa_icontrol-net_wt_flg = gc_x.
            lwa_icontrol-gross_wt_flg = gc_x.
            APPEND lwa_icontrol TO lit_icontrol.
            MOVE : gv_mandt        TO lwa_idetail-mandt,
                   gwa_item-charg  TO lwa_idetail-charg,
                   gwa_item-zpicid TO lwa_idetail-zpicid,
                   gwa_item-matnr  TO lwa_idetail-matnr,
                   gwa_item-zldno  TO lwa_idetail-zldno,
                   gwa_item-tknum  TO lwa_idetail-tknum.
            lwa_idetail-zstats = 'PICKED'.
            APPEND lwa_idetail TO lit_idetail.
          ENDIF.
          CLEAR : lwa_idetail,
                  lwa_vbpok,
                  lv_gross_weight,
                  lwa_item.
        ENDLOOP.

  • Problem with Billing date while creating Billing Document

    According to the factory calendar maintained at the client side every Saturday is a holiday. Due to  this, the billing date for every Billing Document (vf01)  created on Saturdays gets pushed to Monday's date..  I tried using VOFM routine 011 to default the billing date (vbrk-fkdat) to system date.I have assigned the same in copy control.. But this does not work. Any suggestions?

    hello,
    This is a standard flow and if you want to tamper that, need to change in standard SAP...which I would not recommend you...
    Please use a separate factory calender for that particluar site...
    Thanks..

  • Problem in customer address while creating service notification using IW51

    Hi Experts,
    I am trying to create a BDC recording for creating Service Notification using transaction IW51. I have done the recording as follows. On the First screen I am entering notification type. Then on the next screen I am entering the Sold to party  and its address by clicking on the icon besides it. After that i enter Functional location, equipment, priority and req end date and save it.  When I am running this recording after transferring it to a progam , somehow the address disappears for the newly created notification. I am not able to figure out the reason. Kindly guide me.
    Thanks,
    Sonal

    I assume you have tried this with update mode = 'A'-all and watched it actually work correctly?  May I ask why the BDC instead of BAPI?  Is it because you're creating a new partner?  If so, are you pressing save on that partner creation?

  • Problem in F4 help while creating ODS queries

    When one tries to create a query on ODS then the F4 help option hangs up and never comes back.
    Have referred SAP Note 984229 and 955990 already.
    System : SAP BI 7.0
    SPS: 13
    Database : Oracle 10G
    Thanks and Regards
    Nidhi

    At first, I would suggest you try with VL02 Tcode rather doing for enjoy transactions.
    Updation of Z table should be sync with your PGI transaction. Here the INSERT/UPDATE should in PERFORM ON COMMIT so the both transaction and Z table will be in sync.
    what is the error you are getting for first time execution? Do you need commit work before call transaction?
    Regds
    Manohar

  • Problem in copy routine while creating the follow up to Servcie Request

    Hi,
    I am creating Lead as follow up from Service Request. I have partner functiona called Reporter in Service Request. Now what ever the value is there in Reporter I need to copy it into Contact Person of Lead. However, I am not seeing any method to update the contact person in COPY ROUTINE BADI.
    Can you please help me.
    Thanks,
    Sandeep

    hello,  in the COPY ROUTINE BADI, you don't need the method special for partner.  You can set the parnter of new document by CRMD_ORDER_MAINTAIN.
    In the function, you only need the new document guid handle, and the partner guid which you want to set in the document, and partner type.

  • Problem With OAM10g URL while Creating Policy

    we are trying to protect a resource in OAM 10g for this we have created policy in that resource tab. we are not getting the URL which we mentioned in Host Identifier. Instead of the URL mentioned in Host Identifier we are getting the following URL.
    our URL is appearing ---- dc%3d%testdc%2d%com...
    Edited by: Arii on Aug 24, 2012 8:15 AM

    URL prefix appearing under resource tab, is not because of Host identifiers. It is because of configuration you done during Policy Manager setup (after installing Policy Manager). During configuration, it asks for policy domain URI prefix and by default its value is /
    Refer your installation and verify.

  • Problem in HSQLDB schema, while creating SystemUserAttr table

    Hi All,
    After a long struggle i somehow managed to come up to post installation step. After the installer successfully pinged my DB connection and HelloCS url it again failed after trying to create the CS system tables inside HSQLDB 2.2.8.
    It does create ELEMENTCATALOG, SITECATALAOG and SYSTEMINFO tables, but when it is trying to create SystemUserAttr table it failed due to the below reason
    CREATE TABLE SystemUserAttr (id NUMBER(38) NOT NULL, name VARCHAR(32) NOT NULL, value VARCHAR(255) NOT NULL, urlvalue VARCHAR(255) NULL, PRIMARY KEY (id, name, value))
    java.sql.SQLSyntaxErrorException: type not found or user lacks privilege: NUMBER
    The data type Number is not recognized by HSQLDB, instead Numeric is working. But how do i change it in the installer. The installer failed to locate/execute the corresponding load script for HSQLDB. Is different load script available for different data dialect?
    How can i change this load script? Becuase of this, eventhough the application deployed successfully i was not able to login into the URL http://localhost:8080/cas/login using fwadmin/xceladmin
    The url http://localhost:8080/cs/HelloCS is working fine and it is giving the embedded status when i am seeing the source file as
    *<!--FTCS|||result=It worked!|||reason=Success|||err=0|||command=Test CS jar install|||params=test=true|||-->*
    I am in the last step, if it is working i can start my work.
    regards
    Sri
    Edited by: user652523 on Aug 8, 2012 11:58 AM
    Edited by: user652523 on Aug 8, 2012 11:59 AM

    When you choose the database installation type in the installer, the mapping between the Java types and the DB types defaults from the installer based on the db you choose. The HSQLDB defaults are for 1.1.8, not the 2.x version you're using.
    You can override the types. After the first part of the installation, before you get to the pingdb step, you can open up the Property Editor, then open up the futuretense.ini file. Click on the database tab, and change the mapping for cc.numeric to what you want it set to.
    Regards,
    Tony

Maybe you are looking for

  • Multiple Item Codes in a MRP Generated PR

    Dear Sir, We have a requirement to have "Multiple Item Codes" in a single PR . The PR are generated thru MRP . The criterion  to have multiple Items in a single PR is that a PR will contain multiple Items codes pertaining to the same Material-Group .

  • Find the clip name? Premiere SDK

    I might be over thinking this or just plain dumb, but can someone tell me how to grab the clip name from a segment? I feel like there would be some code somewhere if the FCP xml exporter has the names of the clips. Any pointers or help would be appre

  • Solaris 10 will not boot after patch install

    running solaris 10 on a Netra machine. installed patch via sun manager and after reboot I get the following error. If anyone can help I would appreciate it. Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0:a File and args: -s File not executable. boot fa

  • Ready to trade my sleek for an ipod after 24 hou

    I got my sleek yesterday and I am ready to trade it for a freakin ipod! ... I never thought id say that. I must have spent 5 hours today trying to get Windows media player to read my sleek. Windows recognizes it, when I open up my computer its recogn

  • Not able to create supplier from SRM 7.0 portal

    Hi all, I am trying to  create a supplier from SRM 7.0 portal .I provided all the details and while I am saving I am getting an error Enter the business partner number. I gave LOCAL8 as partner number in company data  basic data and in supplier data