Create customer date trough class cmd_ei_api - error in test run

Hi all,
I try to use class cmd_ei_api to create customer. It works fine but one thing is strange.
When I pass data with test run and customer is in a group with internal nummering system icrease number every time when i run program. Customer is not created ( that is good) but the assigned nummer is lost.
I tried to use method maintain_bapi and maintain.Problem occurs every time.
Do you have the same problem?  Do you know solution of this problem?
regards,
JG
SAMPLE CODE:
report zcreate_customer.
data: wa_header          type cmds_ei_header,
      wa_central_data    type cmds_ei_vmd_central_data,
      wa_central_datax   type cmds_ei_vmd_central_data_xflag,
      wa_address         type bapiad1vl,
      wa_addressx        type bapiad1vlx,
      wa_tax_ind_st      type cmds_ei_tax_ind,
      wa_tax_ind         type cmds_ei_cmd_tax_ind,
      wa_bankdetail_st   type cvis_ei_cvi_bankdetail,
      wa_bankdetail      type cvis_ei_bankdetail,
      wa_company_code_st type cmds_ei_company,
      wa_company_code    type cmds_ei_cmd_company,
      wa_functions_st    type cmds_ei_functions,
      wa_functions_t     type CMDS_EI_FUNCTIONS_T,
      wa_functions       type cmds_ei_cmd_functions,
      wa_sales_data_st   type cmds_ei_sales,
      wa_sales_data      type cmds_ei_cmd_sales,
      wa_customer        type cmds_ei_extern,
      wa_customers       type cmds_ei_main,
      wa_correct         type cmds_ei_main,
      wa_defective       type cmds_ei_main,
      wa_mes_correct     type cvis_message,
      wa_mes_error       type cvis_message.
constants: c_update type c value 'M',
           c_insert type c value 'I'.
PARAMETERS: p_test type c as CHECKBOX DEFAULT 'X'.
start-of-selection.
  free: wa_customer, wa_company_code_st, wa_customer.
  wa_address-name       = 'CUSTOMER NAME'.
  wa_address-city       = 'CITY'.
  wa_address-postl_cod1 = '28-500'.
  wa_address-street     = '1400 9TH ST W'.
  wa_address-country    = 'PL'.
  wa_address-langu      = 'L'.
wa_address-region     = 'FL'.
  wa_address-sort1      = 'SORT1'.
  wa_address-sort2      = 'Sort2'.
Assign address data directly
  wa_customer-central_data-address-postal-data = wa_address.
  wa_addressx-name       = 'X'.
  wa_addressx-city       = 'X'.
  wa_addressx-postl_cod1 = 'X'.
  wa_addressx-street     = 'X'.
  wa_addressx-country    = 'X'.
  wa_addressx-langu      = 'X'.
  wa_addressx-region     = 'X'.
  wa_addressx-sort1      = 'X'.
  wa_addressx-sort2      = 'X'.
wa_customer-central_data-address-postal-datax = wa_addressx.
  wa_customer-central_data-central-data-ktokd = 'OKRA'.
  wa_customer-central_data-central-data-STCD1 = '8291004247'.
  wa_company_code_st-task           = c_insert.
  wa_company_code_st-data_key-bukrs = '1000'.
  wa_company_code_st-data-zuawa     = '009'.
  wa_company_code_st-data-akont     = '0000201100'.
  append wa_company_code_st to wa_company_code-company.
  append wa_customer to wa_customers-customers.
  call method cmd_ei_api=>maintain_bapi
    EXPORTING
      iv_test_run         = p_test
      iv_collect_messages = 'X'
      is_master_data      = wa_customers
    IMPORTING
      es_master_data_correct   = wa_correct
      es_message_correct       = wa_mes_correct
      es_master_data_defective = wa_defective
      es_message_defective     = wa_mes_error.
  if wa_mes_error-is_error is initial and p_test is INITIAL.
    commit work AND WAIT.
  else.
    ROLLBACK work.
  endif.

Hi experts, I am using cmd_ei_api to create customer. Each time when I create the customer, for the customer number KUNNR, first the method picks a new number from number range, if I don't supply one in program. Then it makes the necessary checks on customer data. If data check is success, customer is created and everything is okay. But if the check is failed, no customer gets created in the Data base, but the picked number is lost forever. Is there a way to avoid this?
      The same happens, even when I ran it in Test Mode(iv_test_run = 'X'). A number is lost irrespective of whether the test run is success or not.
      I tried supplying the customer number via the program. I this case also, I had to get a number from the Number Range and supply. As the Method validates whether the supplied number belongs to the right number range, I cannot use any dummy number(not even for a Test run). Also it validates whether a customer exists in KNA1 with the supplied number.
      As a work around, now I am supplying the last number of the number range for the test run(which I have hard coded ~not a good practice!!). If this runs error free, I will pick a new number and creates the customer.
