Unable to get CRM sales lead in portal

hi friends,
I have installed CRM 5.0 SR2 and i gave connection to portal, i am able to see the Easy acess but i am unable to see the i view of sales manager leads, can any one suggest me what configurations i have to do on CRM side what i hv to do on portal side......urgent...
Error: HTTP/S connection failed ( when i ran the test connection WEB AS connection )
thanx

Hello Lakshmi,
Check whether you have the proper autorization for the user through which you are connecting to the backend from portal.
The connection test for WAS has some bugs. If its connecting to the backend properly, don't worry about the result of the test.
Regards
Deb
[Reward Points for helpful answers]

Similar Messages

  • Getting an error while creating a ERP Quotation from CRM Sales Web-UI.

    Hi Experts,
    I am getting an error while creating a ERP quotation from CRM Sales Web-UI. Here  I am enclosing the screen shot. Please give me the solution for this.Thank you in advance.
    Regards
    Kishor Kumar.

    Hi Kishore,
    Please refer to the link below -
    Entry of ERP Sales Documents in SAP CRM - Sales Quotation and Order Management - SAP Library
    Also, refer to the SAP note -
    1446253  - FAQ note: ERP documents in the CRM Web UI (lead-to-cash scenario)
    This note will give you the related topic and the configuration required through SAP help links.
    Hope this will be useful.
    Thanks and Regards
    DJ

  • How to create Oppertunity doc automatically after lead in CRM SALES

    Hi,
    how to create oppertunity doc automatically after creating lead in crm sales
    Thanks7regards
    kishor kumar

    Hi Kishore,
    Create SAP Business Workflow for Opportunity from Lead 
    Use
    A lead is a business transaction that describes, stores, updates, and manages the potential business interests of a business partner, and the interactions based on this over a period of time. The goal is to provide the "sales" area with the information gained in the lead, in order that it can be used as a basis for deciding whether to create an opportunity.
    The information gathered in the lead is transferred to the "sales" area via the workflow "create opportunity from lead".
    In the workflow, you decide whether the opportunity is generated manually or automatically.
    If the lead-specific attributes Priority and Lead group fulfill specific criteria, the workflow automatically generates an opportunity. Otherwise, the workflow sends a work item to the sales employee responsible, for manual creation. Once he has checked the data in the lead, the sales employee can either reject this lead or create an opportunity from it.
    The workflow is automatically started when the lead is saved.
    The sales representative entered in the lead is first taken as the sales employee whose task it is to create the opportunity based on the information in the lead. This person can be determined using partner determination in CRM, depending on the prospect in the lead, and can, for example, be a manager of a sales area. If no sales representative is entered, the workflow takes an organizational unit assigned in the workflow template, and sends the work item to all users assigned to the organizational unit.
    Prerequisites
    u2022     The type linkage for the start events AttributeChanged and SetErrorFree for the workflow WS10001011 are deactivated as a standard procedure, and, if you wish to start the workflow template, they have to be activated again in Customizing. The workflow task processors must also be maintained. In Customizing, choose Customer Relationship Management  Basic Functions SAP Business Workflow  Perform Task-Specific Customizing.
    u2022     The workflow template uses the user statuses SAAC (accepted by sales) and SARE (rejected by sales) of the status profile CRMLEAD. If you have defined several user statuses, the data flow for task TS10008154 (set status) must be adapted accordingly.
    u2022     When the opportunity is created, the workflow template uses the opportunity transaction type OPPT. If you have defined several transaction types for the opportunity, the data flow for task TS10008151 (create opportunity) must be adapted accordingly.
    u2022     If the sales employee rejects the lead, the workflow resets the qualification level to value 02 (warm). If you have specified your own qualification levels in Customizing, you need to adapt the data flow for task TS10007918 (change qualification level) accordingly.
    Process of Workflow WS10001011 (create opportunity from lead)
    The workflow "create opportunity from lead" is started when a lead is saved with qualification level Hot and status Error-free. The system uses the lead-specific attributes Priority and Lead group to check whether an opportunity can be automatically created, or a sales employee first needs to decide. If the sales employee decides that an opportunity can be created, the lead status is set to "accepted by sales", and an opportunity is created in the background. If necessary, this is forwarded to the sales employee to check. If the sales employee rejects the lead, the lead status is set to "rejected by sales", and the initiator is informed by mail.
    The workflow is ended if no opportunity is created and
    o     the lead is deleted or
    o     the qualification level of the lead is changed to a value other than Hot or
    o     the status of the lead is changed to a value other than Error-free.
    Path for the workflow:
    ==> SPRO
    ==> Customer Relationship Management
    ==> Basic Functions
    ==> SAP Business Workflow
    ==> Perform Task-Specific Customizing
    Select the Application Componenet  Abbrevation as CRM and expand
    Select CRM-BTX and expand
    Select CRM-BTX-LEA and click on Activate event linking  and acivate workflow WS 10001011
    It may helps you
    Regards
    Narayana

  • Federated Portal Network - Unexpected Error - Unable to get IView

    Hallo.
    I have this problem: I have two portal federated.
    When I create an iView BI7.0 from the consumer portal , that points to the producer portal , when I execute it I obtain the error :
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Unexpected error - Unable to get IView: fpn:consumer_ABC/pcd:portal_content/com.abc.AbcFolder/zcitbi70/worksetBI70/Prova/sottoprova/BI7ReportProgetti:lQ9fUQ0dfID4PPyUU4cpZg%3D%3D:1:
    Note that I am able to see the iview, role etc from consumer to producer, so the Federated Portal Network seems to work.
    What could I do ?
    Thanks for your help
    Mario

    Hi Experts,
    I am getting below error in logs. Some of the reports working and some of the are not working. I can see below error in BW system logs. Any inputs to solve this issue is much appreciated.
    java.io.IOException: Cannot establish connection with any of the profiles.
    ID 011006:Rmi_P4 Dispatcher: Can't open socket
    Error while processing the request in a BI application; see SAP Notes 937697 and 948490
    Exception caught: com.sapportals.portal.prt.runtime.PortalRuntimeException: Unexpected error - Unable to get IView: fpn:PP2_IS_CONSUMER_FOR_PB1/pcd:portal_content/com.sw1.intranet.staff/com.sw1.intranet.staff.bi/com.sw1.intranet.staff.bi.roles/com.sw1.intranet.staff.bi.hr.roles.headcount_reports/com.sw1.intranet.staff.srm.worksets.reports/com.sw1.intranet.staff.bi.hr.parentws.headcount_reports/com.sw1.intranet.staff.bi.hr.ws.headcount_reports/com.sw1.intranet.staff.bi.hr.iviews.headcount:hNsfu%2FSQ7LTdTmfpBwd7qQ%3D%3D:1:
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Unexpected error - Unable to get IView: fpn:PP2_IS_CONSUMER_FOR_PB1/pcd:portal_content/com.sw1.intranet.staff/com.sw1.intranet.staff.bi/com.sw1.intranet.staff.bi.roles/com.sw1.intranet.staff.bi.hr.roles.headcount_reports/com.sw1.intranet.staff.srm.worksets.reports/com.sw1.intranet.staff.bi.hr.parentws.headcount_reports/com.sw1.intranet.staff.bi.hr.ws.headcount_reports/com.sw1.intranet.staff.bi.hr.iviews.headcount:hNsfu%2FSQ7LTdTmfpBwd7qQ%3D%3D:1:
         at com.sapportals.portal.prt.deployment.DeploymentManager.getPropertyContentProvider(DeploymentManager.java:1960)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:234)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:316)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:387)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._createRequestParameters(BIRuntimeService.java:397)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.createRequestParameters(BIRuntimeService.java:379)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:303)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:250)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:246)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: com.sap.portal.fpn.exception.base.unchecked.FpnCommunicationException: Could not retrieve the bean / access service to connect with consumer 'PP2_IS_CONSUMER_FOR_PB1'
         at com.sap.portal.fpn.entrypoint.FederatedPersistanceUtils.getAccessServiceByConsumerName(FederatedPersistanceUtils.java:169)
         at com.sap.portal.fpn.entrypoint.RuntimeFederatedPersistance.retrieveDLRemoteState(RuntimeFederatedPersistance.java:92)
         at com.sap.portal.fpn.FpnRuntimeService.bringRemoteState(FpnRuntimeService.java:134)
         at com.sap.portal.fpn.FpnRuntimeService.doFpnLookup(FpnRuntimeService.java:97)
         at com.sap.portal.fpnprovider.fpn.GenericContext.lookup(GenericContext.java:49)
         at javax.naming.InitialContext.lookup(InitialContext.java:361)
         at com.sapportals.portal.prt.deployment.DeploymentManager.getPropertyContentProvider(DeploymentManager.java:1919)
         ... 40 more
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances
         Nested exceptions are:
         com.sap.engine.services.rmi_p4.exception.P4BaseIOException: Cannot open connection on host: and port:
         at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:455)
         at com.sap.engine.system.naming.provider.DefaultInitialContext._getDefaultInitCtxt(DefaultInitialContext.java:65)
         at com.sap.engine.system.naming.provider.DefaultInitialContext.<init>(DefaultInitialContext.java:46)
         at com.sap.engine.system.naming.provider.DefaultInitialContextFactory.getInitialContext(DefaultInitialContextFactory.java:41)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:675)
         at com.sapportals.portal.prt.jndisupport.NamingManager.getInitialContext(NamingManager.java:50)
         at com.sapportals.portal.prt.jndisupport.InitialContext.getDefaultInitCtx(InitialContext.java:39)
         at javax.naming.InitialContext.init(InitialContext.java:233)
         at javax.naming.InitialContext.<init>(InitialContext.java:209)
         at com.sapportals.portal.prt.jndisupport.InitialContext.<init>(InitialContext.java:24)
         at com.sap.portal.fpn.entrypoint.FederatedPersistanceUtils.getAccessServiceByConsumerName(FederatedPersistanceUtils.java:159)
         ... 46 more
    Caused by: com.sap.engine.interfaces.cross.DestinationException: cannot establish connection with any of the available instances
         Nested exceptions are:
         com.sap.engine.services.rmi_p4.exception.P4BaseIOException: Cannot open connection on host: and port:
         at com.sap.engine.interfaces.cross.Destination.getNextAvailableBroker(Destination.java:55)
         at com.sap.engine.interfaces.cross.Destination.getRemoteBroker(Destination.java:35)
         at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:340)
         ... 56 more

  • Federated Portal Network - Error-"Unexpected Error - Unable to get IView

    Hi,
    I have configured FPN with EP and BI, both are on same SP level.The connection and the producer registration is successful.
    The producer contents can be navigated in Consumer and I can able to copy and paste the producer content in the consumer.
    But when I see the preview the content it shows error "
    500 Internal Server Error
      BEx Web Application
    Faile to process request; contact your system administrator
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Unexpected error - Unable to get IView:fpn:<consumer>/pcd:portal_content/Iviews_ID/BTMP_20110425_065001:NFd1NOBZQUPn2gQkVO65Lw%3D%3D:1:
    I have checked the following thread, but I'm not able to find out solution,
    Federated Portal Network - Unexpected Error - Unable to get IView
    what could be the reason,
    Really appriciated for your reply.
    Regards,
    Mahee.

    Hi Shanti,
    Thank for reply.
    I have checked with same user in both consumer & producer portals, In that case its working fine.
    If you checked with other consumer users its asking password.
    For this I have tried usermapping with producer id under goto personolize -->remote iviews --> select default alias -->enter id/pwd and save  for other consumer id.
    How we manage  for all consumer users, is there any option to mapping to all users at time.
    really appriciate your inputs.
    Regards,
    Mahee.

  • CRM 2015 Unable to get profiler error to debug code on associate message

    Hi all,
    Im trying to get the profiler on associate message(Opportunity- Competitor)  and i'm unable to get profiler error to debug code and getting "ISV Code aborted"
    the below link didn't work for me
    https://community.dynamics.com/crm/f/117/t/134575.aspx
    Thanks & Regards Vijji

    Hello,
    In case you develop for CRM 2015 you don't need to get profiler error anymore. Recheck
    this article.
    Dynamics CRM MVP
    My blog

  • Getting CRM Org unit by the R/3 sales org/office/group

    Hello everyone,
    We have a need to get CRM Org unit ID by R/3 sales org/office/group as maintained in
    transaction PPOMA_CRM.
    Does anyone knows a function/table that gives this mapping ?
    Thanks,
       Nitzan.

    Hi Nitzan,
    Try it with this static methods of class CL_CRM_ORGMAN_SERVICES:
    -- From  CRM ID to R3 ID
    MAP_HROBJECT_TO_R3_SALES_GRP
    MAP_HROBJECT_TO_R3_SALES_OFF
    MAP_HROBJECT_TO_R3_SALES_ORG
    -- From R3 ID to CRM ID
    MAP_R3_SALES_GRP_TO_HROBJECT
    MAP_R3_SALES_OFF_TO_HROBJECT
    MAP_R3_SALES_ORG_TO_HROBJECT
    Kind regards,
    Garcia

  • WHERE CAN I GET SAP CRM SALES CR 300 PDF

    DEAR FRIEND,
                          WHERE CAN I GET CR 300 SAP CRM SALES 7.0 PDF. SO PLEASE ANY ONE SEND ME LINK
    RAJ KUMAR

    If you havent received.  I do have the following
    CR300
    CRM Sales
    SAP CRM
    Course Version: 92
    Course Duration: 5 Day(s)
    Material Number: 50092416

  • Upgrade CRM Sales -- Professional

    A client originally purchased 10 Professional seats and 10 CRM-Sales seats.  There is only one system defined for this installation.  Needing more transaction capabilities, the client recently upgraded one of the CRM-Sales seats to Professional.  Effectively, the goal is to reduce the CRM-Sales to 9 and increase Professional to 11.
    After purchasing the upgrade, the Contractual Information in the License Key Request section of the portal shows:
    User Type                          Licensed Requested
    AddOn Access License               110      4
    Professional User                  10       10
    CRM Sales User (Standalone)        10       10
    CRM Service User (Standalone)      2        2
    Upgrade CRM Sales --> Professional 1        0
    In order to deploy the additional professional seat, I've requested a new license with 9 CRM-Sales and 11 Professional.  However, I get a "number of licenses users exceeded" message and only a temporary license is issued.
    I have searched the Notes and the licensing documentation, but cannot determine how to claim the "Upgrade CRM Sales --> Professional" contract category so as to enable the additional Professional seat.
    Any help would be appreciated.
    Dave

    Peter & M, thanks to both of you for your responses.
    M, I don't believe you need to delete the production system in order to generate a permanent license.  When I first generated the license with the additional user, and then found that it was only a temporary license, I was able to regenerate a permanent license by simply reducing the professional seats back to the original value.
    Peter, yes, I confirmed that the license was indeed a temporary one.  We're now pursuing it as an administrative issue with SAP.
    Thanks,
    Dave

  • Difficult question in CRM Sales analytics

    Hi,
    we have enterprise Portal 6.0 with CRM Business package  and BW3.5 with CRM Business content. Our perticular interest is CRM Sales and to enable the analytics related to Portal Role "Sales Manager".
      The following( some examples) are the BW Web template accesses by the Portal and any detail info/understanding/ BKM is welcome in this.
    SALES Performance analytics
    1> 0TPL_0CRM_OVERVIEWANALYTICS     for overview
    2> 0TPL_0CRM_SM_FINANCE            for Finance
    3> 0TPL_0CRM_SM_CUSTOMER           for accounts(customer)
    Is there any documentation regarding this perticular role( Sales Manager)??
    Thanks
    Arunava

    AHP,
      Thanks for your response. I was trying to open the above mentioned web template in the web app designer , but I get the following error
    "The selected Web Template contains the following HTML error, non supported web itemm, or is not designed to be edited with the Web Application Designer..
      Use the "Upload to server" mor "download from server" and edit the web template in an external HTML editor"....
      How do I know which query or Query view this Web Template is referring to?
      I didn't find the CRM web templated through the help.sap.com  and also in the service market place in the "Analysis scenarios' I couldn;t open the document for the sales analytics. Can you help?
       Thanks
    Arunava

  • Any case study on using ERP sales order vs CRM Sales order in IC WEB UI

    Hi All,
    Currently we have a requirement where in agent uses ERP Sales order functionality in IC WEB UI for creating sales order. Incase of any incompleteness in order or any pricing error an activity should get created and should get assinged to Back office guy(CRM User).
    My approach is as follows, we will call a custom FM in CRM from the user exit associated with Sales order transaction, This logic gets executed on save of ERP sales order.This custom FM will create an activity in CRM and assing it to back office guy. Other approach is to use the IDOC linked to the VAO1 transaction which inturns calls the custom fm.
    Can you please suggest if you have any better approach to this.
    Recently we came to know that ERP Sales order has got limited functionalities. If some one has a case study doc on ERP Sales order vs CRM sales order pls give me the ref link.
    Thanks,
    udaya

    Hi Udaya,
    Calling a Customer Specific R/3 Transaciton was quite easy in CRM 4.0 / 5.0 in the PC-UI Framework using Object Links. You can do that all by customizing and creating a custom method for a BOR Object in Transaction SWO1.
    I think I've used CRM_ORDER_MAINTAIN to update the Document Flow. The subsequent activities where created by BAPI_ACTIVITYCRM_CREATEMULTI. I've wrapped all that standard functions in a RFC enabled function module.
    It would be possible to provide also a link in the E-Mail to the Manager but the client is using a Citrix environment to provide access to the Portal. But Outlook runs locally. So we decided to use the standard Portal iView to display the Alerts. When you fill the Alert Container with the elements OBJKEY_GUID, OBJKEY_BOR_OBJECT_TYPE, OBJKEY_CRM_OBJECT_TYPE, OBJKEY_METHOD and OBJKEY_LOGICAL_SYSTEM using the Function Module SWC_ELEMENT_SET that provides a direct link to the specific document too.
    Best regards
    Gregor

  • Unhappy to find out that I was lied to to get the sale

    On January 9th of this year I went to my local Best Buy to look at computers because mine had crashed and I had decided to replace it since it was an older model. I was greeted by an associate and I told him specifically that I was looking to spend around $500-$600 and that the computer had to be able to handle a SECOND hard drive. He showed me a couple of different ones and I mentioned the second hard drive several times because I wanted all my data to go onto a the second drive. He continually assured me that the ones he was showing me would be able to handle a second drive. I finally settled on the HP Pavilion 500-424 and went home. Now that I can afford to purchase a second drive and began to look around for what would work on my computer I find that it CANNOT SUPPORT A SECOND DRIVE AS THERE IS NO SPACE FOR ONE. I'm extremely upset about this as it is too late to return the computer and I know that I should have looked into it more but as someone who doesn't know a lot about computers I would at least appreciate it if my local Best Buy wouldn;t lie to me just to get a sale. I would have spent a little more money or even waited till I had more money to get exactly what I wanted. Now I'm stuck with a basically, in my OPINION and for MY NEEDS, a useless computer. And since it seems the only to voice this is on these forums that's what I'm doing. The associates at Best Buy either need extra training or maybe be a little more concered with their customers NEEDS and MONEY. I don't have a lot of money as I'm sure many people do in this ecomony and I don't appreciate being lied to.

    Hello dragon5174,
    With so many different computer models and brands available, it can be difficult to weed out the ones that don’t fit your needs. That’s where our store associates come in, and you should feel confident that their suggestions and advice are going to lead you to a device that you love. I apologize if we led you in the wrong direction, particularly if it has left you with a computer that is no longer of use to you.
    Please know your computer is outside of its My Best Buy Elite 30-day Return and Exchange Promise, and as such, we’d be unable to exchange it for another model. Having said this, I realize this situation is far from ideal, and while I cannot guarantee you the resolution you are hoping for, please know I’m reaching out to your local store to see if other options may be available to us at this time. I hope to have some answers for you within the next couple of business days.
    Thank you for your patience,

  • Unable to get Material No and Description from VBAP

    Hi Gurus
    Can anyone please help me to get material number and description from vbap table, The report is fine but I am unable to get material no and description.
    regards
    report ZCHGDOC_BY_SALES no standard page heading
                              line-size 132.
    type-pools:
      slis.                     " ALV types
    Tables
    tables:
      cdhdr,                    " Change documents: Header
      cdpos,                    " Change documents: Items
      vbak,                     " Sales order: Header
      mara,                     " Material No
      user_addr,                 " User Address
      vbap.                     " Contract order: Items
    Types
    types:
      begin of ty_cdhdr,
        objectclas like cdhdr-objectclas,     " Object class
        objectid   like cdhdr-objectid,       " Object value
        changenr   like cdhdr-changenr,       " Document change number
        username   like cdhdr-username,       " Changed by
        udate      like cdhdr-udate,          " Changed on
        utime      like cdhdr-utime,          " Changed at
        tcode      like cdhdr-tcode,          " Transaction code
      end of ty_cdhdr,
      ty_it_cdhdr type ty_cdhdr occurs 0,
      begin of ty_cdpos,
        objectclas like cdpos-objectclas,     " Object class
        objectid   like cdpos-objectid,       " Object value
        changenr   like cdpos-changenr,       " Document change number
        tabname    like cdpos-tabname,        " Table name
        tabkey     like cdpos-tabkey,         " Table key
        fname      like cdpos-fname,          " Field name
        chngind    like cdpos-chngind,        " Change indicator
        value_new  like cdpos-value_new,      " New value of field
        value_old  like cdpos-value_old,      " Old value of field
      end of ty_cdpos,
      ty_it_cdpos type ty_cdpos occurs 0,
      begin of ty_dd03l,
        tabname   like dd03l-tabname,
        fieldname like dd03l-fieldname,
        as4local  like dd03l-as4local,
        as4vers   like dd03l-as4vers,
        rollname  like dd03l-rollname,
      end of ty_dd03l,
      ty_it_dd03l type ty_dd03l occurs 0,
      begin of ty_dd04t,
        rollname   like dd04t-rollname,
        ddlanguage like dd04t-ddlanguage,
        as4local   like dd04t-as4local,
        as4vers    like dd04t-as4vers,
        scrtext_l  like dd04t-scrtext_l,
      end of ty_dd04t,
      ty_it_dd04t type ty_dd04t occurs 0,
      begin of ty_kna1,
        kunnr like kna1-kunnr,                 " Customer number
        name1 like kna1-name1,                 " Customer name
      end of ty_kna1,
      ty_it_kna1 type ty_kna1 occurs 0,
       begin of ty_user_addr,
        bname    like user_addr-bname,              " user no
        name_textc like user_addr-name_textc ,      " Username
      end of ty_user_addr,
      ty_it_user_addr type ty_user_addr occurs 0,
      begin of ty_vbap,
        matnr     like vbap-matnr,             " Material No
        arktx     like vbap-arktx,             " Production Description
      end of ty_vbap,
      ty_it_vbap type ty_vbap occurs 0,
      ty_text(500) type c,
      ty_lines type tline,
      ty_it_lines type ty_lines occurs 0,
      begin of ty_merged,
        vbeln     like vbak-vbeln,            " Sales order number
        erdat     like vbak-erdat,            " Created on
        auart     like vbak-auart,            " Order type
        faksk     like vbak-faksk,            " Billing block in SD document
        netwr     like vbak-netwr,            " Net value
        waerk     like vbak-waerk,            " Currency
        vkorg     like vbak-vkorg,            " Sales organisation
        vtweg     like vbak-vtweg,            " Distribution channel
        vkbur     like vbak-vkbur,            " Sales office
        fkara     like vbak-fkara,            " Proposed billing type
        kunnr     like vbak-kunnr,            " Sold-to party
        bname     like vbak-bname ,           " User No
        xblnr     like vbak-xblnr,            " Reference
        fbuda     like vbkd-fbuda,            " Date services rendered
        username  like cdhdr-username,        " Changed by
        udate     like cdhdr-udate,           " Changed on
        utime     like cdhdr-utime,           " Changed at
        tcode     like cdhdr-tcode,           " Transaction code
        tabname   like cdpos-tabname,         " Table name
        tabkey    like cdpos-tabkey,          " Table key
        fname     like cdpos-fname,           " Field name
        chngind   like cdpos-chngind,         " Change indicator
        value_new like cdpos-value_new,       " New value of field
        value_old like cdpos-value_old,       " Old value of field
        scrtext_l like dd04t-scrtext_l,       " Description of field
        intnote   type ty_text,               " Internal note
        hdrnote   type ty_text,               " Header note
        name1     like adrc-name1,            " Sold-to party name
        matnr     like vbap-matnr,            " Material No
        arktx     like vbap-arktx,            " Product Description
      end of ty_merged,
      ty_it_merged type ty_merged occurs 0,
      begin of ty_vbak,
        vbeln    like vbak-vbeln,             " Sales order number
        erdat    like vbak-erdat,             " Created on
        auart    like vbak-auart,             " Order type
        faksk    like vbak-faksk,             " Billing block in SD document
        netwr    like vbak-netwr,             " Net value
        waerk    like vbak-waerk,             " Currency
        vkorg    like vbak-vkorg,             " Sales organisation
        vtweg    like vbak-vtweg,             " Distribution channel
        vkbur    like vbak-vkbur,             " Sales office
        fkara    like vbak-fkara,             " Proposed billing type
        kunnr    like vbak-kunnr,             " Sold-to party
        xblnr    like vbak-xblnr,             " Reference
        objectid like cdhdr-objectid,         " Change document object
      end of ty_vbak,
      ty_it_vbak type ty_vbak occurs 0,
      begin of ty_vbkd,
        vbeln like vbkd-vbeln,                " Sales order number
        posnr like vbkd-posnr,                " Sales order item
        fbuda like vbkd-fbuda,                " Date services rendered
      end of ty_vbkd,
      ty_it_vbkd type ty_vbkd occurs 0.
    Internal tables
    data:
      it_cdhdr    type ty_it_cdhdr,
      it_cdpos    type ty_it_cdpos,
      it_fieldcat type slis_t_fieldcat_alv,
      it_kna1     type ty_it_kna1,
      it_user_addr type ty_it_user_addr,
      it_merged   type ty_it_merged,
      it_vbak     type ty_it_vbak,
    Material No
      it_vbap     type ty_it_vbap,
      it_vbkd     type ty_it_vbkd.
    data:
      wa_vbak  type ty_vbak.
    data:
      st_tvariant  like disvariant,
      st_variant   like disvariant.
    constants:
      co_as4local_a           like dd03l-as4local     " Active version
                              value 'A',
      co_objectclas_verkbeleg like cdhdr-objectclas
                              value 'VERKBELEG',
      co_posnr_initial        like vbkd-posnr         " Initial item number
                              value is initial,
      co_posnr_initial_2        like vbap-posnr         " Initial item number
                              value is initial,
      co_save_u               type c                  " User display variant
                              value 'U',              " saving allowed.
      co_trvog_0              like vbak-trvog         " Sales order
                              value '0'.
    data:
      va_exit                 type c,                 " ALV display
      va_tabix                like sy-tabix.
    selection-screen: begin of block b1 with frame title text-001.
    select-options:
      s_vkorg  for vbak-vkorg OBLIGATORY,            " Sales organisation
      s_vkbur  for vbak-vkbur,            " Sales office
      s_vtweg  for vbak-vtweg,            " Distribution channel
      s_vbeln  for vbak-vbeln,            " Sales order number
      s_usrnme for cdhdr-username,        " Changed by
      s_udate  for cdhdr-udate.           " Changed on
    selection-screen: end of block b1,
                      begin of block b2 with frame title text-002.
    parameters:
      p_varint like disvariant-variant.   " Display variant.
    selection-screen: end of block b2.
    Initialization
    initialization.
    Load display variant.
      if not p_varint is initial.
        move st_variant to st_tvariant.
        move p_varint to st_tvariant-variant.
        call function 'REUSE_ALV_VARIANT_EXISTENCE'
             exporting
                  i_save     = co_save_u
             changing
                  cs_variant = st_tvariant.
        st_variant = st_tvariant.
      else.
        clear st_variant.
        st_variant-report = sy-repid.
      endif.
    at selection-screen on value-request for p_varint.
    Provide display variant list for this program.
      call function 'REUSE_ALV_VARIANT_F4'
           exporting
                is_variant = st_variant
                i_save     = co_save_u
           importing
                e_exit     = va_exit
                es_variant = st_tvariant
           exceptions
                not_found  = 2.
      if sy-subrc eq 2.
        message id sy-msgid type 'S'
                number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.
        if va_exit eq space.
          st_variant = st_tvariant.
          p_varint = st_tvariant-variant.
        endif.
      endif.
    At selection screen
    at selection-screen.
    Load display variant.
      if not p_varint is initial.
        move st_variant to st_tvariant.
        move p_varint to st_tvariant-variant.
        call function 'REUSE_ALV_VARIANT_EXISTENCE'
             exporting
                  i_save     = co_save_u
             changing
                  cs_variant = st_tvariant.
        st_variant = st_tvariant.
      else.
        clear st_variant.
        st_variant-report = sy-repid.
      endif.
    Start of selection
    Extract order details from VBAK
      select vbeln erdat auart faksk netwr waerk vkorg vtweg vkbur fkara
             kunnr xblnr
             from  vbak
             into  table it_vbak
             where vkorg in s_vkorg
             and   vkbur in s_vkbur
             and   vbeln in s_vbeln.
      if sy-subrc ne 0.
      No data found for selection
        message s001(zgen).
        exit.
      endif.
      loop at it_vbak into wa_vbak.
        va_tabix = sy-tabix.
        wa_vbak-objectid = wa_vbak-vbeln.
        modify it_vbak from wa_vbak
                       index va_tabix
                       transporting objectid.
      endloop.
    if sy-subrc ne 0.
      No data found for selection
       message s001(zgen).
       exit.
    endif.
    loop at it_vbak into wa_vbak.
       va_tabix = sy-tabix.
       wa_vbak-objectid = wa_vbak-vbeln.
       modify it_vbak from wa_vbak
                      index va_tabix
                      transporting objectid.
    endloop.
    Extract  Change data
      select objectclas objectid changenr username udate utime tcode
             from  cdhdr
             into  table it_cdhdr
             for   all entries in it_vbak
             where objectclas eq co_objectclas_verkbeleg
             and   objectid   eq it_vbak-objectid
             and   username   in s_usrnme
             and   udate      in s_udate.
      if sy-subrc eq 0.
        select objectclas objectid changenr tabname tabkey fname chngind
               value_new value_old
               from  cdpos
               into  table it_cdpos
               for   all entries in it_cdhdr
               where fname NE 'CMPRE_FLT'
               and objectclas eq it_cdhdr-objectclas
               and   objectid   eq it_cdhdr-objectid
               and   changenr   eq it_cdhdr-changenr.
      endif.
    Extract customer details from KNA1
      select kunnr name1
             from  kna1
             into  table it_kna1
             for   all entries in it_vbak
             where kunnr eq it_vbak-kunnr.
    ---- Changes are made here -
    Extract Material details from vbap
      select matnr arktx
             from  vbap
             into  table it_vbap
             for   all entries in it_vbak
             where
             vbeln eq it_vbak-vbeln
              and   posnr eq co_posnr_initial.
    -----------------End of Change ----------------------*
    Extract Contract No from vbkd.
      select vbeln posnr fbuda
             from  vbkd
             into  table it_vbkd
             for   all entries in it_vbak
             where vbeln eq it_vbak-vbeln
             and   posnr eq co_posnr_initial.
      perform merge_data tables it_cdhdr
                                it_cdpos
                                it_kna1
                                it_user_addr
                                it_merged
                                it_vbak
                                it_vbap
                                it_vbkd.
      if it_merged[] is initial.
        message s001(zgen).
        exit.
      endif.
    Release memory no longer required.
      free: it_cdhdr,
            it_cdpos,
            it_kna1,
            it_user_addr,
            it_vbak,
            it_vbap,
            it_vbkd.
    Build field catalog for call to report function
      perform build_field_catalog tables it_fieldcat.
    Output report.
      perform output_report tables it_fieldcat
                                   it_merged.
    *&      Form  merge_data
          text
    form merge_data  tables   pa_it_cdhdr  type ty_it_cdhdr
                              pa_it_cdpos  type ty_it_cdpos
                              pa_it_kna1   type ty_it_kna1
                              pa_it_user_addr type ty_it_user_addr
                              pa_it_merged type ty_it_merged
                              pa_it_vbak   type ty_it_vbak
                              pa_it_vbap   type ty_it_vbap
                              pa_it_vbkd   type ty_it_vbkd.
    Local internal tables
    data:
      lit_dd03l type ty_it_dd03l,
      lit_dd04t type ty_it_dd04t.
    Local work areas
    data:
      lwa_cdhdr  type ty_cdhdr,
      lwa_cdpos  type ty_cdpos,
      lwa_dd03l  type ty_dd03l,
      lwa_dd04t  type ty_dd04t,
      lwa_kna1   type ty_kna1,
      lwa_user_addr type ty_user_addr,
      lwa_merged type ty_merged,
      lwa_vbak   type ty_vbak,
      lwa_vbap   type ty_vbap,
      lwa_vbkd   type ty_vbkd.
    Local variables
    data:
      lva_dd03l_tabix like sy-tabix,
      lva_dd04t_tabix like sy-tabix.
    Sort Data
      sort pa_it_cdhdr by objectid changenr.
      sort pa_it_cdpos by objectid changenr tabname tabkey fname.
      sort pa_it_kna1  by kunnr.
      sort pa_it_user_addr by bname.
      sort pa_it_vbak  by vbeln.
       sort pa_it_vbkd  by vbeln.
      loop at pa_it_vbak into lwa_vbak.
        clear lwa_merged.
      Assign sales order fields to reporting work area
        lwa_merged-vbeln = lwa_vbak-vbeln.
        lwa_merged-erdat = lwa_vbak-erdat.
        lwa_merged-auart = lwa_vbak-auart.
        lwa_merged-faksk = lwa_vbak-faksk.
        lwa_merged-netwr = lwa_vbak-netwr.
        lwa_merged-waerk = lwa_vbak-waerk.
        lwa_merged-vkorg = lwa_vbak-vkorg.
        lwa_merged-vtweg = lwa_vbak-vtweg.
        lwa_merged-vkbur = lwa_vbak-vkbur.
        lwa_merged-fkara = lwa_vbak-fkara.
        lwa_merged-kunnr = lwa_vbak-kunnr.
       lwa_merged-bname = 1wa_user_addr-bname.
        lwa_merged-xblnr = lwa_vbak-xblnr.
    Assgin Material to reporting work area
       lwa_merged-matnr  = lwa_vbap-vbeln.
      Get name of sold-to party from PA_IT_KNA1
        clear lwa_kna1.
        read table pa_it_kna1 into lwa_kna1
                              with key kunnr = lwa_vbak-kunnr
                              binary search.
        lwa_merged-name1 = lwa_kna1-name1.
      Get name  from PA_it_user_addr
       clear lwa_user_addr.
       read table pa_it_user_addr into lwa_user_addr
                             with key  = lwa_user_addr-bname
                             binary search.
       lwa_merged-username = lwa_user_addr-name_textc.
      Get business data from PA_IT_VBKD.
        clear lwa_vbkd.
        read table pa_it_vbkd into lwa_vbkd
                              with key vbeln = lwa_vbak-vbeln
                              binary search.
        lwa_merged-fbuda = lwa_vbkd-fbuda.
    Get Material Data
      clear lwa_vbap.
        read table pa_it_vbap into lwa_vbap
                             with key matnr = lwa_vbap-matnr
                                with key vbeln = lwa_vbak-vbeln
                              binary search.
        lwa_merged-arktx = lwa_vbap-arktx.
      Get internal note text for sales order
        perform read_text using '0002'
                                '1'
                                lwa_merged-vbeln
                                'VBBK'
                                lwa_merged-intnote.
      Get header note 1 text for sales order
        perform read_text using 'Z002'
                                '1'
                                lwa_merged-vbeln
                                'VBBK'
                                lwa_merged-hdrnote.
      Determine if change documents exist for sales order.
        clear lwa_cdhdr.
        read table pa_it_cdhdr into lwa_cdhdr
                               with key objectid = lwa_vbak-objectid.
        if sy-subrc ne 0.
          continue.
        endif.
        loop at pa_it_cdhdr into lwa_cdhdr
                            from sy-tabix.
          lwa_merged-username = lwa_cdhdr-username.
          lwa_merged-udate    = lwa_cdhdr-udate.
          lwa_merged-utime    = lwa_cdhdr-utime.
          lwa_merged-tcode    = lwa_cdhdr-tcode.
          clear lwa_cdpos.
          read table pa_it_cdpos into lwa_cdpos
                                 with key objectid = lwa_cdhdr-objectid
                                          changenr = lwa_cdhdr-changenr
                                 binary search.
          loop at pa_it_cdpos into lwa_cdpos
                              from sy-tabix.
            lwa_merged-tabname   = lwa_cdpos-tabname.
            lwa_merged-tabkey    = lwa_cdpos-tabkey.
            lwa_merged-fname     = lwa_cdpos-fname.
            lwa_merged-chngind   = lwa_cdpos-chngind.
            lwa_merged-value_new = lwa_cdpos-value_new.
            lwa_merged-value_old = lwa_cdpos-value_old.
          Get description for field - determine date element
            clear lwa_dd03l.
            read table lit_dd03l into lwa_dd03l
                                 with key tabname   = lwa_cdpos-tabname
                                          fieldname = lwa_cdpos-fname
                                 binary search.
            lva_dd03l_tabix = sy-tabix.
            if sy-subrc ne 0.
              select single tabname fieldname as4local as4vers rollname
                     from   dd03l
                     into   lwa_dd03l
                     where  tabname   eq lwa_cdpos-tabname
                     and    fieldname eq lwa_cdpos-fname
                     and    as4local  eq co_as4local_a.
              if sy-subrc eq 0.
                insert lwa_dd03l into lit_dd03l
                                 index lva_dd03l_tabix.
              endif.
            endif.
          If data element was found, get description
            if not lwa_dd03l is initial.
              clear lwa_dd04t.
              read table lit_dd04t into lwa_dd04t
                                   with key rollname   = lwa_dd03l-rollname
                                            ddlanguage = sy-langu
                                   binary search.
              lva_dd04t_tabix = sy-tabix.
              if sy-subrc ne 0.
                select single rollname ddlanguage as4local as4vers scrtext_l
                       from  dd04t
                       into  lwa_dd04t
                       where rollname   eq lwa_dd03l-rollname
                       and   ddlanguage eq sy-langu.
                if sy-subrc eq 0.
                  insert lwa_dd04t into lit_dd04t
                                   index lva_dd04t_tabix.
                else.
                  lwa_dd04t-scrtext_l = 'Description for field not found'.
                endif.
              endif.
            endif.
            lwa_merged-scrtext_l = lwa_dd04t-scrtext_l.
            append lwa_merged to pa_it_merged.
            at end of changenr.
            Only process field changes for this change document.
              exit.
            endat.
          endloop.
          at end of objectid.
          Initialise work area so we know change document for order has
          been processed.
            clear lwa_merged.
          Only process change documents for this sales order.
            exit.
          endat.
        endloop.
      endloop.
    endform.                    " merge_data
    *&      Form  build_field_catalog
          text
    form build_field_catalog tables pa_it_fieldcat type slis_t_fieldcat_alv.
    data:
    Local variable
      lva_col_pos   type slis_fieldcat_alv-col_pos,
    Local structure
      st_fieldcat   type slis_fieldcat_alv.
      lva_col_pos = 0.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'VBELN'.
      st_fieldcat-ref_tabname   = 'VBAK'.
      st_fieldcat-ref_fieldname = 'VBELN'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'VKBUR'.
      st_fieldcat-ref_tabname   = 'VBAK'.
      st_fieldcat-ref_fieldname = 'VKBUR'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '6'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
    clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'VKORG'.
      st_fieldcat-ref_tabname   = 'VBAK'.
      st_fieldcat-ref_fieldname = 'VKORG'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '6'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
    clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'KUNNR'.
      st_fieldcat-ref_tabname   = 'VBAK'.
      st_fieldcat-ref_fieldname = 'KUNNR'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-col_pos       = lva_col_pos.
        st_fieldcat-outputlen = '6'.
      append st_fieldcat to pa_it_fieldcat.
    clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'NAME1'.
      st_fieldcat-ref_tabname   = 'KNA1'.
      st_fieldcat-ref_fieldname = 'NAME1'.
      st_fieldcat-row_pos       = '1'.
        st_fieldcat-outputlen = '15'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
    clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'MATNR'.
      st_fieldcat-ref_tabname   = 'VBAP'.
      st_fieldcat-ref_fieldname = 'MATNR'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-col_pos       = lva_col_pos.
        st_fieldcat-outputlen = '6'.
      append st_fieldcat to pa_it_fieldcat.
    clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'SCRTEXT_L'.
      st_fieldcat-ref_tabname   = 'DD04T'.
      st_fieldcat-ref_fieldname = 'SCRTEXT_L'.
      st_fieldcat-row_pos       = '1'.
       st_fieldcat-outputlen = '20'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'UDATE'.
      st_fieldcat-ref_tabname   = 'CDHDR'.
      st_fieldcat-ref_fieldname = 'UDATE'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '10'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'USERNAME'.
      st_fieldcat-ref_tabname   = 'CDHDR'.
      st_fieldcat-ref_fieldname = 'USERNAME'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '6'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'FNAME'.
      st_fieldcat-ref_tabname   = 'CDPOS'.
      st_fieldcat-ref_fieldname = 'FNAME'.
      st_fieldcat-row_pos       = '4'.
      st_fieldcat-outputlen = '8'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'CHNGIND'.
      st_fieldcat-ref_tabname   = 'CDPOS'.
      st_fieldcat-ref_fieldname = 'CHNGIND'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '8'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'WAERK'.
      st_fieldcat-ref_tabname   = 'VBAK'.
      st_fieldcat-ref_fieldname = 'WAERK'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '5'.
      st_fieldcat-col_pos       = lva_col_pos..
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'VALUE_NEW'.
      st_fieldcat-ref_tabname   = 'CDPOS'.
      st_fieldcat-ref_fieldname = 'VALUE_NEW'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '20'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
      clear st_fieldcat.
      add 1 to lva_col_pos.
      st_fieldcat-tabname       = 'PA_IT_MERGED'.
      st_fieldcat-fieldname     = 'VALUE_OLD'.
      st_fieldcat-ref_tabname   = 'CDPOS'.
      st_fieldcat-ref_fieldname = 'VALUE_OLD'.
      st_fieldcat-row_pos       = '1'.
      st_fieldcat-outputlen = '20'.
      st_fieldcat-col_pos       = lva_col_pos.
      append st_fieldcat to pa_it_fieldcat.
    endform.                    " build_field_catalog
    *&      Form  output_report
          text
    form output_report tables pa_it_fieldcat type slis_t_fieldcat_alv
                              pa_it_merged   type ty_it_merged.
    Local variables
    data:
      lva_formname type slis_formname,
      lva_repid    like sy-repid.
      lva_repid = sy-repid.
      lva_formname = 'ALV_USER_COMMAND'.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = lva_repid
          i_callback_user_command = lva_formname
          i_save             = 'A'
          is_variant         = st_variant
          it_fieldcat        = pa_it_fieldcat[]
        tables
          t_outtab           = pa_it_merged
        exceptions
          program_error      = 1
          others             = 2.
    endform.                    " output_report
    *&      Form  alv_user_command
          text
    form alv_user_command using pa_ucomm    like sy-ucomm
                                pa_selfield type slis_selfield.
    Local work areas
    data:
      lwa_merged type ty_merged.
      clear lwa_merged.
      read table it_merged into lwa_merged
                           index pa_selfield-tabindex.
      case pa_selfield-fieldname.
        when 'VBELN'.
        Contract Number
          set parameter id 'AUN' field lwa_merged-vbeln.
         call transaction 'VA03' and skip first screen.
    S_BCE_68001393
    when 'USERNAME'.
        Username
          set parameter id 'username' field lwa_merged-username.
          call transaction 'S_BCE_68001393' and skip first screen.
        when 'KUNNR'.
        Customer number
          set parameter id 'KUN' field lwa_merged-kunnr.
          set parameter id 'VKO' field space.
          set parameter id 'VTW' field space.
          set parameter id 'SPA' field space.
          call transaction 'XD03' and skip first screen.
      endcase.
    endform.                    " alv_user_command
    *&      Form  read_text
          text
    form read_text  using    pa_id
                             pa_inline_count
                             pa_name
                             pa_object
                             pa_text.
    Local internal tables
    data:
      lit_inlines type ty_it_lines,
      lit_lines   type ty_it_lines.
    Local work areas
    data:
      lwa_lines   type ty_lines.
    Local variables
    data:
      lva_tdname    like thead-tdname.
      refresh: lit_inlines,
               lit_lines.
      lva_tdname = pa_name.
      call function 'READ_TEXT_INLINE'
        exporting
          id                    = pa_id
          inline_count          = pa_inline_count
          language              = sy-langu
          name                  = lva_tdname
          object                = pa_object
        tables
          inlines               = lit_inlines
          lines                 = lit_lines
        exceptions
          id                    = 1
          language              = 2
          name                  = 3
          not_found             = 4
          object                = 5
          reference_check       = 6
          others                = 7.
      loop at lit_lines into lwa_lines.
        concatenate pa_text
                    lwa_lines-tdline
                    into pa_text separated by space.
      endloop.
    endform.                    " read_text ENDLOOP.

    Hi
    As per your code here:
    "-------------- Changes are made here ----------------
    *Extract Material details from vbap
    select matnr arktx
    from vbap
    into table it_vbap
    for all entries in it_vbak
    where
    vbeln eq it_vbak-vbeln
    and posnr eq co_posnr_initial.   " Here the condition specifies you want to select sales order items where there is no item number, which i beleive shouldnt be the case
    " -----------------End of Change ----------------------
    Try as below by commenting the Item Number is INITIAL condition:
    select matnr arktx
       from vbap
       into table it_vbap
       for all entries in it_vbak
       where
       vbeln eq it_vbak-vbeln.
    "and posnr eq co_posnr_initial.
    Regards
    Eswar

  • Unable to get the values from PAYLOAD

    Hi,
    i'm unable to get the values of payload. When i use
    currentTask = client.getTaskQueryService().getTaskDetailsById(workflowContext, taskID);
    Element payload = (Element)currentTask.getPayloadAsElement();
    node = (Element)payload.getFirstChild();
    System.out.println(node.getElementsByTagName("documentName").item(0).getNodeValue());
    I get null but i instantiate the bpel process with a value and i have
    - <payload>
    - <ns1:DocumentReviewProcessRequest xmlns:ns1="http://xmlns.oracle.com/bpel/Review">
    <ns1:documentTitle>vbvnmbvn</ns1:documentTitle>
    <ns1:documentName>bvnbvnvn</ns1:documentName>
    <ns1:URI>http://www.first.pt</ns1:URI>
    <ns1:assignees>gestdoc</ns1:assignees>
    <ns1:groups />
    </ns1:DocumentReviewProcessRequest>
    </payload>
    if i use System.out.println(node.getElementsByTagName("HELLO").item(0).getNodeValue());
    I get a normal erro 'cause this variable don't exist...
    Can someone please help me?
    Thanks!!

    I think the problem is UME related. I had the same problem once. Try using a system user for searching, instead of the logged on user.
    Like this:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getUser("cmadmin_service");
    Please reward the points if this helps.

  • Unable to get the item value in cursor

    I have function which returns organization_id for each item selected in Sales Order window.
    From this function I will populate warehouse value in shipping tab whenever i am tabbing out from ordered item in Sales Order Form.
    But my cursor is unable to get the item id value (Ex: FOR cur_rec IN cus_l (l_item_id)). It is directly going to last return statement and displaying default value.
    Please help me out.
    FUNCTION custom_default_rule (
    p_database_object_name IN VARCHAR2,
    p_attribute_code IN VARCHAR2
    RETURN NUMBER
    AS
    l_line_type_rec oe_order_cache.line_type_rec_type;
    l_item_id NUMBER;
    p_org_id NUMBER;
    CURSOR cus_l (p_item_id IN NUMBER)
    IS
    SELECT a.organization_id, b.element_name, b.element_value
    FROM mtl_parameters a,
    mtl_descr_element_values b,
    mtl_system_items_b c
    WHERE b.inventory_item_id = c.inventory_item_id
    AND a.organization_id = c.organization_id
    AND a.organization_id = c.organization_id
    AND c.inventory_item_id = p_item_id
    AND a.organization_id <> a.master_organization_id
    ORDER BY a.organization_id;
    CURSOR cur_org (p_org_id IN NUMBER)
    IS
    SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = p_org_id;
    BEGIN
    l_line_type_rec :=
    oe_order_cache.load_line_type
    (ont_line_def_hdlr.g_record.line_type_id);
    l_item_id := ont_line_def_hdlr.g_record.inventory_item_id;
    FOR cur_rec IN cus_l (l_item_id)
    LOOP
    IF cur_rec.element_name IN
    ('Frequency',
    'Emission Norms',
    'Voltage',
    'Duty Rating',
    'Phase',
    'Product Family'
    AND cur_rec.element_value IN
    ('50',
    'Dual',
    'Euro',
    '210',
    '230',
    '440',
    'Low',
    'Medium',
    'Heavy',
    'Three',
    'QSK60',
    'QSK15',
    'QSK10',
    'DQK50'
    THEN
    RETURN cur_rec.organization_id;
    If u want more info. abt function refer: Refer "PL/SQL API + Defaulting Rules in OM" in Forums.oracle.com
    (OR)
    PL/SQL API + Defaulting Rules in OM
    Please help me out. This is very urgent.
    Thanks & Regards,
    Sateesh Kumar

    Hi Suresh,
    I tried like below:
    create or replace FUNCTION custom_default_rule (
    p_database_object_name IN VARCHAR2,
    p_attribute_code IN VARCHAR2
    RETURN NUMBER
    AS
    l_line_type_rec oe_order_cache.line_type_rec_type;
         l_line_rec OE_AK_ORDER_LINES_V%ROWTYPE;
    l_item_id NUMBER;
    p_org_id NUMBER;
    CURSOR cus_l (p_item_id IN NUMBER)
    IS
    SELECT a.organization_id, b.element_name, b.element_value
    FROM mtl_parameters a,
    mtl_descr_element_values b,
    mtl_system_items_b c
    WHERE b.inventory_item_id = c.inventory_item_id
    AND a.organization_id = c.organization_id
    AND a.organization_id = c.organization_id
    AND c.inventory_item_id = p_item_id
    AND a.organization_id <> a.master_organization_id
    ORDER BY a.organization_id;
    CURSOR cur_org (p_org_id IN NUMBER)
    IS
    SELECT organization_code
    FROM mtl_parameters
    WHERE organization_id = p_org_id;
    BEGIN
    l_line_type_rec :=
    oe_order_cache.load_line_type(ont_line_def_hdlr.g_record.line_type_id);
         l_line_rec := ONT_line_Def_Hdlr.g_record;
    --      l_item_id := l_line_rec.inventory_item_id;
    -- FOR cur_rec IN cus_l (l_item_id)
         FOR cur_rec IN cus_l(l_line_rec.inventory_item_id)
    LOOP
    IF cur_rec.element_name IN
    ('Frequency',
    'Emission Norms',
    'Voltage',
    'Duty Rating',
    'Phase',
    'Product Family'
    AND cur_rec.element_value IN
    ('50',
    'Dual',
    'Euro',
    '210',
    '230',
    '440',
    'Low',
    'Medium',
    'Heavy',
    'Three',
    'QSK60',
    'QSK15',
    'QSK10',
    'DQK50'
    THEN
    RETURN cur_rec.organization_id;
    FOR cur_rec_org IN cur_org (p_org_id)
    LOOP
    RETURN cur_rec_org.organization_code;
    END LOOP;
    END IF;
    END LOOP;
    RETURN '204';
    EXCEPTION
    WHEN OTHERS
    THEN
    IF oe_msg_pub.check_msg_level (oe_msg_pub.g_msg_lvl_unexp_error)
    THEN
    oe_msg_pub.add_exc_msg ('OE_Default_PVT', 'CUSTOM_DEFAULT_RULE');
    END IF;
    RAISE fnd_api.g_exc_unexpected_error;
    END custom_default_rule;
    This function executed without errors. But it is displaying final return statement value (i.e., 204).
    I am not getting inventory_item_id value to my cursor.
    Please help me out...It is very urgent.
    Thanks & Regards,
    Sateesh Kumar S
    Message was edited by:
    user610830

Maybe you are looking for

  • How do I set iTunes to manually update songs without connecting iPod first?

    Hi. I just got a new computer and downloaded iTunes. The User Guide says that when you connect the iPod, iTunes automatically updates all songs in your iTunes and deletes songs that are not in iTunes. As far as I can see by reading the User's Guide,

  • Recording with a mis

    i pluged my mic into my computer and i cant quite get it to record unless i yell into the mic..how do i adjust the volume so i can record singing and guitar at the same time thank you

  • Process order confirmation error

    Hi, i have set backflush in mrp2 view as always backflush for raw mat. when i do order confirmation with cork tcode, order status shows as CNF but raw mats are not withdrawn. pls note that backflush indicator is also copied in order. do i need to iss

  • JBoss server

    I would like to know how to connect web container(Tomcat 4.1) to JBoss application server 3.0.4?

  • Spry Effects Question

    Is there a way to use a spry effect to have a div (or image) fade away and have it show the page underneath. For example, I have a page where I want there to be a picture when you open the page. I then want the picture to fade out automatically, and