Parameters not gettin passed while lead creation..........

Hi...
             I am passing the values of the fields SOURCE and IMPORTANCE in the exporting parameter IT_LEAD_H to the FM CRM_ORDER_MAINTAIN while lead creation...When I check the CRM_LEADH table I find that these values arent gettin reflected ...The guid and the leadtype are gettin saved but the values of these two fields are not present...This is the code I'm using.....
CT_ORDERADM_H
    ls_orderadm_h-handle        = '1'.
.   ls_orderadm_h-PROCESS_TYPE  = 'LEAD'.
    ls_orderadm_h-mode          = 'A'.
    INSERT ls_orderadm_h INTO TABLE lt_orderadm_h.
  build table with change fields
    FREE lt_input_field_names.
    ls_input_field_names-fieldname = 'PROCESS_TYPE'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'MODE'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    CLEAR ls_input_fields.
    ls_input_fields-ref_handle  = '1'.
  ls_input_fields-objectname  = 'ORDERADM_H'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE ct_input_fields.
CRMT_LEAD_H_COMT
  IF IT_LEAD_H IS INITIAL.
    ls_lead_h-ref_handle     = '1'.
    ls_lead_h-SOURCE         = '002'.
    ls_lead_h-IMPORTANCE     = '2'.
  ENDIF.
    INSERT ls_lead_h INTO TABLE lt_lead_h.
  build table with change fields
    FREE lt_input_field_names.
    IF ls_lead_h-SOURCE IS NOT INITIAL.
      ls_input_field_names-fieldname = 'SOURCE'.
      INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ENDIF.
    IF ls_lead_h-IMPORTANCE IS NOT INITIAL.
      ls_input_field_names-fieldname = 'IMPORTANCE'.
      INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ENDIF.
    CLEAR ls_input_fields.
    ls_input_fields-ref_handle  = '1'.
    ls_input_fields-ref_kind    = 'A'.
    ls_input_fields-objectname  = 'LT_LEAD_H'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE ct_input_fields.
IT_STATUS
  IF is_status IS INITIAL.
    ls_status-ref_handle     = '1'.
    ls_status-status         = STATUS.
   ls_status-user_stat_proc = 'CRMLEAD'.
    ls_status-activate       = 'X'.
   ls_status-process        = 'ACCI'.
  ENDIF.
    INSERT ls_status INTO TABLE lt_status.
  build table with change fields
    FREE lt_input_field_names.
    IF ls_status-status IS NOT INITIAL.
      ls_input_field_names-fieldname = 'STATUS'.
      INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ENDIF.
    IF ls_status-activate IS NOT INITIAL.
      ls_input_field_names-fieldname = 'ACTIVATE'.
      INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ENDIF.
    CLEAR ls_input_fields.
    ls_input_fields-ref_handle  = '1'.
    ls_input_fields-ref_kind    = 'A'.
    ls_input_fields-objectname  = 'STATUS'.
    ls_input_fields-field_names = lt_input_field_names.
    INSERT ls_input_fields INTO TABLE ct_input_fields.
ENDIF.
bring changed fields with values to object layer
  CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
      it_lead_h         = lt_lead_h
      it_survey         = it_survey
      it_status         = lt_status
    CHANGING
      ct_orderadm_h     = lt_orderadm_h
      ct_orderadm_i     = lt_orderadm_i
      ct_input_fields   = ct_input_fields
    EXCEPTIONS
      error_occurred    = 1
      document_locked   = 2
      no_change_allowed = 3
      no_authority      = 4
      OTHERS            = 5.
Are there any other parameters that I have to pass?Plz suggest a solution for this......