regards,
anish
sample code...
*-- Fill customer parameters to lwa_master_data
lwa_customer-header-object_instance-kunnr  = '99999'.
* *** ~~
*-- Test Run with dummy customer no. for data check
    IF lwa_master_data IS NOT INITIAL.
       CALL METHOD cmd_ei_api=>maintain
         EXPORTING
           iv_test_run    = 'X'
           is_master_data = lwa_master_data
         IMPORTING
           es_error       = lwa_es_error.
*-- Create customer if Test Run Succeeds.
      IF lwa_es_error is INITIAL.
*-- Get new Customer Number
       CALL METHOD cmd_ei_api=>get_number
         EXPORTING
           iv_ktokd = as_customer-ktokd
         IMPORTING
           ev_kunnr = lv_kunnr
           es_error = lwa_getno_msg.
       IF lv_kunnr is NOT INITIAL.
*-- Supply new customer number
         CLEAR: lwa_master_data, lt_customer.
         lwa_customer-header-object_instance-kunnr = lv_kunnr.
         APPEND lwa_customer TO lt_customer.
         CLEAR lwa_customer.
         lwa_master_data-customers = lt_customer.
*-- Initialize Global and Current Customer Buffer
         CALL METHOD cmd_ei_api=>initialize.
*-- Create Customer
         CALL METHOD cmd_ei_api=>maintain
           EXPORTING
             iv_test_run    = ''
             is_master_data = lwa_master_data
           IMPORTING
             es_error       = lwa_es_error.
*-- Proceed if no error with customer creation
         IF lwa_es_error is INITIAL.
* ******************* * ******************* ~~

