How to Create a lead?

Hello all,
Can any 1 tell me how to create a lead using classes ?
I know how to do using BAPI and RFC but i want it with classes...
please help

As per my understanding In any case to create the Lead you need to call the APIs like CRM_ORDER_MAINTAIN, you can either call it in your report program, function module, RFC or Class's method.
Can you please elaborate your requirement.
Thanks,
Raman

Similar Messages

  • How to create / Insert Leads in CRM On Demand using WSDL in Bpel

    Could any one suggest how to create/insert leads in CRM On Demand through Bpel.
    Getting following Error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code>
    </part><part name="summary"><summary>Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:logfilename xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">siebel.log&lt;/siebelf:logfilename>
    &lt;siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:error xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:errorcode xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">(SBL-EAI-04421)&lt;/siebelf:errorcode>
    &lt;siebelf:errorsymbol xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
    &lt;siebelf:errormsg xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)&lt;/siebelf:errormsg>
    &lt;/siebelf:error>
    &lt;/siebelf:errorstack>
    &lt;/siebelf:siebdetail>
    &lt;/detail>
    </detail>
    </part></remoteFault>

    Could any one suggest how to create/insert leads in CRM On Demand through Bpel.
    Getting following Error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code>
    </part><part name="summary"><summary>Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:logfilename xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">siebel.log&lt;/siebelf:logfilename>
    &lt;siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:error xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:errorcode xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">(SBL-EAI-04421)&lt;/siebelf:errorcode>
    &lt;siebelf:errorsymbol xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
    &lt;siebelf:errormsg xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">Cannot perform NewRecord on the business component 'Lead'(SBL-EAI-04421)&lt;/siebelf:errormsg>
    &lt;/siebelf:error>
    &lt;/siebelf:errorstack>
    &lt;/siebelf:siebdetail>
    &lt;/detail>
    </detail>
    </part></remoteFault>

  • How to create a LEAD using BPs for Company & Contact Person?

    Hi Group,
    I searched for a BAPI called "BAPI_LEAD_CREATEMULTI" to create Leads for the input file which is having the following format:
    Sales prospect     Lead group     status     Qualification level     Origin     Priority     contact person     Lead group     status     Qualification level     Origin     Priority
    The first and last fields being Sales Prospect & Priority fields....
    My file consists of Business Partners (in the fields "Sales Prospect" and "Contact Person" fields)......
    The thing is, I was not able to make use of the BAPI for the fields in the file.
    Please kindly let me know through some sample coding how I can make use of this particular BAPI for my requirement....... Sample code is needed......
    It is very helpful if the solution is sent soon....
    thanks in advance.
    Regards,
    Vishnu.

    Hi Vishnu,
    Just check this post also:
    Re: CREATING A LEAD
    You need to fill the "PARTNER" input field table it has "PARTNER_FCT" field for different partne function.
    e.g if you are using handle key , then
    REF_HANDLE R REF_ REF_PART REF_PARTNER_NO   RE RE PARTNER_ PARTNER_NO                       NO DI K
    0000000001 A 0000 00000000                        00000012 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000021 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000026 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000015 000000128                        BP BP C
    Where the values of partner_fct
    15  for Contact paerson
    21  for Sales Prospect
    hope it will help
    Thanks,
    Arjun
    pl. Reward points................

  • How to create lead follow up opportunity....

    Hello,
    How to create lead follow up opportunity automatically... Also my clients need is when we change the status of Lead from Open or In-Process or Won to Completed then an automatic email should go to the employee responsible in the lead.
    Please help me in this.... I tried doing this by creating Action profile & assigning that action profile to transaction type but didn't get the expected result.
    I would really appreciate some one help on this.... Please describe it in steps for automatic Opportunity creation & also for email.
    Thanks,
    Ajeet

    Using action is correct approach. You just have to configure action properly. For follow-up use in action 'method call' and use method 'copy_document' and as parameter specify transaction type that you want to be created as follow-up.
    For mail, you can use in action trigger_alert method.

  • How can I pass value in status and reason for rejection using BAPI_LEAD_CREATEMULTI when creating multiple lead

    Hello,
    I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass values and please also tell me INPUT_FIELDS values. Please help me
    Regards,
    Kshitij Rathore

    Hello,
    Please help me for solve this problem. I am trying to solve problem from last 4 days but i didn't get any solution.
    Regards,
    Kshitij Rathore

  • 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

  • How to create EAN which can ahve leading zeros ?

    hi,
    I am trying to create a range for EAN's where will have the chance to start with leading zeros.
    any one has had a similar issue ?
    any suggestion on how to create therange ?
    should be for 14 digits.
    Thanks,

    Hi Alex,
    You can define EAN in MM01 use Additional data button then EAN's tab or you can use the Plant data / stor 2 tab, General plant parameters -> Serial No. Profile field to create your EAN (serial) range. Hope this helps.
    Regards,
    Joven
    ==============
    Award points if useful

  • How to create a Sales Lead and Sales Lead Contact using Web Services

    Hi,
    I am working on integration of sales lead with third party application. I want to create a sales lead and sales lead contact using web services.
    The question is What WSDLs should I use to create Sales Lead and sales lead Contact? And What are the required parameters to pass to that WSDL?
    Please let me know if any information required.
    Thanks and Regards,
    Jason

    Hi,
      Sample soap messages for creating Sales Lead ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/" xmlns:lead="http://xmlns.oracle.com/oracle/apps/marketing/leadMgmt/leads/leadService/" xmlns:lead1="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createSalesLead>
             <typ:salesLead>
                <lead:Name>Lead Created For Migrration Test4</lead:Name>
                <lead:Rating_c>A</lead:Rating_c>
             </typ:salesLead>
          </typ:createSalesLead>
       </soapenv:Body>
    </soapenv:Envelope>
      Sample soap messages for creating Opportunity ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/types/" xmlns:opp="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/" xmlns:rev="http://xmlns.oracle.com/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/" xmlns:rev1="http://xmlns.oracle.com/oracle/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:act="http://xmlns.oracle.com/apps/crmCommon/activities/activitiesService/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createOpportunity>
             <typ:opportunity>
                <opp:Name>Test Opportunity</opp:Name>
             </typ:opportunity>
          </typ:createOpportunity>
       </soapenv:Body>
    </soapenv:Envelope>
    Please revert if you have any clarifications.
    Best Regards,
    Mohd Sabeer

  • How to create z-report ( actual , planned , variance -production qty)

    Hi dear experts,
    My client need a report where we can see production order qty, actual production qty, dependent matl planned qty and dependent matl actual consummed qty, and difference between actual and planned quantities in one single screen?
    For this , sap have any std reports or else we have to create any z-report?
    In case of z-report plz explain me how to create it.
    please guide us.
    Regards,
    Imran

    Hi,
    you can check below standard PP reports transaction code:
    COOIS - Production Order Info system
    MCPM Production order anal.: Quantities
    MCPD Production order analysis: Dates
    MCPU Production Order Analysis: Lead Time
    MCP0 Shop Floor Information System
    MCP1 SFIS: Operation Analysis Selection
    MCP3 SFIS: Material Analysis Selection
    If you want to get Z development report, first you can go throgh your business requirement and what will client expect in your Z report, then you can check the production order header & component tables & its relevant fields.
    You can prepare for functional specification for Z report development and will send it to ABAPer's.
    Let me know any further clarifications.
    Regards,
    Mohan.R

  • How to create authorization to access Query Print Layout?

    Hi again..
    i have 10 query print layout, and not every user can view this layout.
    I assume,
    report 1-3 only for user A,
    report 4-7 only for user B, and
    report 8-10 only for user C.
    How to create autorization for Query Print Layout?
    Thankyou for the help

    Dony,
    In order to createthe PL's of customize report (from Query Manager) you will have to go the Tools Tab of the Menu Bar in which you will have to click the Queries tab which will lead to a drop down menu which when clicked will lead to Quaery Print layout. You will have to choose your query based upon whether from the reports tab double click it to open the Query Print Layout Designer.
    Here again in the Menu Bar you will find the under the Tools the first tab is the PLD which when clicked you can do the same process as explined below
    When you go to the document ( Any Document ) in the tool bar you would find the 24th Icon to be the Print Layout Designer Tab when you click this it takes you to the layout designer window.... below there is tab named set as default when you click this the system would ask you 2 choices
    1. Set as default for all users
    2. Set as default for current user
    Which means that you will have to open each and every form?
    for each and every user and set them as default for the user.
    If you feel this answer is helpful then please do remember to reward points
    Regards,
    Nagesh.

  • How to create one ISO file large than 2G

    hi,
    here when I create one ISO with 3G(larger than 2G) on solaris 10 machine, I met below error:
    mkisofs: File too large. cannot fwrite 32768*1
    Anyone has suggestion for this problem? How to create one ISO files larger than 2G?
    See the detail logs information:
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    mkisofs -o my.iso -A "Software DVD" -D -L -P "Study "-p CBC/XLE -r -T -V R50 -v iso
    mkisofs: The option '-L' is reserved by POSIX.1-2001.
    mkisofs: The option '-L' means 'follow all symbolic links'.
    mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
    mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
    mkisofs: The option '-P' is reserved by POSIX.1-2001.
    mkisofs: The option '-P' means 'do not follow symbolic links'.
    mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-P'.
    mkisofs: Use -publisher in future to get old mkisofs behavior.
    Warning: creating filesystem that does not conform to ISO-9660.
    mkisofs 2.01 (sparc-sun-solaris2.10)
    Scanning iso
    Scanning iso/rac_stage3
    Using RAC_S000 for /rac_stage2 (rac_stage1)
    Using RAC_S001 for /rac_stage1 (rac_stage3)
    Using INSTA000.1;1 for ..
    Writing: The File(s) Start Block 48
    0.42% done, estimate finish Thu Feb 1 16:12:35 2007
    0.84% done, estimate finish Thu Feb 1 16:12:36 2007
    1.26% done, estimate finish Thu Feb 1 16:12:36 2007
    1.69% done, estimate finish Thu Feb 1 16:12:36 2007
    2.11% done, estimate finish Thu Feb 1 16:12:36 2007

    87.65% done, estimate finish Thu Feb 1 16:14:54 2007
    88.07% done, estimate finish Thu Feb 1 16:14:54 2007
    mkisofs: File too large. cannot fwrite 32768*1
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Thanks!

    does it matter "copy protection" ? for the problem that i have?
    my computer is alwyes get stuck while i trying to made a dvd or image
    i made few disks wite menu in the past & i had not problems at all

  • How to create the relationship between ESSBASE 11 and DM in OBIEE11

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok.
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • How to create the relationship between ESSBASE 11 and DM  in OBIEE 11G?

    Hi Experts,
    I have one requirement that there is one property table named 'Store Master' in DW,and it contains a lot of attribute, such as Open Date, Close Date, IS 24 Hour etc.
    But another data source is essbase and based on this source, I create all reports.
    In ESSBASE, it has one dimension and hierarchy Location, and it has four level, Country(L1),Region (L2),Province(L3),Store(L4)
    So I want to know how to create the relationship between Location (ESSBASE) and Store Master (DM).
    I try to create one relationship in physical layer between Gen4,Location and Store, then drag the open date and close date into Location Dimension in BMM,then Presentation Layer.
    When I drag column 'Open Date' ,'Gen4,Location ' and 'Sales' into reports, it will generate the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 14020] None of the fact tables are compatible with the query request Dim Region.Store Open Date. (HY000)
    However, when I remove the column 'Open Date'. it will be ok
    So what I missing the steps? Please help me. Thanks.

    >
    '2. Now, pull the 'Store' column from relational DB onto the Gen5, Location column from Essbase. This action now creates, two logical sources for your 'Store' column.'
    If the length from different data source is not same,such as 1001(DM),L_1001(ESSBASE), can I drag the 'Store' column from relational DB onto the Gen5, Location column from Essbase?
    I think it does not work.Right?Hi,
    I am not sure if you are talking about the length(as in varchar(128)) of the member value being different in different sources, or the member itself is different in both the sources.
    I am still assuming, that you are referring to the members not same in both the sources.If it is, the whole concept of federation is based on conforming dimensions. So, it needs that the same dimension information is present in both the sources and then only, you know we can analyze the numbers based on this dimension. So, either the dimension being different in both sources, or the members not present in both the dimensions might lead to incorrect numbers.
    So I select Store Attributes in relation DB and Location in ESSBASE in physical layer, then create the physical join, such as right("Hour Sales"."H_Sales".""."H_Sales"."Gen6,Location",4) = "Authorization".""."EDW"."T_EDW_MDM_STORE"."US_CODE", then drag the OPEN_DATE and CLOSE_DATE in relation DB to Location in ESSBASE in BMM,finially drag them into presentation layer.We create physical layer relationships, to send over the same relation to the underlying database during querying. So, creating a physical relationship between essbase cube and relation database would not help here.
    When you set up this federation, BI Server sends individual queries to each source and maps the conforming dimension members internally.
    Hope I was clear, and this helps.
    Thank you,
    Dhar

  • How to create a variance on data that exists iIn only one database column

    How to create a variance on data that exists iIn only one database column?
    I'm trying to create a calculation to show the difference between the budgets for two different years in a Discoverer crosstab query.
    I'm using the lag function to repeat the value of a column for the current year and the year before.

    Lag and lead seems to be the only choice and they work excellent. Checkout the new 10g Database features. There is new SQL modal clause which might give additional and powerful analytics but in this case lag and lead should be sufficient.
    regards
    http://www.infocaptor.com/workbook-dump.php

  • How to create ALV as a POPUP in abap web dynpro?

    I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller
    WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in ESS, I have used the method "Generate_Popup" using wizard however it is showing error that "Instance is already used for window".
    Please let me know how to create POPUP alv where data fetching is done in "Component controller" hence I have only 1 view and 1 window in my web dynpro program.
    Below is the logic for data fetching and data binding in WDINIT method of "Component controller":
    method WDDOINIT .
      DATA: lv_pernr type p0105-PERNR,
            lv_user  TYPE P0105-USRID.
      lv_user = sy-uname.
       CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
         EXPORTING
           begda           = sy-datum
           endda           = sy-datum
           usrid           = lv_user
           usrty           = '0001'
        IMPORTING
          USR_PERNR        = lv_pernr
        EXCEPTIONS
          RETCD            = 1
          OTHERS           = 2.
    IF sy-subrc = 0.
    TYPES: BEGIN OF ty_pa2001,
                 PERNR TYPE PERSNO,
                 SUBTY TYPE SUBTY,
                 ENDDA TYPE ENDDA,
                 BEGDA TYPE BEGDA,
                 END OF   ty_pa2001.
          DATA: lt_pa2001 TYPE TABLE OF ty_pa2001.
    "Changes by shiromani
          DATA lo_nd_node_pernr TYPE REF TO if_wd_context_node.
          DATA lo_el_node_pernr TYPE REF TO if_wd_context_element.
          DATA ls_node_pernr TYPE wd_this->element_node_pernr.
    *    navigate from <CONTEXT> to <NODE_PERNR> via lead selection
          lo_nd_node_pernr = wd_context->get_child_node( name = wd_this->wdctx_node_pernr ).
    *    get element via lead selection
          lo_el_node_pernr = lo_nd_node_pernr->get_element( ).
    *    @TODO handle not set lead selection
          IF lo_el_node_pernr IS INITIAL.
          ENDIF.
    *    get all declared attributes
          lo_el_node_pernr->get_static_attributes(
            IMPORTING
              static_attributes = ls_node_pernr ).
    SELECT PERNR
            SUBTY
            ENDDA
            BEGDA FROM pa2001
    INTO CORRESPONDING FIELDS OF TABLE lt_pa2001
    WHERE pernr = lv_pernr AND subty = 'ITEL'.
    if sy-subrc = 0.
       DATA lo_nd_node_details TYPE REF TO if_wd_context_node.
       DATA lo_el_node_details TYPE REF TO if_wd_context_element.
       DATA ls_node_details TYPE wd_this->element_node_details.
    * navigate from <CONTEXT> to <NODE_DETAILS> via lead selection
       lo_nd_node_details = wd_context->get_child_node( name = wd_this->wdctx_node_details ).
    * get element via lead selection
       lo_el_node_details = lo_nd_node_details->get_element( ).
       lo_nd_node_details->bind_table( lt_pa2001 ).
    * alternative access  via index
    ENDIF.
    ENDIF.
    endmethod.

    Hi
    You ca use this function to Create a new window..
      CALL METHOD wd_window->create_window
          EXPORTING
            modal             = abap_true
            window_name       = 'MMPUR_CPPR_RFQ_WDW'
            title             = lv_otr_text
            close_button      = abap_true
            button_kind       = 3
            close_in_any_case = abap_true
          RECEIVING
            window            = wd_comp_controller->window.
        wd_comp_controller->window->open( ).
    here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
        CALL METHOD wd_comp_controller->window->subscribe_to_button_event
          EXPORTING
            button            = if_wd_window=>co_button_ok
            action_name       = 'RFQ_WT_VENDOR'
            action_view       = l_api
            is_default_button = abap_false
            button_text       = lv_otr_text
            tooltip           = lv_otr_text.
        wd_comp_controller->window->open( ).
    Please let me know if you have any issue. Please reword if its solve your problem.
    Regards
    Satrajit