Hi Francois,
Thank you for looking into the issue. Your first response was did you try get_form_field. Yes I did, and it did not work. I realised later (hopefully correctly) that get_form_field will work only if the field below is treated as an input field within <htmlb:form> and </htmlb:form>.
I shall re-explain the scenario. In default.htm, I enter an IDoc Number(input field) and click submit button. In the <form action > I have mentioned idoc.htm page. In idoc.htm, in On Initialization , I create a tree.
Method of creating tree
a) I create a table of type TVIEWNODE and populate the relevant details, except for the link field. The parameters that needs to be passed to the next page is a structure. In order to achieve this(I found this method in one of the posts in the forum),
Step I -- Serialize the structure data using CL_BSP_UTILITY=>SERIALIZE_DATA and fill a table LT_PARAMETER_LIST.
Step II -- I then construct a URL using CL_BSP_RUNTIME=>IF_BSP_RUNTIME~CONSTRUCT_BSP_URL passing APPLICATION NAME, 'SEGMENT.HTM' and table LT_PARAMETER_LIST.
Step III -- This method returns a URL which is then appended in the TVIEWNODE table and the tree is created.
The tree is created perfectly and the links are perfect as well.
However as mentioned in my earlier post when I click on the link, the URL shows all the attributes but I am not able to fetch the same using GET_ATTRIBUTE method or GET_FORM_DATA method.
Next point mentioned was create an attribute. This is an interesting point that you have mentioned. In page attributes, when I try pa_s_idoc-segnam, it mentions special characters not allowed.
I will explore the possibility of creating fields of internal table as page attributes i.e. using SEGNAM instead of pa_s_idoc-SEGNAM and then pass values to these.
If there are any other solutions do let me know.
Thanks again, Francois.