Similar Messages

  • No Data Shown because an error occurred while running the query

    Discoverer 10gR2 using Plus on Firefox:
    I have one workbook. The first sheet summarizes by Vendor. Parameters are Type, Category, Vendor (all optional) and mandatory date range.
    The second sheet summarized by Vendor and Model. Parameters are Type, Category, Vendor, Model (all optional) and mandatory date range.
    All parameters except the extra "Model" are shared between the sheets.
    When I run the Vendor sheet, parameters pop up, I put in dates and leave the rest blank. Results display. Yeah!
    When I then run the Model sheet, parameters pop up again (because it has one more parameter). Dates carry forward, leave the rest blank. I get the error No Data Shown because an error occurred while running the query. Refreshing does not help.
    If I click back to the Vendor sheet, then come back to the Model sheet, no parameter screen and the query runs.
    Booooo.
    Have tried multiple DBs, multiple EULs, multiple underlying data sources, replacing the offending parameter with a whole new one, no difference.
    Has any body run into this behavior? Is there an answer?
    -- Ron Olcott, Business Intelligence Product Manager

    What about trying this. On the parameter definition, you have a section on the bottom left of the Parameters window, called "Do you want to allow different parameter values for each worksheet?". When you say in your posting that all but the Model parameter is shared, I assume you mean that you have set this section value to "Allow only one set of paratmeter values for all worksheets". Try setting this to "Allow different parameter values for each worksheet". See if that might make a difference for you. If that works, you may have to leave the option at this, as the lesser of your evils. From my limited experience, the "Allow only one set of parameter mvalues for all worksheets" is a bit flaky in how it works. So I pretty much have gone to always saying to allow different parameter values for each worksheet. Hope this helps a bit. If worse comes to worse, if you have not done so already, log a service request with support and see what they say. Good luck.
    John DIckey

  • How to create Customer data TAB in PO -ME23N

    Can anyone tell me how to add 'Customer data' TAB in the PO heade TABSTRIP. I have to add it in the header besides 'Status' TAB.
    I know an enhancement 'MM06E005' which is used for this purpose.
    Thanks
    SMS

    Hi
    see this sample doc and do it accordingly
    by creating a project in CMOD and assigning the Enhancment MM06E005  and writing the code in the respective screen
    How to implement screen exit for a SAP standard transaction
    Introduction
    SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
    To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
    To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:
    An append structure in the database table with the new fields.
    A subscreen area into the standard screen – where the programmer can attach his subscreen of his own program with the new fields.
    A function group under which the new subscreen has to be created with the new fields.
    Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen – so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed.
    Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer.
    Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under which the subscreen has to be developed.
    Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD).
    Pre-Requisites
    The developer to work on screen exit should have essential knowledge on the following:
    DDIC concepts, including the knowledge of append structure.
    Concept of SAP Enhancements and implementing them using Projects.
    Concept of function exits.
    Knowledge on Module Pool – including subscreens, Tabstrip controls etc.
    Steps
    Guidelines
    So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:
    Find out the Required Enhancements
    Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘SAP Applications’. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest – for e.g., Purchasing, Asset Accounting, etc.
    Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
    Utilize the Enhancement in a Project
    After you have found one, do as directed in the documentation. Generally, the steps are as follows:
    Create a project using CMOD including your enhancement.
    Create the append structure with new fields.
    Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required.
    Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction.
    Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration.
    Activate the project.
    Test to ensure that required functionality are met.
    Case Study 1
    Add three new custom fields for Asset master and maintain information for them
    Requirement
    Three fields in the legacy system have to be maintained in Asset master. These fields are:
    Original Asset number – 20 characters
    Location 2 – 15 Characters.
    Model no – 20 characters
    Location 2 should start with ‘L’.
    Pre-Analysis
    Finding out the Enhancement
    As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD):
    Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields
    Studying the Function Exits
    The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use:
    EXIT_SAPLAIST_002
    Function module Level Documentation
    This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed.
    Import Parameters
    Understanding
    This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.
    EXIT_SAPLAIST_003
    Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is:
    Understanding
    This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database.
    Studying the Documentation of the Enhancement
    The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well.
    Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:
    Deciding the Final course of Action
    After making all the investigations, the final course of action was determined.
    SrlNo Step Justification
    A project has to be created using transaction CMOD where the enhancement AIST0002 will be included.
    Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen.
    A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be ‘CUST’ (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen.
    In the PAI of the subscreen, validation for Location to start with ‘L’ will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens.
    In the custom include of the function exit module ‘EXIT_SAPLAIST_002’, the following code will be written:-
    ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated.
    In the custom include of the function exit module ‘EXIT_SAPLAIST_003’, the following code will be written:-
    E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU.
    Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done – otherwise, the new custom subscreen will not be displayed in the Asset master screens.
    Development
    Creating a Project to include the enhancement
    Go to transaction CMOD and create a project.
    Enter a description for the project. Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
    Enter the name of the enhancement and Save.
    Go to ‘Components’.
    Creating Custom Include for ANLU
    The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it.
    Create the include structure with three new fields, as required. Then, save and activate it.
    Develop the subscreen and the program
    Go to transaction SE80. For the function group XAIS, create a new subscreen 9000.
    Create it as subscreen.
    Then, go to the Layout of the screen and create three new fields from Database table ANLU.
    Drag the fields in the screen body and place them.
    Then, save and activate the screen and come back to screen flow editor.
    Create the PAI module to add validation for field “Location 2”, as required .
    Activate the whole function group and come out.
    Write code in the Function Exits to synchronize the programs
    Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits.
    Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction:
    Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program.
    Then, activate everything – the whole project and come out.
    Complete the configuration to link the subscreen
    The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO.
    Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned.
    Here, the requirement is to create these three custom fields in the tab page ‘General’ of asset master screen ( AS01/AS02/AS03/AS91).
    Determine the Layout
    To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class ‘1000’ and click on folder ‘General Assignment of Layout’.
    Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout ‘SAP’ cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here.
    Create new tab layout
    Go to transaction AOLA. Copy the tab layout ‘SAP’ to create another layout, say, YSUB.
    System will copy all the settings and will inform you about that.
    Select your newly created layout and double-click on the folder ‘Tab page titles’.
    You want to put your custom fields in the tab page “General”. So, select this tab page entry and double-click on the folder "Position of Groups".
    Here, all the field groups currently residing in the tab-page “General” are shown. Add an entry for your newly created fields.
    Select the group box from the list. An entry will come with “U” padded with the custom subscreen prepared by you.
    Then, save and come out.
    Assign the new Layout to Asset Class
    Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000.
    Save and come out.
    Test the Exit
    Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them…save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not.
    Original Source: ittoolbox.com
    Regards
    Anji

  • I can't create Entity Data Model Class directly from database

    I have just installed odac beta (ODAC1120250Beta_EntityFramework) and Orace XE 11g for test.
    I have Visual Studio 2010 on Windows 7 32bit.
    The problem is that after updating odac I can't create ADO.NET Entity Data Model class. If I try, VS2010 wizard makes me choose if I want to generate from db or create an empty model. If I choose to generate from database, the next window disappers making me return to VS2010.
    The workaround is to create an empty model and then update model from database. In this way it works.
    Anybody has experimented the same?...
    Best regards
    Francesco

    A couple of things you could try:
    1. Install SP1 for Visual Studio 2010.
    2. Do you already have an Oracle connection created in server explorer? If not, try creating one and then create the model.

  • Problem in BDC while creating customer data(FD01)

    Hi Experts,
    i am creating customer for FI module using FD01, with call transaction method,  here my prob is, if i update mode A, then it is asking enter for every screen, but i use  N mode,  it is not creating,
    so what i need to modify and where ...
    Thanks,
    sudha.

    Thats because you are skipping code for a screen, in A mode you do not notice and press ENTER, but in N mode the process gets stuck when it cannot find the code for a screen.
    Run the program in A mode and find out where you are stucking, and put this code in your program at that spot:
    PERFORM insert_bdc_data TABLES it_bdc_data USING:
                        'X'  'SAPLKACB'       '0002',
                        ' '  'BDC_OKCODE'     '=ENTE'.
    The code may be different for you, I just wanted to give you an idea what may be going wrong.

  • How to create custom Data Control for Iterator?

    Hi,
    I have seen somewhere that is possible to customize set of data controls for all iterators in Data Controll Palette e.g. by adding custom data control (I remember JDev uses Velocity to display data controls). Is there any documentation or tutorial how to do it. Meybe any Oracle ACE will write some steps on his blog.
    Kuba

    I'm looking for any documentation or better some examples to customize files:
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/jsp_databinding_templates.xml
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/faces_creator_configuration.xml
    This customization may be very useful while developing appliations
    Kuba

  • I am geeting the error in Test run.

    Dear Friends,
         i am getting this error
    Division by zero not performed
    Calculation rule    ZPPF/810          RTE=TSDIVI RTE-TSDIVP RTEKGENAU RTE
    When i am increasing the salary of the person.
    How should i handle this.
    kindly respond me asap.
    i am getting error in the test run.
    Regards,
    sai prasad.

    ya its solved.
    the main problem why i am getting the error when i am running payroll is that i dint not maintain some importent country specific infotypes properly. thats the reason its showing me errors.
    i maintained them properly and finally the error is resolved.
    Thanks once again to the reply from our friends.
    Regards,
    sai prasad

  • Olioweb QOS error and Test Run is not compliant

    Hi,
    I made 3 tile setup and test is failing for Olioweb QOS. When I run first 2 tile, test runs fine and run is compliant. Later I ran oly 3rd tile and test run is compliant without any issue.
    When I start all 3 tiles together I get olioWeb QOS error for first 2 tiles. Sometimes all 3 tiles gives OlioWeb QOS error.
    Attached the result.
    Please look into it and let me know if anthing need to be changed in setup.
    Thanks,
    Suresh

    jpschnee,
    I have run only olioweb workload for all the three tiles and I do not see any failure in Olioweb.wrf. I have attached the result for the run. It looks like clean run when only Olioweb load is ran.
    Again I ran the 3 tile for all workloads . I observed  QOS error happens for all three tiles. i.e olioweb workloads. previosuly only for 2 tiles it gave QOS error.
    I am trying to find the subsystem which is saturating in my setup. As I asked I am expecting some alarms from Vcenter when resources peaks to its max.
    I am seeing CPU is taking less than 70% in all ESXi Servers. Memory less than 20%.
    Disk Max latency is less than 20ms.
    Network is max 500Mbps for 10G network connectivity.
    Do you see above resource utilization problematic?>
    Thanks,
    Suresh

  • How to create custom attributes & object classes through ldif files in OID

    Hi,
    I have to create 4 attributes and one object class(custom) in OID. I want to creae these attributes and object class through LDIF file.
    I tried creating an attribute through this command
    ldapadd -p 389 -h localhost -D cn=orcladmin -w password -f D:/newattr.ldif
    this ldif file contains inf. for creating a new attributes:
    dn: cn=subschemasubentry
    changetype: add
    add: attributetypes
    attributetypes: ( 1.2.3.4.5.6.10 NAME "xsUserType_new" DESC "User Type Definition" EQUALITY caseIgnoreMatch
    SYNTAX "1.3.6.1.4.1.1466.115.121.1.15" )
    I am getting error: Object class violation
    Failed to find add in mandatory or optional attribute list.
    Please help to find where I am going wrong...
    Thanks.

    Hi Ajay,
    Thank you for the help. Now i am able to create both attributes and object classes in OID through Ldif files.
    I was getting constraint violation error because (I think) I was not giving proper naming convection for attributes and object classes. For OID, there are certain Ldap naming conventions. They are as follows:
    # X below is the enterprise number assigned by IANA
    1.3.6.1.4.1.X.1 - assign to SNMP objects
    1.3.6.1.4.1.X.2 - assign to LDAP objects
    1.3.6.1.4.1.X.2.1 - assign to LDAP syntaxes
    1.3.6.1.4.1.X.2.2 - assign to LDAP matchingrules
    1.3.6.1.4.1.X.2.3 - assign to LDAP attributes
    1.3.6.1.4.1.X.2.4 - assign to LDAP objectclasses
    1.3.6.1.4.1.X.2.5 - assign to LDAP supported features
    1.3.6.1.4.1.X.2.9 - assign to LDAP protocol mechanisms
    1.3.6.1.4.1.X.2.10 - assign to LDAP controls
    1.3.6.1.4.1.X.2.11 - assign to LDAP extended operations
    By using these conventions for attributes and object class, I did got any error and they were created in OID.
    Thanks a zillion.
    Kalpana.

  • Create custom data when releasing a Purchase Order

    Hello people,
    The customer uses ME28 to release the Purchase Order.
    They have, for instance, two release estrategies: W1/01 and W2/02, that differ about the price.
    The scenario is:
    When the customer releases a Purchase order from W2/02 strategy using ME28 transaction, we need to do some verifications in Z tables and create a record in another Z table. If for some reason the purchase order will not be released, this Z data does not have be saved.
    And if some error occurs and the data don´t be saved, the estrategy must remain blocked (not released).
    In which EXIT is the best point to do this?
    Thanks a lot!

    hey
    try these 2 user exits
    MM06E005 - ZXM06U43 which is called from exit EXIT_SAPMM06E_012. This code is hit at the time you check or save.
    M06E0004 - Changes to communication structure for release purch. doc - EXIT_SAPLEBND_002

  • Create custom rule: Looking for ORA errors in the alert log

    I would like to create a rule to notify me when ORA errors are generated to the alert log. When I try to create a rule, I seem to only be able to choose from predefined lists. Has anyone configured a rule for this?

    Grrr. This is for 10.2 Grid:
    Go to databases --> select your database
    Under Diagnostic summary, you'll see:
    Alert Log 28-Dec-2006 09:19:48
    The date part is a clickable link, click on it. Scroll to the bootom of the next page and click on:
    "Generic Alert Log Error Monitoring Configuration"
    Now read the page very carefully, its all self explanatory. The reason who haven't had some errors reported is because of that filter. Now set it up the way you want it.
    Good luck
    Bazzza

  • Creating custom LAF - failing with 'unexpected error'

    Hi,
    I'm trying to create a custom LAF based on the simple.desktop. I follow the steps for 'Create Look and Feel' and enter -
    Name: test-desktop
    Family: test
    Description: Test LAF
    Base Look and Feel: simple.desktop
    click Next and the 'Customise Styles and Icons' page is displayed.
    When I try and make any changes, or just go straight through to the 'Submit' I get an Error Page. Text is '
    You have encountered an unexpected error. Please contact the System Administrator for assistance. '
    Can anybody suggest what might be going wrong?
    Thanks,
    Paul.

    My view is yes as I need the custom LAF for my OA Framework pages and I couldn't see a more appropriate forum.
    If there is one, please suggest.
    Thanks,
    Paul.

  • Creating abap data flow, open file error

    hello experts,
    i am trying to pull all the field of MARA table in BODS.
    so i m using abap data flow.but after executing the job i got error "cant open the .dat file"
    i am new to abap data flow so i think may be i did some mistake in configuration of datastore.
    can any one guide me how to create a datastore for abap data flow???

    In your SAP Applications datastore, are you using "Shared Directory" or "FTP" as the "Data transfer method"?  Given the error, probably the former.  In that case, the account used by the Data Services job server must have access to wherever SAP is putting the .DAT files.  When you run an ABAP dataflow, SAP runs the ABAP extraction code (of course) and then exports or saves the results to a .DAT file, which I believe is just a tab-delimited flat text file, in the folder "Working directory on SAP server." This is specified from the perspective of the SAP server, e.g., "E:\BODS\TX," where the E:\BODS\TX folder is local to the SAP application server. I believe this folder is specified as a directive to the ABAP code, telling SAP where to stick it (the .DAT files). The DS job server then picks it up from there, and you tell it how to get there via "Application path to the shared directory," which, in the above case, might be
    SAPDEV1\BODS\TX" if you shared-out the E:\BODS folder as "BODS" and the SAP server was SAPDEV1.  Anyway: the DS job server needs to be able to read files at
    SAPDEV1\BODS\TX, and may not have any rights to do so, especially if it's just logging-in as Local System.  That's likely your problem. In a Windows networking environment, I always have the DS job server log-in using an AD account, which then needs to be granted privileges to the, in our example's case,
    SAPDEV1\BODS\TX folder.  Also comes in handy for getting to data sources, sometimes.
    Best wishes,
    Jeff Prenevost
    Data Services Practice Manager
    itelligence

  • Create custom data object in BAM for a BPM project

    I'm working with 11g (11.1.1.3)
    I have created (via JDEV) a simple BPM process and I have inserted 3 business measurement
    I have set ( as indicated in oracle documentation and in "Getting started") in BPM project :
    project preference --> data target :
    - enable BAM cheked
    - BAM adapter JNDI name : eis/bam/soap
    - in BATCH no cheked
    - data object path : /Samples/Monitor Express
    I have defined new data object in BAM --> Architect
    I have renamed the default data object template in BI_DEFAULT_MyProject_MyProcess (is BI_DEFAULT_businessIndicator_businessIndicator)
    I have added in layout my measurement; I have inserted in the bottom METRIC_myBI1, METRIC_myBI2, METRIC_myBI3 ( are METRIC_Segnalazione METRIC_nSegnalazioni METRIC_misura) of the same type indicated in BPM process
    I have create few istance of the process, but :
    - in the BI_DEFAULT_MyProject_MyProcess content there isn't anything
    - in the default data objects ( COUNTER, INTERVAL, COMPONENT) I find the data of my process
    please help me!!
    I do not know what else to do
    Elena

    CLIENT
    GUID
    PARTNER     
    SALES_ORG
    CHANNEL
    DIVISION     
    POSTING_DATE     
    QUESTION
    ANSWER     
    ANSWER_ID
    SURVEY_ID
    Rating
    CREATED_AT
    CREATED_BY              CHANGED_AT
    CHANGED_BY
    Complete data source name as above.

  • Unsupported class version error trying to run jar file on windows machine

    Hi,
    i've written a program that connects to an access database to get its data. Created a jar file with the class files, the access database and other required files.
    works fine on my home windows computer but when i try to run it on another machine i get an error.
    here's what i write on the cmd: java -Xmx128m -jar myFile.jar
    heres the error i get:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: StartUp(Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    and so on.
    It seems like it might be quite a basic error but i'm lost, can anyone please shed some light and tell me where i'm going wrong?
    cheers in advance

    hey there, in case anyone was going to reply, i've worked it out now. couldn't work out what was wrong at first so just pulled out all my classes and put them into a brand new jar file. now use javaw -jar instead of java and it worked fine! wierd...

Maybe you are looking for

  • Calendar stuck in year view

    On my iphone 4 using ios7.02 the calendar is stuck in year view.  There are no tabs.  I can't escape.  I tried quitting and restoring the phone, that did not work.  How do I get back to the classic month view with the tabs?

  • How do you display a color palette for InDesign

    I would like to have a similar color palette displayed that is used in PhotoShop for my InDesign work.  Right now when clicking on a swatch color it brings up the rgb or cmyk sliders, but I would like to have the full color spectrum available to sele

  • Moving Ircat and Irdata to another disk

    Hi, I tried to move the catalog of my 250'000 pictures (lightroom 4.1 - Win7) to another Disk than C:/ (which is quite full) but in the catalog preferencies, it is only possible to view the path ant the location of this catalog. As I manually tried t

  • Using the result of a function, inside a subselect

    Hi! I´m wondering if it´s possible to use the result of a function inside a subselect. Let me give you an example of what I´m trying to do here: select * from t_node where node_pk in (get_node_parents_pk(22345)); The function get_node_parents_pk stan

  • Eb prefix mandatory for inbound ebMS?

    Hi, I am testing Oracle B2B 11g with an ebMS client that does not use the prefix eb for the ebMS namespace. This clients uses xmlns:ns4="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd" instead of xmlns:eb="http://www.oasis-o