Maybe you are looking for

  • User Contributed Tips in The MacBook 13-inch Aluminum (Late 2008) Display

    *The following User Contributed Tips are located in the MacBook 13-inch Aluminum (Late 2008) > The MacBook 13-inch Aluminum (Late 2008) Display forum:* <pending> *The following related tips are located in other areas of Apple Discussions:* a brody -

  • I would like to be able to create a few icons with photos on them and linked to a persons phone number.

    Hi, my father is in the middle stages of dementia and having trouble using his new iphone. I would like to be able to create a few icons with photos on them and linked to a persons phone number. This way he can select an icon and it will auto-dial th

  • Blue screen error while instaling.

    Hy I get the blue screen error when i install the flash player. Windows 7 32 bit Firefox 16.0.1 32 bit I had the older flash version but i removed it tryng to solve the problem but no succses. This is the version i try to install 11.4.402.287 i dont

  • Problem with 100% height

    I'm having a problem trying to get the LEFT and RIGHT DIV tags to drop down 100% along with the CENTER DIV tag. I don't want to use javascript. In all browser, except IE6, the DIV tags will fill 100% of the document window, but will not extend down w

  • HELP! my PowerPC G$ won't update and "error whilst printing"!!!

    My G4 has been behaving a little odd this past week. I first noticed it when i went to use software update (as usual).. it all downloaded then when it went to the next stage it said there was an error, trp repairing the permissions on the file.. (bel