Similar Messages

  • Creation parameters not taking effect after database creation in 10.1.0.4

    I created a database using DBCA, changed the default nls settings, then finished the database creation.
    The alert log reports the parameters as different than the defaults
    However, when starting the instance, the nls parameters are only set at the instance level and not the database level.
    Has anyone seen something similar in 10.1.0.4?
    Thanks

    Found this in Oracle Doc,
    NLS_DATABASE_PARAMETERS is the one you set when you do Create Database.
    NLS_INSTANCE_PARAMETERS is the one you set in your spfile when you start instance.
    So if you didn't set NLS_INSTANCE_PARAMETERS in spfile, then instance will start with NLS_DATABASE_PARAMETERS
    And alter session will over write them all.
    It's not new behavior in 10.2.0.4
    ==============================================
    NLS Database Parameters
    When a new database is created during the execution of the CREATE DATABASE statement, the NLS-related database configuration is established. The current NLS instance parameters are stored in the data dictionary along with the database and national character sets. The NLS instance parameters are read from the initialization parameter file at instance startup.
    You can find the values for NLS parameters by using:
    NLS Data Dictionary Views
    NLS Dynamic Performance Views
    OCINlsGetInfo() Function
    NLS Data Dictionary Views
    Applications can check the session, instance, and database NLS parameters by querying the following data dictionary views:
    NLS_SESSION_PARAMETERS shows the NLS parameters and their values for the session that is querying the view. It does not show information about the character set.
    NLS_INSTANCE_PARAMETERS shows the current NLS instance parameters that have been explicitly set and the values of the NLS instance parameters.
    NLS_DATABASE_PARAMETERS shows the values of the NLS parameters for the database. The values are stored in the database.

  • Shopping cart Document does not exist error while PO creation

    Hi Friends,
      We are in SRM 5.0 Extended Classic and ECC6.0. I am experiening a issue while sourcing. After shopping cart is created and ends up in sourcing cockpit, I try to create PO, I get the error 'Shopping cart Document does not exist'. I verified Number ranges, org structure, and config settings but unable to find a solution.
    This is at a critical stage where I am not able to create PO and hence process is not complete. I am not able to proceed further and need advise on how or where to look for possible issues. I did look at the other SDN postings but was not pertaining to mine.
    Thanks
    Rao

    hI
    Did you get below error message  **** pit.
    Data not found
    Document does not exist
    i believe the error message will not stop you to do sourcing.
    select and assigned to work area and assign source of supply and create a Purchase order.
    i also faced this error long back.
    br
    Muhtu

  • Order Of Null and Not Null Values while table creation

    We have to create a table with 10 fields .5 of them are Null and Not Null. Now my question what should be the order of fileds??.Means Null Fields will come first or Not Null.

    The only reason I can think of having the NULL columns at the end is storage space.
    To conserve space, a null in a column only stores the column length (zero). Oracle
    does not store data for the null column. Also, for trailing null columns, Oracle does
    not even store the column length.

  • Filters not getting passed in MDX query while using SAP BW with OBIEE

    Hello,
    I've been working on OBIEE with SAP BW as back-end. I've created some reports & those are working fine when there is less amount of data. But when I try to run a report with 3 dimensions & 1 fact it throws an error saying "No more storage space available for extending an internal table". When I checked MDX query, I found that the filters that I had applied to request & also selected from prompts are not getting passed in that query. So, I tried running a simple request using a simple filter in Answers. Although this request returns results but I can't see filter conditions in query. MDX query always show crossjoin but I can't see filter conditions anywhere.
    Is it the normal OBIEE behaviour OR am I doing something wrong in there? Can you please help me out with this?
    Thanks,
    Rocky

    Hello Sainath,
    We tried those things. But it is still giving same error.
    State: HY00. Code: 10058. [NQODBC][SQL_STATE:HY000][nQSError: 10058] A general error has occurred. XML/A error returned from the server: Fault code: "XMLAnalysisError.0X80000005". Fault string: "The XML for Analysis provider encountered an error: MDX result contains too many cells (more than 1 million)". (HY000)
    The problem here, I think, is the filter parameters are not getting passed in the MDX query. Any idea why would that happen? Is there any setting to do so?
    Thanks in advance for help.
    Regards,
    Rocky

  • Entire days of pictures are not loaded on iCloud, while most of the days are loaded. Weeks has passed, while I was connected to wireless, so I dont understand why still emtire days are missing...

    Entire days of pictures are not loaded on iCloud, while most of the days are loaded. Weeks has passed, while I was connected to wireless, so I dont understand why still entire days are missing...

    I noticed an entire series of its always sunny in philadelphia is missing from my apple tv "purchased" section where i can stream it directly from itunes...I just purchased the new season and not showing at all

  • IHC errors valid clearing partner not found and no header details found while idoc creation after f110

    IHC errors :valid clearing partner not found and no header details found while idoc creation after f110
    Please let me know where the config is missing for ihc automatic payment program.in we02 status is not 53.
    Please help

    Hi
    Please share the error message in the IDOC.
    If the error message is IHC204 "No valid clearing partner was found", it may be due to the missing correct configuration in Set Up Creation of Payment Requests for Inbound IDoc in FI, which links the clearing partner, ALE logical system partner type and IHC account number.
    Cheers
    taro

  • Collaboration Area is not being create while 2 envelop RFx Creation by Purchaser

    HI,
    Collaboration Area is not being create while 2 envelop RFx Creation by Purchaser hence Default folders (External Area/Internal Area ) are not appearing :
    Following roles are assigned to Purchaser on ECC System :SAP_CFX_USER, /SAPSRM/ST_PURCHASER
    Following roles are assigned to Purchaser on cfolder System :SAP_CFX_USER
    Following roles are assigned to RFC User on ECC System :
    SAP_CFX_ADMINISTRATOR
    SAP_CFX_COL_CREATOR
    SAP_CFX_COMP_CREATOR
    SAP_CFX_USER
    What could be the other root cause for this bug ?

    @@Version : ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Microsoft SQL Server 2012 - 11.0.5058.0 (X64)
        May 14 2014 18:34:29
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    (1 row(s) affected)
    Compatibility level is set to 110 .
    One of the limitation states - XML columns with a depth of more than 128 nested nodes
    How do i verify this ? Thanks .
    Rajkumar Yelugu

  • Not prompting for the parameters of stored procedures while running

    Hi All,
    I have a stored proc which takes in 3 parameters and execute a copy of a record in a table based on the 3 parameters which I pass in.
    When I use the proc in crystal reports (Crystal Reports 2008), it is not prompting for the parameter values if we execute the report directly. It's prompting the values only when I do 'Veriyf Database' from the menu. Why is it not prompting for values when executing directly. Am I missing anything here?
    Also, I have a C# .net project which uses the report and take in input parameters. Even there, previously, I used to call the VerifyDatabase () first and then the SetParameterValues () which was working fine for regular expressions. But for this report (which uses stored procedure), it is not giving the desired output (copying data), even though the report doesn't fail to run. But when I changed the order of the call to have SetParameterValues () before the call to VerifyDatabase (), it works fine (copies the data for the given input parameters).
    Please let me know what is missing here? Is the order of the call to VerifyDatabase () and SetParameterValues () matters? If so, why is it working for regular expressions and not for stored procs?
    Please clarify.
    Thanks,
    Siva.

    I recommend posting this to the Crystal Reports Design forum. As I read it:
    When I use the proc in crystal reports (Crystal Reports 2008), it is not prompting for the parameter values if we execute
    the report directly. It's prompting the values only when I do 'Verify Database' from the menu. Why is it not prompting
    for values when executing directly. Am I missing anything here?
    The issue is in the CR designer 1st. So it needs to be resolved there before moving on to the CR SDK in .NET.
    Link to CR design forum:
    SAP Crystal Reports, version for Visual Studio
    Ludek

  • Lead Creation Error thro ABAP Code

    Hi CRM ABAP Experts,
    I have written a code for lead creation by referring SDN Code. when i execute code , lead is created and transaction get saved in to system. but atlast one error comes. plz help me.  when i pass testrun = 'X'  then i am not getting error but lead trasaction is not created. and when i passedtestrun = blank then lead is created but gives below error.Below error i am facing.
    Short text
        An exception occurred that was not caught.
    What happened?
        The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
         anywhere along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_METHODCALL_PPF=============CP' has to be
        terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
         caught in
        procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
         RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        Could not find the referenced object with the OID
        "00000000000000000000000000000000" (instance GUID) and
    My Code is as follows
    DATA: it_HEADER type standard table of  BAPIBUS2000108_HEADER_INS.
    DATA: wa_HEADER  like line of it_HEADER.
    DATA:it_ORGANISATION TYPE STANDARD TABLE OF     BAPIBUS20001_ORGMAN_INS,
         wa_ORGANISATION LIKE LINE OF it_ORGANISATION.
    DATA: it_partner type table of BAPIBUS20001_PARTNER_INS.
    DATA: wa_partner like line of it_partner.
    DATA:HEADERX TYPE STANDARD TABLE OF     BAPIBUS2000108_HEADER_INSX,
         st_headerx TYPE bapibus2000108_header_insx,
         PARTNERX TYPE STANDARD TABLE OF BAPIBUS20001_PARTNER_INSX,
         st_partnerx TYPE bapibus20001_partner_insx,
         i_orgx  TYPE STANDARD TABLE OF BAPIBUS20001_ORGMAN_INSX,
         st_orgx TYPE bapibus20001_orgman_insx,
         i_save TYPE TABLE OF bapibus20001_object_id,
         i_return TYPE TABLE OF bapiret2,
         DATEX  TYPE STANDARD TABLE OF BAPIBUS20001_APPOINTMENT_INSX.
    DATA:i_itemx TYPE TABLE OF bapibus20001_item_insx,
         i_item TYPE TABLE OF bapibus20001_item,
         st_itemx TYPE bapibus20001_item_insx,
         st_item TYPE bapibus20001_item,
         i_schedulex TYPE TABLE OF bapibus20001_schedlinx,
         i_schedule TYPE TABLE OF bapibus20001_schedlin,
         st_schedulex TYPE bapibus20001_schedlinx,
         st_schedule TYPE bapibus20001_schedlin.
    DATA :c_x TYPE char01 VALUE 'X',
          TESTRUN type BAPIFLAG-BAPIFLAG.
    data i_input TYPE TABLE OF bapibus20001_input_fields.
    data st_input TYPE bapibus20001_input_fields.
    DATA:ORG_NO TYPE OBJEKTID,
         PARTNER_NO1 TYPE BU_PARTNER,
         CUST_BP TYPE BU_PARTNER,
         SALE_OFF TYPE CRMT_SALES_ORG_RESP.
    DATA:msg TYPE ZRETURN_ERROR.
    DATA:w_item TYPE CRMT_ITEM_NO,
         w_handle TYPE CRMT_HANDLE.
    CLEAR:st_headerx.
    st_headerx-handle = c_x.
    st_headerx-process_type = c_x.
    st_headerx-DESCR_LANGUAGE = c_x.
    st_headerx-POSTING_DATE = c_x.
    st_headerx-lead_type = c_x.
    st_headerx-importance = c_x.
    st_headerx-source = c_x.
    APPEND st_headerx TO headerx.
    CLEAR wa_header.
    wa_HEADER-HANDLE = '0000000001'.
    wa_HEADER-PROCESS_TYPE = 'ZCDL'.
    wa_HEADER-DESCR_LANGUAGE = 'EN'.
    wa_HEADER-POSTING_DATE = '20100603'.
    wa_HEADER-IMPORTANCE = '5'.
    wa_HEADER-SOURCE = '019'.
    wa_HEADER-LEAD_TYPE = '0016'.
    APPEND WA_HEADER TO IT_HEADER.
    CLEAR:st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'ORDERADM_H'.
    st_input-fieldname = 'PROCESS_TYPE'.
    APPEND st_input TO i_input.
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'LEAD_H'.
    st_input-fieldname = 'SOURCE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'IMPORTANCE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'LEAD_TYPE'.
    APPEND st_input TO i_input.
    *To fill the Organization X Structure
    CLEAR:st_orgx.
    st_orgx-ref_handle = c_x.
    st_orgx-ref_kind = c_x.
    st_orgx-dis_channel = c_x.
    st_orgx-sales_org_resp = c_x.
    APPEND st_orgx TO i_orgx.
    *To fill the Organization Structure
    CLEAR:wa_ORGANISATION.
    wa_ORGANISATION-ref_handle = '0000000001'.
    wa_ORGANISATION-ref_kind = 'A'.
    wa_ORGANISATION-dis_channel = '01'.
    wa_ORGANISATION-sales_org_resp = 'O 50000041'.
    APPEND wa_ORGANISATION TO it_ORGANISATION.
    *Fill input fields for Organization data
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'ORGMAN'.
    st_input-fieldname = 'DIS_CHANNEL'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'SALES_ORG'.
    APPEND st_input TO i_input.
    *To fill the Partner X Structure
    st_partnerx-ref_handle = c_x.
    st_partnerx-ref_kind = c_x.
    st_partnerx-ref_partner_handle = c_x.
    st_partnerx-kind_of_entry = c_x.
    st_partnerx-partner_no = c_x.
    st_partnerx-partner_fct = c_x.
    st_partnerx-no_type = c_x.
    st_partnerx-display_type = c_x.
    st_partnerx-MAINPARTNER = c_x.
    APPEND st_partnerx TO partnerx.
    *To fill the Partner Structure
    *CLEAR:wa_partner.
    *wa_partner-ref_handle = '0000000001'.
    *wa_partner-ref_kind = 'A'.
    *wa_partner-ref_partner_handle = '0001'.
    *wa_partner-kind_of_entry = 'C'.           """""""A
    *wa_partner-partner_no = '62563'.
    *wa_partner-partner_fct = '00000022'.
    *wa_partner-no_type = 'BP'.
    *wa_partner-display_type = 'BP'.
    *wa_partner-MAINPARTNER = 'X'.
    *APPEND wa_partner TO it_partner.
    CLEAR:wa_partner.
    wa_partner-ref_handle = '0000000001'.
    wa_partner-ref_kind = 'A'.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-kind_of_entry = 'C'.         """""""A
    wa_partner-partner_no = '62564'.
    wa_partner-partner_fct = '00000021'.
    wa_partner-no_type = 'BP'.
    wa_partner-display_type = 'BP'.
    wa_partner-MAINPARTNER = 'X'.
    APPEND wa_partner TO it_partner.
    CLEAR:wa_partner.
    wa_partner-ref_handle = '0000000001'.
    wa_partner-ref_kind = 'A'.
    wa_partner-ref_partner_handle = '0001'.
    wa_partner-kind_of_entry = 'C'.    """"""""A
    wa_partner-partner_no = '71024'.
    wa_partner-partner_fct = 'ZCDLSM'.
    wa_partner-no_type = 'BP'.
    wa_partner-display_type = 'BP'.
    wa_partner-MAINPARTNER = 'X'.
    APPEND wa_partner TO it_partner.
    *Fill input fields for Partner data
    CLEAR st_input.
    st_input-ref_handle = '0000000001'.
    st_input-ref_kind = 'A'.
    st_input-objectname = 'PARTNER'.
    *st_input-logical_key = w_logickey_partner.
    st_input-fieldname = 'DISPLAY_TYPE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'KIND_OF_ENTRY'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'NO_TYPE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'PARTNER_FCT'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'PARTNER_NO'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'MAINPARTNER'.
    APPEND st_input TO i_input.
    *To fill the Item X Structure
    st_itemx-handle = c_x.
    st_itemx-header_handle = c_x.
    st_itemx-ordered_prod = c_x.
    st_itemx-number_int = c_x.
    st_item-mode = c_x.
    APPEND st_itemx TO i_itemx.
    *To fill Schedule line X Structure
      st_schedulex-item_handle = c_x.
      st_schedulex-handle = c_x.
      st_schedulex-quantity = c_x.
      st_schedulex-logical_key = c_x.
    APPEND st_schedulex TO i_schedulex.
    CLEAR: w_item, w_handle.
    w_item = '0000000010'.
    *To fill the Item Structure
    w_handle = 1.
    st_item-handle = w_handle.
    st_item-header_handle = '0000000001'.
    st_item-ordered_prod = '400000120' .
    st_item-number_int = w_item.
    st_item-mode = 'A'.
    APPEND st_item TO i_item.
    *To fill Schedule line Structure
    DATA:qty TYPE CRMT_SCHEDLIN_QUAN VALUE '1'.
      st_schedule-item_handle = w_handle.
      st_schedule-quantity = qty.
    APPEND st_schedule TO i_schedule.
    *Fill input fields for Item data
    CLEAR st_input.
    st_input-ref_handle = w_handle.
    st_input-ref_kind = 'B'.
    st_input-objectname = 'ORDERADM_I'.
    st_input-fieldname = 'MODE'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'NUMBER_INT'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'ORDERED_PROD'.
    APPEND st_input TO i_input.
    Fill input fields for schedule line data
    CLEAR st_input.
    st_input-ref_handle = w_handle.
    st_input-ref_kind = 'B'.
    st_input-objectname = 'SCHEDLIN'.
    st_input-fieldname = 'LOGICAL_KEY'.
    APPEND st_input TO i_input.
    st_input-fieldname = 'QUANTITY'.
    APPEND st_input TO i_input.
    CLEAR testrun.
    *Testrun = 'X'.
    CALL FUNCTION 'BAPI_LEAD_CREATEMULTI'
    EXPORTING
       TESTRUN            = Testrun
    TABLES
       HEADERX            = headerx
       PARTNERX           = partnerx
       ORGANISATIONX      = i_orgx
       itemx              = i_itemx
       sched_linx         = i_schedulex
       HEADER             = it_header
       ORGANISATION       = it_ORGANISATION
       PARTNER            = it_partner
       item               = i_item
       SCHED_LIN          = i_schedule
       INPUT_FIELDS       = i_input
       RETURN             = i_return
       SAVED_PROCESS      = i_save  .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'x'.
    IF SY-SUBRC = 0.
      IF sy-subrc = 0.
      ENDIF.
    ENDIF.

    Hi,
    Look at the post. No one will be able to understand anything out of this. Kindly Repaste code using  markup.
    Regards,
    Harsh.
    Edited by: Harsh Saxena on Aug 28, 2010 11:40 AM

  • Factory calendor does not exist error during order creation

    Hi,
    I am getting the factory calendor does not exist error while creating the order. For this i will explain the details for this issue and guide me where is the problem.
    we are doing reconfiguration for the new plant in the client. In this client we are now creating new plant and doing the reconfiguration. While creating the order in new plant i am getting the below error message. i have assigned the existing factory calendor of the old plant to new plant in the existing client. i am thinking that factory calendor is not plant based. In work center i have assigned the factory calendor of old plant for the new plant work center. Please guide me.
    Regards,
    Mastan.

    Hi Dogboy,
    Thank You for immediate reply.
    Have you performed all PP configuration for 1007?
    It means i have created order type and order type parameters, availability check,scheduling, conformation steps for the ordre type.
    Master data,routing, bom creted in cewb with change number and assigned to routing in cewb.
    And factory calendor assigned in work center as old plant calendor only.
    Other tahn this nay steps need to consider for creation of order. anything i have missed. Please guide me.
    Have you assigned a factory calendar to plant 1007?
    Factory calendor is not plant specific. i think with in a client  i can assign same calendor to new plant also. anywhere i have not observed the calendor as plant wise. please guide me.
    Have you created a BOM for this material in 1007?
    Have you created a work center in 1007?   Does the work center have a factory calendar that actually exists?
    The above two steps i have done.
    Have you created a routing for this material in 1007, with operations in that only include work centers assigned to 1007, and assigned the routing to this material in 1007?
    Yes.
    Please guide me.
    Regards,
    Mastan.

  • Session state is not being passed properly to another page

    Hello Gurus,
    I have a multi-page application which authenticates using a simple authentication page 101. Right now I have a generic authentication scheme which always returns true (Session Verify Function= return true; I will integrate LDAP later.) It works fine. The app remembers the username from one page to the next (popup pages mainly).
    My issue is that, after exporting the application and re-importing into a new workspace, the user/session state is no longer being preserved from page to page. It prompts for a login every new page that is opened (the popups). This ruins the flow and functionality of the app.
    I've checked every setting (I think) and cannot find any differences between the two workspaces or apps. Any ideas why this would work in one workspace and not the other?
    TIA!
    Jonathan
    I should also indicate that the issue seems to be specifically in calling "callmypopup" function. For some reason it isn't passing the session id properly to the popup page, where it did fine in the other workspace. function text:
    function callMyPopup (sourceItem, popuppagenum, targetItem, appid, appsession) {
    //opens popup pg and passes value in sourceItem to targetItem
    //sourceitem=calling text box, targetItem=text box in popup page
    var minlength = 3;
    if (CheckLength(sourceItem, minlength))
    var formVal1 = document.getElementById(sourceItem).value.toUpperCase();
    var url;
    url = 'f?p=' + appid + ':' + popuppagenum + ':' + appsession + '::::' + targetItem + ':' + formVal1;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    else {alert('Please enter at least ' + minlength + ' characters in your search.');}
    Edited by: austindurant on Sep 5, 2008 7:02 AM
    Edited by: austindurant on Sep 5, 2008 7:46 AM

    It looks like your session id is not correctly passed to your popup page. Try using:
    javascript:popUp2('f?p=&amp;APP_ID.:1:&amp;SESSION.:::::', 600, 700);
    instead, which does the same thing. Put your parameters for the page items there if required.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Is BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE(manual) creation?

    Hi Experts,
    Ours is IS-Oil.
    If the user do not enters/inputs OIC_MOT (Mode Of Transport) at ITEM level on the External Details popup, SAP will get it from Customar Master-KNA1 and populates on it, because its a mandatory field (OIC_MOT), but, do not throws an Error message and interupts the sales order creation process.
    We have a inbound IDOC posting function module for sales order (VA01), which posts the sales oreders by using BDC (CALL TRANSACTION 'VA01') in the system. In this function module, we are not populating the OIC_MOT field contained segment by hoping SAP will populate/default it while it hits CALL TRANSACTION 'VA01' of my BDC of my FM of IB IDOC. But, SAP is not defaulting/populating and throwing error message (saying 'OIC_MOT field is a mandatory input field' data is missing) and IDOC is failing, pls. let me know Wht its so? is the BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE (manual ) creation of sales order?
    Thank you

    Hi
    Several transactions can ba a different behavior between online and bdc process, but if you simulate the trx by SM35 you should find out these gaps
    I don't know OIL vertical, but the main transactions have a bapi can be used insted of BDC program (BAPI_SALESORDER_CREATEFROMDAT2, but perhaps there's a particular BAPI for OIL).
    Max

  • Operation not found error while calling AM methods from managed bean

    Hi,
    operation not found error while calling AM methods from managed bean.
    written a method with two parameters in AM.
    exposed the method in AM client interface
    in the page bindings added the method in method action ..left empty in the value fields of the parameters.
    calling the method from managed bean like below
    String userNameVal = (String)userName.getValue();
    String passwordVal = (String)password.getValue();
    OperationBinding operationBinding =
    ADFUtils.findOperation("verifyLogin");
    operationBinding.getParamsMap().put("userName",userNameVal);
    operationBinding.getParamsMap().put("password",passwordVal);
    operationBinding.execute();
    i am getting operation verifyLogin not found error.Please suggest me something to do.
    Thanks
    Satya

    Hi vlsn,
    Can you try with the below code
    // in your backing bean
    OperationBinding operation = bindings.getOperationBinding("verifyLogin");
    //Put your both parameters here
    operation.getParamsMap().put("parameter_name1", parameterValue1);
    operation.getParamsMap().put("parameter_name2", parameterValue2);
    operation.execute();
    if (operation.getResult() != null) {
    Boolean result = (Boolean) operation.getResult();
    and share the result.
    regards,
    Rajan

  • Changing the Profit Center while PO creation

    Hi All,
    I am trying to update the Profit Center(EKKN-PRCTR) while PO creation using the transactions ME21N and ME22N. I used ME_PROCESS_PO_CUST which is not even triggering and include ZXM06U22, ZXM06U43 which also are not working. Can you please guide me which EXIT or BADI can be used to achieve this requirement.
    Thanks in Advance.

    Hi
    Check the BADI  ME_PROCESS_PO_CUST with PROCESS_ACCOUNT AND POST methods. 
    Refere the link
    Re: BADI for Purchase  Order
    Regards
    Sanil Bhandari

Maybe you are looking for

  • Error while realigning aggregates through master data attr. change run

    Hi all, We are using Sales Overview cube (SD_C03) on which we have built aggregates. now during the master data attribute change run it tries to realign the aggregate once the master data is loaded via Process chain. In this step we are facing an err

  • How do I convert a PDF of a ppt slide handout to a regular ppt?

    I have a PDF of a powerpoint presentation, but it is a handout format, with 4 slides per page. I want to convert it into a normal powerpoint presentation with 1 slide per slide. However, when I save it as a ppt, it creates a presentation where each s

  • How to use non sap application in sap.......?

    hi,         anyone has any idea how to use non sap application  like java class in sap through abap programming. please let me know ... thanks in advance. saurin shah.

  • Quicktime movies playing in Safari 4

    Hi, when I used to watch Quicktime playable movies in Safari's web browser such as .mpg .avi .wmv I used to be able to save them as I have Quicktime Pro but since updating to Safari 4 I have not seen the small downward arrow to the bottom right of th

  • Closing the JWS Applet: shutdown hook is not invoked

    Windows 2000, Java Web Start 1.4.2_05 I am running my applet with Java Web Start. If I close the JWS Applet window by clicking the upper right "X" button, the applet is being shut down. I want to perform a task like showing a warning message, before