SAP Cloud Application Studio How to retrieve the details based on OVS in Product ID

Hi Experts,
I have small requirements in AdvanceListPanel. I have custom BO as mention below,
businessObject Demo {
               element ID : ID;
               node Sporoduct [0,n] {
                    element P_ID : ProductID;
                    element P_DES :   SHORT_Description;
                    element P_QTY : Quantity;
                    element P_NET :  Amount;   
I have attached the OVS on Product ID (P_ID) element.
I want to auto-fill the details under the AdvanceListPanel ( Product Desc , Product Net value ( Price) ) 
1) How to get the details of Product ( Prod Descr, Product Price etc ).
Please anyone have idea about this share your thoughts.
Many Thanks,
Mithun

Hi, Mithun
     What you want is to auto-fill the related details when you select a product from your OVS.
     That means you have to write your codes in Event After Modify.
     We normally use QueryByElements or some other query options given for a particular standard BO.
     It would be like that.
     var query=Product.QueryByElements;
     var selParams=query.CreateSelectionParams();
     selParams.Add(query.ProductID ,"I","EQ",this.P_ID );
     var result=query.Execute(selParams);
     for(var product in result){
     this.P_DES =product.Description;
What I have just written is just a sample code. You have to find the exact name of the attributes of a standard BO in Repository Explorer.
Hope this helps,
Fred.

Similar Messages

  • SAP Cloud Application Studio 1502 UI Designer proxy error

    Hi,
    When starting the UI Designer in SAP Cloud Application Studio 1502 I got the following error:
    Exception Message: XRepositoryException (0)The remote server returned an error: (407) Proxy Authentication Required.
    InnerException Message:XRepositoryException (0)The remote server returned an error: (407) Proxy Authentication Required.
    Source Type: SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy
    Machine Name: DEHEDEV1
    TimeStamp: 10.02.2015 16:42:42
    Application Version: 25.0.555.1045
    Windows Identity: GLOBAL\p-baurf
    Stack Trace:    at SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy.QueryFolder(String FolderName, List`1 Filter, String RecursiveMode)
       at SAP.BYD.LS.UIDesigner.Connector.XRepositoryProxy.QueryFolder(String FolderName, List`1 Filter)
       at SAP.BYD.LS.UIDesigner.Model.RepositoryLayer.ProjectWorkspaceManager.ExpandXRepositoryNode(FolderNode parentNode, List`1 componentFilter)
       at SAP.BYD.LS.UIDesigner.Model.RepositoryLayer.ProjectWorkspaceManager.GetRepositoryRootNode()
       at SAP.BYD.LS.UIDesigner.UICore.Toolwindowcontrols.VisualConfigurationExplorerControl.Init(Dictionary`2 DesignerProviders)
    So my question is, where can I configure the proxy settings for UI Designer? It seems that the general proxy settings in the studio (Tools -> Options -> SAP -> General) aren't used by the UI Designer.
    Kind regards
    Florian Baur

    if the error is different from this
    yes, raise an incident

  • SAP Cloud Application Studio Create Custom Web Service From Custom Business Object and Consume in External System

    Hi Experts,
    I have requirement to create custom business object and create Web Service for that and use in external system (SAP ECC / SAP CRM / Third Party).
    1) Is it possible to create custom object web service and used in external system ?
    2) When we create the Web service from custom business object what the necessary steps(action : Create , Read , Update) require?
    3) Sample Scenario :
    My Custom Business Object
    businessobject Custom_Integration {
      element EP_VAL1 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element EP_VAL2 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element IP_RES : LANGUAGEINDEPENDENT_MEDIUM_Text;
    I have created the Web Service using this custom business object.
    3) How i can use this web service in external system? what are the prerequisite steps in external system to consume this service in it?
    Please anyone have idea about this how to do this and how to achieve this using SDK and custom business object.
    Many Thanks
    Mithun

    Hello Mithun,
    Does this section in the documentation help you:
    SAP Cloud Applications Studio Help -> Developers Desktop -> Web Services
    The entry "Task -> Create a Web Service" describes how to create a Web Service on your own BO
    The entry "Task -> Test a Web Service" helps you how you can use it in a foreign tool / application.
    HTH,
       Horst

  • Extension fields in forms using Adobe LiveCycle Designer and SAP Cloud Application Studio.

    Hello everyone,
    I am new to using SAP Cloud Application Studio and am currently working on forms.
    I have created some extension fields in the dunning letter form message type : FormDunning Notification.
    Upon activating, the extension fields do show up in backend form data type structure.
    However i am unable to find the fields in the front end form under Form Template Maintenance.
    I have tried opening form with open editor as well as downloading template and opening in Adobe LiveCycle Designer .
    After creating the data connection in adobe ,the first field (ProjNumDun ) do appear in correct place in data view.But i cant find the rest of the fields.
    Any help,guidance and suggestion will be really appriciated.
    Thanking in advance,
    Kamakshi

    Kamakshi,
    First, any extension fields added must be explicitly assigned to appear on the forms. Through Front-end Adaptation, this would be via the "Further Usage" link. Within the SDK, you'd right-click the XBO and select "Enhance Forms" (which would take you to the same screen as you'd end up at in through front-end").
    You must select "Add Field and Edit..." to actually assign it to the Form Template schema.
    Once this step is done, re-download the Form Template, and make sure to reload the Data Connection within LiveCycle. Through there, you should see your fields. You'll likely have to dig for them - they appear at the very end of the child elements.
    Note that, while fields added through the front-end have a long string appended to the end (for example, it would appear as "ExtensionField_1234AISU897234HJA" if added via front-end adaptation), the fields added via the SDK do NOT have the suffix (you'll be looking for an element with JUST the field name, i.e. "ExtensionField")

  • SAP Cloud Applications Studio for ByDesign Partners

    If a ByDesign Partner requires access to SAP Cloud Applications Studio for some development work for ByDesign can they request for the Studio for Free or do they have to pay for the use of it?

    Any update by SAP on this? I'm unable to get to any help documentation via the SDK and links to API's and Web Services are all broken. The web site is not of much use right now to research any API capabilities, etc. ...

  • SAP Cloud For Customer : How to change the Logo or Image into the Standard Form Template

    Hi Experts,
    I have requirement to change the standard template format.
    I have copy standard template and edit using Adobe Life Cycle Designer to change the logo / image.
    After changed and upload modified template and change the output setting for print i can able to see the changes but logo / image can not display.
    Can anyone have idea how to solve this issue ?
    Can we change the template within cloud system?
    If Yes than How ?
    Regards,
    Mithun

    The following are the instructions (November 2014 version of SAP Cloud for Customer)
    Edit a Form Master Template
    Overview
    As an administrator, you can edit existing form master templates. These are used to define the header, footer, and logos used in form templates. Form master templates also contain an e-mail disclaimer that is appended to automatically generated e-mails sent to business partners when a document is output from the system.
    Procedure
    1. Go to Application and User Management or Administrator Business Flexibility Master Template Maintenance .
    2. In the Master Template Maintenance view, select Form Master Templates from the Show menu.
    3. Select the master template you want to edit and click Edit.
    4. On the Form Master Template tab, do the following:
    Under Header, click Upload and browse to find the file you want as logo. Adjust the size and alignment of the logo, as required.The file formats .gif, .bmp, .jpg, .png, and .tif are supported. The logo should not be larger than 40 mm width x 20 mm height. If you upload a graphic that is larger than 40 mm x 20 mm, it is resized automatically.Select the Header Divider checkbox if you want a graphical divider to appear on your form.Under Sender Address, enter your company’s address. The sender address is shown above the recipient's address in a letter.Under Footer, choose the number of footer columns you want to display. Enter the footer text exactly as you would like it to appear on the form. You can maintain up to 4 footer blocks with a maximum of 10 lines per footer.Note that the width of each footer block is equally divided over the available space. If a line of text in the footer is too long for the current font size, the system will automatically enter a line break. If this automatic line break does not meet your needs, you may need to enter the text after the line break as a separate line.To maintain multiple languages, you must first add the language from the Add menu and then maintain the texts in that language by selecting the language from the dropdown list.
    5. Click the refresh button to preview your changes. From the dropdown list under Preview, you can select a country. The preview is then displayed using the country-specific template, for example, some countries do not use sender addresses or have different paper sizes.
    6. On the E-Mail Disclaimer tab, you can enter a disclaimer or other company-specific legal information.
    This text is appended to the main text body of e-mails that are created when a document is output by the system. It is not possible to create separate language versions of this text; therefore if your company uses multiple communication languages, you should enter all language versions of the disclaimer here.
    7. Click Save and Close.
    Result
    If required, you can now assign the form master template to a company/org unit and/or output channel. For more information, see the Master Template Maintenance Quick Guide.
    Note that master templates can be activated and deactivated for each form template in the Form Template Maintenance view. For more information, see the Form Template Maintenance Quick Guide.

  • SAP Cloud For Customer How to Get the IP Address of Tenant

    Hi Experts,
    I need to know how to get the IP Address of our cloud Tenant ?
    Can anyone know please tell me the process.
    Many Thanks
    Mithun

    Hi Mithun,
    In my understanding there SAP will not share IP address of tenant. If this is really urgent you should discuss to SAP Partner coach or any other representative. SAP network team will not directly communicate with you, this will require numerous approval inside SAP itself.
    Thanks
    Sunil Maurya

  • How to retrieve the Details of a Quote

    Hi
    I would like to know how to get all the details of a quote, i.e., Products, Qty, costs, etc
    Thanks for your help

    Hello,
    You can use Odata endpoint call to get that information. Recheck following:
    https://msdn.microsoft.com/en-us/library/gg985387.aspx
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • SAP Cloud for customer how to get the Account ID and UUID from cloud

    Hi Experts,
    I have small requirement in cloud for customer.
    How to get all the account id with UUID in excel sheet using any SDK or other ways?
    Any way to get this information because i have tried using "Mass Data Maintenance" but not getting any information. 
    anyone know how can i get this information in cloud system?
    Many thanks,
    Mithun

    Hi Mithun,
    In my understanding there SAP will not share IP address of tenant. If this is really urgent you should discuss to SAP Partner coach or any other representative. SAP network team will not directly communicate with you, this will require numerous approval inside SAP itself.
    Thanks
    Sunil Maurya

  • SAP Cloud Application Studio 'Save' on Tickets

    Hello Experts,
    I had attached an embedded component 'Batch Info' on the 'Ticket' Screen. For one of the section group, I want these fields (Claim Justified [dropdown], Status [dropdown], Comments [text]) should get Saved on 'Save' button of the Ticket.
    I had created an association to the Service Request in my custom BO, added these fields in the extension object and in the script (BeforeSave) i want to save the values provided in these fields. Is this the right approach to achieve the desired result?
    Any sort of information is welcome.
    Thanks and Regards
    Pragati

    Hi Pragati,
    I dont know exactly what you want to do, however you can use embedded component in Ticket screen to show data from custom BO. You approach is OK.
    You can get lot of help from this portal, just goto content and search.
    for example below blog will help you
    http://scn.sap.com/community/business-bydesign/studio/blog/2014/03/18/how-to-add-custom-bo-facets-to-c4c-account-360-screen--part-1
    Regard
    Sunil

  • SAP Cloud Application Studio Make Account All Tabs fields/Table Entry readonly

    Hi Experts,
    I have urgent requirement with the below scenario.
    Scenario : In Account have flag Prospect if this flag check then all the fields under "Header" and all Tabs(ADDRESSES , SALES DATA etc) fields are editable.
    But if the flag is unchecked then under "Header" all fields are non editable and under the Tabs we want to disable the Add New record (Under ADDRESSES tab Add button want to be disable)
    kindly refer the above figure in that the Prospect Flag is uncheck so all fields under Header are read only But i also want to disable the "Add" , "New" function under the all Tabs as mentioned in the above screen.
    Kindly suggest me.
    Many thanks
    Mithun

    Hi Mithun,
    This is not going to be easy as this is a standard screen, but you can try this approach
    Add a custom Field of type indicator and set this indicator to True when you unchek the prospect check box in after modify.
    You can define the property read-only of your fields( which you need to disable) with the value as bound to this Custom Indicator you added.
    You can also do the same using the UI Switch instead of modifying the standard configuration. But disabling the Action Add, I think is not possible unless SAP gives you an anchor to hide it by setting the Button property
    Regards
    Vinod

  • SAP Cloud Marketing Lead How to Hide the Standard button action

    Hi Experts,
    In Marketing Lead TI screen button action event have 3 options
    1) Convert to Sales Lead
    2) Convert to Opportunity.
    3) Convert to Account or Contact
    I want to hide 2 option 1) Convert to Sales Lead and 2) Convert to Account and Contact from the Action button.
    I have try to enhance the standard BO as shown below.
    and when open the COD_Marketinglead_TI screen then i can not able to see 3 option under Action button.
    Please anyone have idea about how to get these 3 options 1) Convert to Sales Lead 2) Convert to Opportunity. 3) Convert to Account or Contact under Action button.
    Many Thanks,
    Mithun

    Thanks Dan for your reply.
    I have few question
    1) AP.CRM.Global:Lead is Marketing Lead BO or Sales Lead BO? if Not Marketing Lead BO then what is the correct path to extend the Marketing Lead?
    2) I have extend the AP.CRM.Global:Lead BO when we enhance the screen it give the below options and i have selected the highlighted screen is it correct or not ?
    After select the screen and click OK there are 4 screen comes automatically as shown below.
    3) When i Open the COD_MarketingLead.TI screen in UI designer i can able to see this screen as shown below.
    Here in this screen point 1 we can see that its COD_MarketingLead screen but in point 2 Screen Header Label is "Sales Lead" and point 3 under this Action button no 3 option available  1) Convert to Sales Lead 2) Convert to Opportunity. 3) Convert to Account or Contact. But when you open Marketing Lead we can able to see these option under the action event as shown below.
    Help me how to get Marketing Lead Screen with above actions in UI Designer.
    Many Thanks,
    Mithun

  • How to retrieve the data from SAP-BAPI by using VB Code

    Hi ,
    I am new to BAPI.
    V have created an application in Visual Basic with the following fields
    EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
    We have written the code for SAVING the data into SAP. Already we have
    constructed a table with the respective fields in SAP.
    For that we ourself created our own BAPI Structure / Function Group /
    Function Module/ Business Object - RELEASED related elements.
    1)Established the connection successfully.
    2)Stored the data into SAP Successfully and v r in need of
    3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
    Following is the code :
    'BAPI Structure  : ZBAPIEMP
    'Function Group  : ZBAPIEMP
    'Function Module : ZBAPI_EMP_CREATEFROMDATA
    'Business Object : ZBAPIEMP
    'Function Module : ZBAPI_EMP_GETLIST
    Dim bapictrl As Object
    Dim oconnection As Object
    Dim boEmp As Object
    Dim oZEmp_Header As Object
    Dim oImpStruct As Object
    Dim oExpStruct As Object
    Dim oreturn As Object
    Dim x As String
    Private Sub Form_Load()
    Set bapictrl = CreateObject("SAP.BAPI.1")
    Set oconnection = bapictrl.Connection
    oconnection.logon
    Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
    Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
    Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
    End Sub
    Private Sub cmdSave_Click()
        oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
        oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
        oZEmp_Header.Value("ADDR1") = txtAddr1.Text
        oZEmp_Header.Value("ADDR2") = txtAddr2.Text
        oZEmp_Header.Value("CITY") = txtCity.Text
        oZEmp_Header.Value("PHONE") = txtPhone.Text
        boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
        x = oreturn.Value("Message")
        If x = "" Then
            MsgBox "Transaction Completed!..."
        Else
            MsgBox x
        End If
    End Sub
    Private Sub cmdView_Click()
    End Sub
    COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.

    I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
    -Tim
    Option Compare Database
    Dim SAPLOGIN As Boolean
    Dim FunctionCtrl As Object
    Dim SapConnection As Object
    Sub SAPLOGOUT()
    On Error GoTo LogoutFehler
        SapConnection.logoff
        SAPLOGIN = False
    Exit Sub
    LogoutFehler:
        If Err.Number = 91 Then
            Exit Sub
        Else
            MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
        End If
    End Sub
    Function SAPLOG() As Boolean
    'Verbindungsobjekt setzen (Property von FunctionCtrl)
       Set FunctionCtrl = CreateObject("SAP.Functions")
       Set SapConnection = FunctionCtrl.Connection
    'Logon mit Initialwerten
       SapConnection.Client = "010"
       SapConnection.Language = "EN"
       SapConnection.System = "PR1"
       SapConnection.SystemNumber = "00"
       'SapConnection.Password = ""
       SapConnection.GroupName = "PR1"
       SapConnection.HostName = "168.9.25.120"
       SapConnection.MessageServer = "168.9.25.120"
         If SapConnection.Logon(0, False) <> True Then  'Logon mit Dialog
             Set SapConnection = Nothing
             DoCmd.Hourglass False
             MsgBox "No connection to SAP R/3 !"
             SAPLOGIN = False
             SAPLOG = False
             Exit Function
          End If
        SAPLOG = True
    End Function
    Function MatDescr(MatNr As String)
    Dim func1 As Object
    Dim row As Object, X As Integer, ErsteNr As String
    Dim DatensatzZähler As Long
    Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
        If Not SAPLOGIN Then
            If Not SAPLOG() Then
                MsgBox "No connection  to SAP !", 16
                SAPLOGOUT
                Exit Function
            End If
        End If
    ' Instanziieren des Function-Objektes
    Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
    ' Export-Paramter definieren
    func1.exports("MATNR") = MatNr
    func1.exports("SPRAS") = "EN"
    DoEvents
    If Not func1.call Then
        If func1.exception <> "" Then
            MsgBox "Communication Error with RFC " & func1.exception
        End If
        DoCmd.Hourglass False
        SAPLOGOUT
        Exit Function
    Else
      MatDescr = func1.imports("MAKTX")
    End If
    If MatDescr = "" Then
        MatDescr = "PART NO. NOT FOUND"
    End If
    End Function

  • How to retrieve the values from a table if they differ in Unit of Measure

    How to retrieve the values from a table if they differ in Unit of Measure?

    If no data is read
    - Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
    If no quanity in result internal table
    - There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
    - - Remove the CORRESPONDING, so quantity will fill the first field adqntp1.  ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
    - - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
    * Fill the internal table
    SELECT msehi adqntp
      INTO TABLE internal table
      FROM lipso2
      WHERE vbeln = wrk_doc1
        AND msehi IN ('KL','K15','MT').
    * If required move the read quantity in the appropriate column.
    LOOP AT internal_table ASSIGNING <fs>.
      CASE <fs>-msehi.
        WHEN 'K15'.
          <fs>-adqnt2 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
        WHEN 'MT'.
          <fs>-adqnt3 = <fs>-adqnt1.
          CLEAR <fs>-adqnt1.
      ENDCASE.
    ENDLOOP.
    - You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
    Regards,
    Raymond

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

Maybe you are looking for

  • Document merge problem due to embedded fonts

    I am trying to merge 6 single page pdf documents into one pdf file. I am receiving this error on two of the six docs: "These documents contain subset fonts that have the same name and cannot be merged" Can anyone help me work through this issue? I am

  • ITunes Registry Settings Missing

    hi, Every time i startup itunes 7 on my pc i get this screen and i can't burn anything (i an import though): http://img75.imageshack.us/img75/5773/ituneserrorew0.png i've re-installed five times (and no, i don't have another burning software installe

  • Need info on this K_HIERARCHY_TABLES_READ function module

    Hi Experts, I need information on this function module. what exactly this function module will do. looking for your reply Regards, Kali Pramod

  • Local Director Load Balancing question

    Using IOS 3.2.2 I have a local director 416 with 2 real servers. I would like to send all traffic to 1 server and if it fails to switch over to the secondary server. The way I see to do it is to use weighted load balancing and set the weight of the 2

  • Get mails from outlooks personal folder (.pst)

    Hi, I am using JavaMail to parse mails from the imap server.The application gets new mails from inbox and parses it as required.however i need to modify this to get new mails from a personal folder(.pst)file instead of the inbox on the server. Any he