Problems in the creation of strcture

hi,
      Any body can help me when i am creating the strcture i am getting the error RFC system error for destination GTADIR_SERVER. what is this error how can i overcome from this.

Try this:
Simply create an RFC connection of the name GTADIR_SERVER pointing to your system.
Call transaction SM59
Select ABAP connections and hit the create button
Enter GTADIR_SERVER as the RFC connection
Put your system name and system number (like your settings in SAP GUI) in Target Host and System Number fields
On tab Logon&Security provide client/user id/password
Hope That Helps
Anirban M.

Similar Messages

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • Problems in the creation of a MOLAP Cube with DBMS_AWM.

    I want to create a MOLAP Cube with the package DBMS_AWM. So I create the ROLAP Cube and the Dimensions with the Enterprise Manager Website, and all works perfectly. Then I executed the code to create the multidimensional dimensions and the multidimensional cube (awm dimensions/cubes), but I had some problems in the first dimension.
    This dimension has the name D_DESTIN, and has the following hierarchy:
    +DESTIN_DESC_H3
    |
    +---DESTIN_DESC_H2
    |
    +------DESTIN_DESC_H1
    |
    +---------DESTIN_DESC_H0
    The name of the hierarchy is H_D_DESTIN.
    The following code is the code that I used to create the first multidimensional dimension:
    set serveroutput on
    execute cwm2_olap_manager.set_echo_on;
    execute dbms_aw.execute ('aw create ''WTESTE''');
    execute dbms_awm.create_awdimension('EXEMPLO_OLAP', 'D_DESTIN', 'EXEMPLO_OLAP','WTESTE', 'WD_DESTIN');
    execute dbms_awm.create_awdimload_spec('D_DESTIN_LOAD', 'EXEMPLO_OLAP', 'D_DESTIN', 'FULL_LOAD');
    execute DBMS_AWM.SET_AWDIMLOAD_SPEC_PARAMETER ('D_DESTIN_LOAD','EXEMPLO_OLAP','D_DESTIN','UNIQUE_RDBMS_KEY','NO');
    execute dbms_awm.refresh_awdimension('EXEMPLO_OLAP', 'WTESTE', 'WD_DESTIN', 'D_DESTIN_LOAD');
    commit;
    execute cwm2_olap_manager.set_echo_off;
    execute cwm2_olap_manager.end_log
    When I executed the code above, I got the following error:
    PL/SQL procedure successfully completed.
    SP2-0103: Nothing in SQL buffer to run.
    PL/SQL procedure successfully completed.
    AMD-00001 created AWDimension "EXEMPLO_OLAP.WTESTE.WD_DESTIN"
    PL/SQL procedure successfully completed.
    AMD-00001 created AWDimLoad_Spec "D_DESTIN_LOAD.EXEMPLO_OLAP.D_DESTIN"
    PL/SQL procedure successfully completed.
    AMD-00002 set AWDimLoad_Spec_Parameter "D_DESTIN_LOAD.EXEMPLO_OLAP.D_DESTIN"
    UNIQUE_RDBMS_KEY to "NO"
    PL/SQL procedure successfully completed.
    ERROR Create_AWDimension. Problem refreshing dimension:
    WD_DESTIN
    Error
    Validating Dimension Mappings WD_DESTIN.DIMENSION. Key Expression
    DWH.D_DESTIN.DESTIN_KEY for Mapping Group
    WD_DESTIN.H_D_DESTIN.DESTIN_DESC_H0.DWH_D_DESTIN_WD_DESTIN_H_D_DESTIN
    DESTINDESC_H0.DIMENSIONMAPGROUP, Level WD_DESTIN.DESTIN_DESC_H0.LEVEL,
    Hierarchy WD_DESTIN.H_D_DESTIN.HIERARCHY is Incorrectly Mapped to
    RDBMS.
    (AW$XML) AW$XML
    In SYS.AWXML!__XML_HANDLE_ERROR PROGRAM:
    BEGIN dbms_awm.refresh_awdimension('EXEMPLO_OLAP', 'WTESTE',
    'WD_DESTIN', 'D_DESTIN_LOAD'); END;
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "OLAPSYS.DBMS_AWM", line 1012
    ORA-06512: at line 1
    Commit complete.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    I don’t know what is wrong. The ROLAP Cube is valid according to Oracle Enterprise Manager Website, and it is possible to consult its data with "OracleBI Spreadsheet Add-In"
    What is wrong?
    Regards,
    Rui Torres

    I executed the same code in a different user and the MOLAP Cube was created successfully.
    But, I don’t know what is the privilege/role, that permits this second user to create a MOLAP cube with the package DBMS_AWM.
    The privileges/roles of the first user are:
    ROLES
    ======
    CONNECT
    OLAP_DBA
    OLAP_USER
    OWBR_EXEMPLO_OLAP
    OWB_EXEMPLO_OLAP
    SYSTEM PRIVILEGES
    =================
    ALTER SESSION     
    CREATE ANY PROCEDURE     
    CREATE DATABASE LINK     
    CREATE DIMENSION     
    CREATE INDEXTYPE     
    CREATE MATERIALIZED VIEW     
    CREATE PROCEDURE     
    CREATE PUBLIC DATABASE LINK     
    CREATE PUBLIC SYNONYM     
    CREATE ROLE     
    CREATE SEQUENCE     
    CREATE SESSION     
    CREATE SYNONYM     
    CREATE TABLE     
    CREATE TRIGGER     
    CREATE TYPE     
    CREATE VIEW     
    DROP ANY PROCEDURE     
    DROP PUBLIC SYNONYM     
    EXECUTE ANY PROCEDURE     
    GLOBAL QUERY REWRITE     
    SELECT ANY TABLE     
    SYSDBA     
    UNLIMITED TABLESPACE
    OBJECTS PRIVILEGES
    ==================
    Object      Privilege     |Schema |Object     
    =======================================================
    SELECT               |SYS     |DBA_ROLE_PRIVS     
    EXECUTE               |SYS     |DBMS_LOCK     
    SELECT               |SYS     |DBMS_LOCK_ALLOCATED     
    EXECUTE               |SYS     |DBMS_OBFUSCATION_TOOLKIT     
    EXECUTE               |SYS     |DBMS_SNAPSHOT     
    SELECT               |SYS     |V_$LOCK     
    SELECT               |SYS     |V_$MYSTAT     
    SELECT               |SYS     |V_$SESSION     
    SELECT               |SYS     |V_$SYSTEM_PARAMETER
    The privileges/roles of the second user are:
    ROLES
    ======
    AQ_ADMINISTRATOR_ROLE          
    DBA          
    MGMT_USER
    SYSTEM PRIVILEGES
    =================
    CREATE MATERIALIZED VIEW     
    CREATE TABLE     
    GLOBAL QUERY REWRITE     
    SELECT ANY TABLE     
    UNLIMITED TABLESPACE
    OBJECTS PRIVILEGES
    ==================
    Object Privilege     |Schema     |Object     
    =============================================
    EXECUTE               |SYS     |DBMS_ALERT     
    EXECUTE               |SYS     |DBMS_AQ     
    EXECUTE               |SYS     |DBMS_AQADM     
    EXECUTE               |SYS     |DBMS_AQELM     
    EXECUTE               |SYS     |DBMS_AQ_IMPORT_INTERNAL     
    EXECUTE               |SYS     |DBMS_DEFER_IMPORT_INTERNAL     
    EXECUTE               |SYS     |DBMS_REPCAT     
    EXECUTE               |SYS     |DBMS_RULE_EXIMP     
    EXECUTE               |SYS     |DBMS_SYS_ERROR     
    EXECUTE               |SYS     |DBMS_TRANSFORM_EXIMP     
    ALTER               |SYS     |INCEXP     
    DEBUG               |SYS     |INCEXP     
    DELETE               |SYS     |INCEXP     
    FLASHBACK          |SYS     |INCEXP     
    INDEX               |SYS     |INCEXP     
    INSERT               |SYS     |INCEXP     
    ON COMMIT REFRESH     |SYS     |INCEXP     
    QUERY REWRITE          |SYS     |INCEXP     
    REFERENCES          |SYS     |INCEXP     
    SELECT               |SYS     |INCEXP     
    UPDATE               |SYS     |INCEXP     
    ALTER               |SYS     |INCFIL     
    DEBUG               |SYS     |INCFIL     
    DELETE               |SYS     |INCFIL     
    FLASHBACK          |SYS     |INCFIL
    Which privilege/role permits the second user to create a MOLAP cube?
    Regards,
    Rui Torres

  • Problem with the creation of the _pageflow folder in the portal project

    Hi,
    I have developed one portal project on the BEA Weblogic Portal server version 9.2. And I am having a quite a number of pageflow portlets in my application.I am facing a weird problem with the workshop(BEA Workshop for Weblogic Platform 9.2.1). It is not generating the folder _pageflow required for all the protlets when we build it.I tried cleaning and building it number of times but it is of no use.
    Is it a bug in the weblogic server version or do I really miss something in the workshop settings?
    Please help.
    Thanks & Regards
    Prakash.

    Hi Dmitry,
    What state are the tasks in?  Are they in Active, Running, or Completed?  There will only be output files if the tasks are in state running or completed.
    Additionally, what is the status of the pool which the tasks ran on?  If the pool VMs have been deallocated (or the pool itself has been deleted) then the task files will be lost.  This is because the files of the tasks reside on the VM which ran
    the task.
    Lastly, you can check the file retention time of the tasks in the BatchExplorer UI by selecting the task and looking in the "Task Details" tab for "TaskConstriants.RetentionTime" to see what that is set to - if the retention time has
    passed (i.e. retention time was 1h but the task was run 2h ago), then the files will be cleaned up.
    It sounds like you already are using BatchExplorer, but we recently published a blog post which has some specific instructions for using BatchExplorer to debug (how to RDP into a VM for example), which you can find
    here - it also has some code snippets for how BatchExplorer performs the operations that it does.
    Let us know what you find from your investigation and we can help you figure out why your tasks don't have output files.

  • Index problem during the creation of a new partition

    We have a range partitioned table, with a local spatial index on each partition. While trying to use the alter table command to add a new partition we get the following errors.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in R-tree: [mdrcritbl]
    ORA-13231: failed to create index table [MDRT_D789CC$] during R-tree
    creation
    ORA-29400: data cartridge error
    ORA-01031: insufficient privileges
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    ORA-06512: at "LPDAACECS_PART.UPDATE_METADATA", line 1937
    ORA-06512: at "LPDAACECS_PART.UPDATE_METADATA", line 3625
    ORA-06512: at line 1

    I just wanted to expand on this for the sake of others who may need a bit more detail, having just resolved my similar problem.
    In Oracle Enterprise Manager, in the left-hand tree view, expand Security then Users inside the relevant Databases entry.
    Then select the name of the user/schema which needs to be able to perform the required task (in my case, create a spatial index from within a stored procedure).
    On the System tab in the right-hand pane, highlight
    Create Any Table
    Create Any Sequence
    Create Any Index
    (depending on the task that needs to be performed)
    Click the arrow to move these items into the "Granted" area. Click apply and your prayers have been answered. Mine were, anyway!
    Regards
    Stuart

  • Problem with the creation of asset master record

    Hi Gurus,
    i am having problem in creation of a new asset master with the use of existing man asset number and different asset sub number. I am trying to create the asset in the same company code but different depriciation area, but the system is not allowing me to do that. Is there a setting in the SPRO by which I can allow the use of creation of the asset number by using the already existing asset number with the new asset sub number. This is actually happening in the system for one type of equipments but not for other.
    Can any one tell me what settings are to be made to allow this for all containers.
    Thanks in advance
    Anoop Sharma

    Hi,
    A sub asset master can be created with AS11 only.
    You cannot create a asset sub number under a main asset number, in the case, where different set of dep areas needs to be maintained.
    When you create a sub asset, all the dep areas will be copied to sub asset's master from main asset master. Since this set of dep areas cannot be different from main asset to sub asset.
    Hopw you understood this.
    Thanks,
    Srinu.

  • Problem in the creation of rfc function module

    hi,
                I am creating one rfc function module comparing to standard non-rfc function module. In that one i have one export parameter with the standard strcture type. but this stcture component contains with strcture type. among all these components four fields are common. but when i am trying to activate function module it is giving message you cannot use internal tables, strings,references, or strctures as components. that function module name is BAL_FILTER_CREATE and that export parameter name is that export parameter name is E_S_LOG_FILTER that associated type is BAL_S_LFIL. how can i solve the problem. pls give me solution as soon as possible.

    hi,
    for rfc fm's u should enable the call by value check box which will appear on that of import and export parameters. tick that one for each parameter in rfc and activate.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Problems with the creation of a new domain using JCAPS6

    Hello again,
    I created a new domain, in addition to default domain1, with JCaps 6, following the steps in this link:
    http://blogs.sun.com/polyblog/entry/creating_a_new_caps_6
    I arrived to the step 4 of the procedure "install runtime installation" and I adapted install.xml file also (not only the install.properties), with the correct values concerning domainName and port.
    When I run the ant-command then, I always get the following error:
    C:\JavaCAPS6\appserver\bin>asant -f C:\JavaCAPS6\appserver\addons\caps\install.xml
    Buildfile: C:\JavaCAPS6\appserver\addons\caps\install.xml
    install:
    install:
    [sun-appserv-admin] Executing: list-lifecycle-modules port 19048 host localhost passwordfile "C:\JavaCAPS6\appserver\addons\caps\install.properties"  user admin server
    BUILD FAILED
    C:\JavaCAPS6\appserver\addons\caps\install.xml:86: The following error occurred while executing this line:
    C:\JavaCAPS6\appserver\addons\caps\applicationVerifier\server-init.xml:41: An exception occurred while running the command. The exception message is: CLI137 Command list-lifecycle-modules failed..
    Total time: 1 seconds
    How can i do to solve this problem?
    Thanx
    Edited by: fabrigas84 on Sep 3, 2009 8:36 AM

    Hai!
    Raise a message in sap support portal.
    Regards,
    Thanga Raj.K

  • Problems in the creation of a measure folder

    I tried to create a measure folder with CWM2_OLAP_CATALOG package, but I got some errors when I tried to add a measure to a measure folder. The procedures that I executed to do this are:
    SQL> execute CWM2_OLAP_CATALOG.CREATE_CATALOG('test','this is a test');
    AMD-00001 created Catalog "TEST"
    PL/SQL procedure successfully completed.
    SQL> execute CWM2_OLAP_CATALOG.ADD_CATALOG_ENTITY('test','DWH_OLAP','F_REVENTS_10MINUTE_2','events');
    AMD-00100 not found: Cube "DWH_OLAP.F_REVENTS_10MINUTE_2"
    BEGIN CWM2_OLAP_CATALOG.ADD_CATALOG_ENTITY('test','DWH_OLAP','F_REVENTS_10MINUTE_2','events'); END;
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "OLAPSYS.CWM2_OLAP_UTILITY", line 1809
    ORA-01403: no data found
    ORA-06512: at "OLAPSYS.CWM2_OLAP_CATALOG", line 337
    ORA-06512: at "OLAPSYS.CWM2_OLAP_CATALOG", line 364
    ORA-06512: at line 1
    The database tells that the cube F_REVENTS_10MINUTE_2 doesn’t exist, but in the reality it exists.
    To be sure that the cube exists, I executed the following select that shows the database’s cubes:
    SQL> select owner,cube_name from all_olap2_cubes;
    OWNER
    CUBE_NAME
    DWH_OLAP
    F_REVENTS_10MINUTE_2
    The version of the database is 10.2.0.1.0.
    How can I resolve this problem? It is very important!!!
    Regards,
    Rui Torres

    you must check also that the cube is valid, and it has complete metadata for OLAP - try using OEM.
    Flavio

  • Problem in the creation of a new toolbar

    I had offered you this problem earlier when the beta version of the browser experience, the problem is that the browser does not save the toolbar do I created after the close of the browser, where when you re-open the browser the toolbar that you created is not established.
    This version of the browser fourth final, is still the problem persists, so that when you do upgrade to a browser from version 3.6 to version 4.0 did not keep me Toolbar, which it opened.
    Note that the version which is used by the Arabic version.
    Excuse my language weakness.

    Hai!
    Raise a message in sap support portal.
    Regards,
    Thanga Raj.K

  • Problem with the creation of the date server with the technology Mysql

    Hi,
    I have installed date integrator 11.1.1.5.
    I have installed oracle database 11.2
    I have installed mysql 5.1.41 with xamp
    I have created the repository master and work.
    I have created data server for oracle .
    ok all correct
    I have created the date server for mysql but I cannot insert the data for jdbc (why ? where insert data ?) when except it creates me the date server.
    but when I try to add a physical schema me from this error and I don't see the list of the schema.
    java.lang.NoClassDefFoundError: bsh/EvalError
         at com.sunopsis.jdbc.driver.JavaDriver.connect(JavaDriver.java:80)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:409)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:385)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:352)
         at oracle.odi.jdbc.datasource.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:331)
         at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ConnectionProcessor.run(LoginTimeoutDatasourceAdapter.java:217)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    how can I resolve my problem?
    thank you for help and cooperation.
    gabriele

    Hi,
    A sub asset master can be created with AS11 only.
    You cannot create a asset sub number under a main asset number, in the case, where different set of dep areas needs to be maintained.
    When you create a sub asset, all the dep areas will be copied to sub asset's master from main asset master. Since this set of dep areas cannot be different from main asset to sub asset.
    Hopw you understood this.
    Thanks,
    Srinu.

  • Problem regarding the creation of sales order using bapi.

    Hai all,
    I am creating sales order using bapi but i am, get following error messages :
    TYPE ID  NUMBER MESSAGE
    E       VP   112       Please enter sold-to party or ship-to party
    E       V4   219       Sales document  was not changed
    I have entered all the parameters.
    my program is as follows :
    *& Report  ZSD_SALES_ORDER
    REPORT  ZSD_SALES_ORDER.
        Tables
    *table definitions
    TABLES:vbak,      "Sales Document: Header Data
            knvv,     "Customer Master Sales Data
            mara,     "General Material Data
            t001l,    "Plants/Branches
            mvke,     "Sales Data for Material
            vbap,     "Sales Document: Item Data
            konv.     "Conditions (Transaction Data)
        Types
    *type for upload data
    TYPES :BEGIN OF ty_upload,
           matnr(20) TYPE c,                  " Old material number
           quantity(20) TYPE c,               " Cumulative order quantity in sales units
    VALUE TYPE       BAPIKWERT1,
          value(20) TYPE c,                  " Condition value
                 value TYPE konv-kwert,                  " Condition value
    END OF ty_upload.
    *type for final output table
    TYPES :BEGIN OF ty_main,
               bismt  TYPE mara-bismt,    "Old material number
               matnr  TYPE vbap-matnr,    "Material Number
               kunnr  TYPE vbak-kunnr,    "customer number
               auart  TYPE vbak-auart,    "Sales Document Type
               vkorg  TYPE vbak-vkorg,    "Sales Organization
               vtweg  TYPE vbak-vtweg,    "Distribution Channel
               spart  TYPE vbak-spart,    "Division
               vbeln  TYPE vbak-vbeln,    "Sales document
               werks  TYPE marc-werks,    " Plant
               lgort  TYPE mard-lgort,    "Storage Location
               posnr  TYPE vbap-posnr,    "Sales Document Item
               parvw  TYPE vbpa-parvw,    "Partner function
               kwmeng TYPE vbap-kwmeng,   "Cumulative order quantity in sales units
               kschl  TYPE konv-kschl,    "Condition type
              kwert  TYPE konv-kwert,    "Condition value
    KWERT TYPE       BAPIKWERT1,
              kwert(20)  TYPE c,    "Condition value
               waers  TYPE konv-waers,    "Currency
         END OF ty_main.
    *type for old material number
    TYPES: BEGIN OF ty_matnr,
           matnr TYPE mara-matnr,
           bismt TYPE mara-bismt,
           END OF ty_matnr.
    *type for order number
    TYPES :BEGIN OF ty_output,
           vbeln  TYPE vbak-vbeln,       "Sales Document
         END OF ty_output.
        Constants                Begin with C_                           *
    CONSTANTS:
    c_zpmu(4) TYPE c VALUE 'ZPMU',
    c_zpmm(4) TYPE c VALUE 'ZPMM'.
    DATA: c_ch(1) TYPE c VALUE 'X'.
        Data                     Begin with W_                           *
    *global data for validations
    DATA: w_count TYPE i,
          w_vkorg TYPE vbak-vkorg,
          w_vtweg TYPE vbak-vtweg,
          w_spart TYPE vbak-spart,
          w_werks TYPE t001l-werks,
          w_check TYPE c,
          w_itemno TYPE posnr_va,
         W_COND TYPE C.
          w_cond(3) TYPE c.
        Internal tables          Begin with IT_                          *
    *internal table definitions
    DATA : it_upload TYPE STANDARD TABLE OF ty_upload ,
           wa_upload TYPE ty_upload.
    DATA : it_main TYPE STANDARD TABLE OF ty_main,
           wa_main TYPE ty_main.
    DATA: it_matnr TYPE STANDARD TABLE OF ty_matnr,
          wa_matnr TYPE ty_matnr.
    DATA : it_output TYPE STANDARD TABLE OF ty_output.
    Internal table for BAPI.
    DATA: it_bapisdhd1  TYPE STANDARD TABLE OF bapisdhd1,        "Sales and Distribution Document Header
          wa_bapisdhd1 TYPE bapisdhd1.
    DATA: it_bapisditm  TYPE STANDARD TABLE OF bapisditm ,       "Sales and Distribution Document Item
          wa_bapisditm TYPE bapisditm.
    DATA: it_bapiparnr  TYPE STANDARD TABLE OF bapiparnr,        "SD Document Partner: WWW
          wa_bapiparnr TYPE bapiparnr.
    DATA: it_bapischdl  TYPE STANDARD TABLE OF bapischdl,       "Schedule Lines
          wa_bapischdl TYPE bapischdl.
    DATA: it_bapicond TYPE STANDARD TABLE OF bapicond,       "Communication Fields for Maintaining Conditions in the Order
          wa_bapicond TYPE bapicond.
    DATA: it_bapiret2 TYPE STANDARD TABLE OF bapiret2,        "Return Parameter
          wa_bapiret2 TYPE bapiret2.
          Parameters              Begin with PR_                        *
    *selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME .
    PARAMETERS: pr_vkorg TYPE vbak-vkorg OBLIGATORY,
                pr_vtweg TYPE vbak-vtweg  OBLIGATORY,
                pr_spart TYPE vbak-spart  OBLIGATORY,
                pr_kunnr TYPE kna1-kunnr  OBLIGATORY,
                pr_werks TYPE marc-werks  OBLIGATORY,
                pr_lgort TYPE mard-lgort  OBLIGATORY.
    PARAMETERS: pr_auart TYPE vbak-auart OBLIGATORY,
               PR_AUGRU TYPE VBAK-AUGRU OBLIGATORY.
                            pr_augru TYPE vbak-augru.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME.
    PARAMETERS : pr_file TYPE ibipparms-path OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk2.
          At selection-screen                                           *
    AT SELECTION-SCREEN.
      PERFORM f006_validate_vkorg.
      PERFORM f007_validate_vtweg.
      PERFORM f008_validate_spart.
      PERFORM f009_validate_kunnr.
      PERFORM f010_validate_werks.
      PERFORM f011_validate_lgort.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_file.
    *for f4 help----
      PERFORM f003_f4_help.
          S T A R T   O F   S E L E C T I O N                           *
    START-OF-SELECTION.
    *for material ,quantity and value upload
      PERFORM f001_upload_file.
    *get data
      PERFORM  f003_get_data.
    *for check the data
      PERFORM f002_check_data .
      PERFORM f004_process.
    *for posting
      PERFORM f005_posting.
    END-OF-SELECTION.
          E N D       O F   S E L E C T I O N                           *
    *&      Form  f001_upload_file
          upload file
    FORM f001_upload_file .
      DATA : lw_fname TYPE string.
      CLEAR lw_fname.
      lw_fname = pr_file.
      REFRESH it_upload.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = lw_fname
          filetype                = 'ASC'
          has_field_separator     = c_ch
        TABLES
          data_tab                = it_upload
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT it_upload INTO wa_upload.
       wa_upload-value = ( wa_upload-value ) / 10.
       MODIFY it_upload FROM wa_upload.
      ENDLOOP.
    ENDFORM.                    "F001_UPLOAD_FILE
    *&      Form  f003_f4_help
          f4 help
    FORM f003_f4_help .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = pr_file.
    ENDFORM.                    " f003_f4_help
    *&      Form  check_data
          text
    FORM f002_check_data .
      DATA: lw_lines TYPE i.
      DESCRIBE TABLE it_main LINES lw_lines.
      IF lw_lines LE 0.
        RETURN.
      ENDIF.
      SELECT a~matnr
             a~bismt FROM mara AS a INNER JOIN mvke AS b
                   ON amatnr = bmatnr
                   INTO CORRESPONDING FIELDS OF TABLE it_matnr
                   FOR ALL ENTRIES IN it_main
                   WHERE a~bismt = it_main-bismt.
      IF sy-subrc = 0.
        LOOP AT it_main INTO wa_main.
          CLEAR : wa_matnr.
          READ TABLE it_matnr INTO wa_matnr WITH KEY bismt = wa_main-bismt.
          IF sy-subrc = 0.
            MOVE: wa_matnr-matnr TO wa_main-matnr.
          ENDIF.
          MODIFY it_main FROM wa_main TRANSPORTING matnr WHERE bismt = wa_main-bismt.
        ENDLOOP.
      ELSE.
       MESSAGE e000(zmsd) WITH  text-001.
      ENDIF.
    ENDFORM.                    "CHECK_DATA
    *&      Form  F009_validate_vkorg
          text
    FORM f006_validate_vkorg .
      CLEAR w_vkorg.
      SELECT SINGLE vkorg
          INTO w_vkorg FROM tvko
          WHERE vkorg EQ pr_vkorg.
      IF sy-subrc <> 0.
        MESSAGE e000(zmsd) WITH text-012 pr_vkorg.
      ENDIF.
    ENDFORM.                    " F009_validate_vkorg
    *&      Form  f007_validate_vtweg
          text
    FORM f007_validate_vtweg .
      CLEAR:w_vtweg.
      SELECT SINGLE vtweg
           INTO w_vtweg FROM tvtw
           WHERE vtweg EQ pr_vtweg.
      IF sy-subrc <> 0.
        MESSAGE e089(zmsd).
      ENDIF.
    ENDFORM.                    " f007_validate_vtweg
    *&      Form  f008_validate_spart
          text
    FORM f008_validate_spart .
      CLEAR:w_spart.
      SELECT SINGLE spart
            INTO w_spart FROM tspa
            WHERE spart EQ pr_spart.
      IF sy-subrc <> 0.
        MESSAGE e087(zmsd).
      ENDIF.
    ENDFORM.                    " f008_validate_spart
    *&      Form  F010_validate_kunnr
          text
    FORM f009_validate_kunnr .
      DATA: l_kunnr TYPE kunnr.
      CLEAR: w_vkorg, w_vtweg,w_spart.
      SELECT  SINGLE  kunnr FROM  knvv
             INTO l_kunnr
             WHERE  kunnr  = pr_kunnr
             AND    vkorg  = pr_vkorg
             AND    vtweg  = pr_vtweg
             AND    spart  = pr_spart.
      IF sy-subrc <> 0.
       MESSAGE e000(zmsd) WITH text-010 pr_kunnr text-011 pr_vkorg  .
      ENDIF.
    ENDFORM.                    " F010_validate_kunnr
    *&      Form  f010_validate_werks
          text
    FORM f010_validate_werks .
      CLEAR:w_werks.
      SELECT SINGLE werks
            INTO w_werks FROM t001w
            WHERE werks EQ pr_werks.
      IF sy-subrc <> 0.
        MESSAGE e088(zmsd).
      ENDIF.
    ENDFORM.                    " f010_validate_werks
    *&      Form  F011_validate_lgort
          text
    FORM f011_validate_lgort .
      CLEAR:w_werks .
      SELECT   SINGLE werks  FROM  t001l
             INTO w_werks
             WHERE  werks  = pr_werks
             AND    lgort  = pr_lgort.
      IF sy-subrc <> 0.
        MESSAGE e000(zmsd) WITH text-007 pr_lgort text-008 pr_werks .
      ENDIF.
    ENDFORM.                    " F011_validate_lgort
    *&      Form  f003_get_data
          text
    FORM f003_get_data .
      CLEAR wa_main.
      REFRESH it_main.
      LOOP AT it_upload INTO wa_upload.
        CLEAR : wa_main.
        MOVE: wa_upload-matnr     TO  wa_main-bismt,
              wa_upload-quantity  TO  wa_main-kwmeng,
              wa_upload-value     TO  wa_main-kwert,
              pr_vkorg            TO  wa_main-vkorg,
              pr_vtweg            TO  wa_main-vtweg,
              pr_spart            TO  wa_main-spart,
              pr_kunnr            TO  wa_main-kunnr,
              pr_werks            TO  wa_main-werks,
              pr_lgort            TO  wa_main-lgort.
        APPEND wa_main TO it_main.
      ENDLOOP.
    ENDFORM.                    " f003_get_data
    *&      Form  f004_process
          text
    FORM f004_process .
    CLEAR w_check.
    LOOP AT it_main INTO wa_main.
       IF wa_main-matnr = ''.
         WRITE:/ text-006,
                     wa_main-bismt.
         w_check = 1.
       ENDIF.
       IF wa_main-kwmeng = 0.
         WRITE:/ text-005,
                 wa_main-bismt.
         w_check = 1.
       ENDIF.
       IF    pr_auart <> 'ZM01'.
         IF wa_main-kwert IS INITIAL.
           WRITE:/ text-004,
                    wa_main-bismt.
           w_check = 1.
         ENDIF.
       ENDIF.
    ENDLOOP.
    ENDFORM.                    " f004_process
    *&      Form  f005_posting
          text
    FORM f005_posting .
      CLEAR: w_itemno,
             w_cond.
      w_itemno = 10.
      w_cond = 1.
    IF w_check = '' OR w_check = 1.
      wa_bapisdhd1-doc_type = pr_auart.
      wa_bapisdhd1-ord_reason = pr_augru.
      LOOP AT it_main INTO wa_main.
        IF w_cond = 1.
          CLEAR: it_bapiret2,
                 it_bapisditm,
                 it_bapiparnr,
                 it_bapischdl,
                 it_bapicond.
          REFRESH:it_bapiret2,
                  it_bapisditm,
                  it_bapiparnr,
                  it_bapischdl,
                  it_bapicond.
          MOVE: wa_main-vkorg TO wa_bapisdhd1-sales_org,
                wa_main-vtweg TO wa_bapisdhd1-distr_chan,
                wa_main-spart TO wa_bapisdhd1-division.
          wa_bapisdhd1-wbs_eleM = 'Y561.1'.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              INPUT         = pr_kunnr
           IMPORTING
             OUTPUT        = pr_kunnr.
          wa_bapisdhd1-PURCH_NO_S = pr_kunnr.
          wa_bapisdhd1-PURCH_NO_C = pr_kunnr.
        ENDIF.
        MOVE: w_itemno TO wa_bapisditm-itm_number,
               wa_main-matnr TO wa_bapisditm-material,
              wa_main-BISMT TO wa_bapisditm-material,
              wa_main-werks TO wa_bapisditm-plant,
              wa_main-lgort TO wa_bapisditm-store_loc.
                           wa_bapisditm-target_qty = '10'.
        wa_bapisditm-PURCH_NO_S = pr_kunnr.
        wa_bapisditm-PURCH_NO_C = pr_kunnr.
        APPEND wa_bapisditm TO it_bapisditm.
        IF w_cond = 1.
          wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-itm_number = 10.
            wa_bapiparnr-partn_role = 'SP'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          wa_bapiparnr-partn_role = 'AG'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'RE'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'RG'.
          APPEND wa_bapiparnr TO it_bapiparnr.
          CLEAR wa_bapiparnr-partn_role.
                   wa_bapiparnr-partn_numb = pr_kunnr.
          wa_bapiparnr-partn_role = 'WE'.
          APPEND wa_bapiparnr TO it_bapiparnr.
        ENDIF.
        wa_bapischdl-itm_number = w_itemno.
        wa_bapischdl-req_qty    = wa_main-kwmeng.
         wa_bapischdl-PURCH_NO_S = pr_kunnr.
        APPEND wa_bapischdl TO it_bapischdl.
        wa_bapicond-itm_number = w_itemno.
        wa_bapicond-cond_type  = 'ZECL'.
         IF    ( wa_bapisdhd1-doc_type = 'ZPMU' ) OR ( wa_bapisdhd1-doc_type = 'ZPMM' ).
           wa_bapicond-cond_type  = 'ZVAL'.
         ELSE.
           wa_bapicond-cond_type  = 'ZMRP'.       "+PK12122006
         ENDIF.
        wa_bapicond-cond_value = wa_main-kwert.
        APPEND wa_bapicond TO it_bapicond.
        w_itemno = w_itemno + 10.
        w_cond   = w_cond + 1.
      ENDLOOP.
      data : SALESDOCUMENTIN like BAPIVBELN-VBELN.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
          order_header_in     = wa_bapisdhd1
        IMPORTING
          salesdocument       = SALESDOCUMENTIN
        TABLES
          return              = it_bapiret2
          order_items_in      = it_bapisditm
          order_partners      = it_bapiparnr
          order_schedules_in  = it_bapischdl
          order_conditions_in = it_bapicond.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_ch.
    ENDIF.
      LOOP AT it_bapiret2 INTO wa_bapiret2.
        DATA : w_err(100) TYPE c,
        w_matnr TYPE matnr.
        IF wa_bapiret2-type = 'E' AND wa_bapiret2-id = 'V1' AND wa_bapiret2-number = 392.
          UNPACK wa_bapiret2-message_v1 TO w_matnr.
          READ TABLE it_matnr INTO wa_matnr WITH KEY matnr = w_matnr.
          IF sy-subrc EQ 0.
            CONCATENATE text-013 wa_matnr-bismt INTO w_err SEPARATED BY space.
            MESSAGE w_err TYPE 'S'.
          ENDIF.
        ENDIF.
        IF WA_BAPIRET2-TYPE = 'S'.  " Comment
          WRITE: 40 TEXT-009, WA_BAPIRET2-MESSAGE_V2+0(10).
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " f005_posting
    I have given all the necessary parameters. it is telling that error is in parameter
    sales_header_in.
    I have checked it.
    i have assigned purch_no_s and purch_no_c of the structure BAPISDHD1(ORDER_HEADER_IN)
    in the bapi with customer number.
    and also i have assigned the partnumber of the structure BAPIPARNR ORDER_PARTNERS
    in the bapi with customer number.
    but still , it is diplaying the error message, please enter the sold to or ship to party number.
    how to resolve this error.
    this is urgent requirement.
    points will be awarded.
    thanking u in advance,
    a.srinivas.

    Hi,
    Did u have a look at the standard programs which make use of BAPI_SALESORDER_CREATEFROMDAT1
    Heres a list...
    LWSSOU08                     
    MV45WF0S                     
    MWWMJF21_BAPI_SALESORDER_CREAT
    RBUS2032                    
    Regards,
    Tanveer.
    <b>Please mark helpful answers</b>

  • Problem with the creation of a new user

    Hi!
    II want to create new user in the database but i have this message: this entry already exists in the following tables (CUMI).
    This user doesn't exists and we haven't deleted users.
    When I am going to see in the table OUSR I have 19 users
    But when I am going to see the table CUMI, it recognises an user code 20!
    when I use the orange arrow near the user code 20, nothing happens.
    SAP 2005 A PL 46
    How can i do?
    Thank you
    Séverine

    Hai!
    Raise a message in sap support portal.
    Regards,
    Thanga Raj.K

  • Checks on vendors during the creation of PO with ME21N

    Hi all,
    i have this problem:
    during the creation of a Purchase Order, for some types of them i have to bypass some checks that are made by standard on the Vendor.
    Is it possibile to do? if it is, how can i do it?
    Thanks
    Lello

    Hi
    If they are standard controls, probably it'll mean to change the standard program: if your SAP release is ECC 6.00 u can try to use the Implicit Enhancement in order to change the standard else u need to register the standard to OSS in order to get the access key for modification.
    Max

  • Problem in the configuration of debit memo issue with manual entry of freight

    Dear Seniors, i am facing an problem in the creation of a debit memo, i want to generate the debit memo with reference to billing but the entry of freight would be manual, but while doing this it will also took the billing material prices to and the debit memo prices becomes double, so please tell me the solution for this, how could i configure this

    Hi
    Besides what Lakshmipathi Sir has said, what is your pricing procedure for billing document and debit memo request? Is it same or different? What is there in copy control from billing document to credit memo request? Have you done some efforts before posting here? If yes please elaborate and share the information I asked for. It will help to analyze and suggest some solution.
    Thank$

Maybe you are looking for

  • Issue with At selection-screen output

    Hi,   I tried in SDn to find suitable thread atlast i am creating query here. My requirement is: i have two radiobuttons. when i click first radiobutton it hasto show one selection screen it contains pernr and bukrs when i click second radiobutton it

  • Why CollabSuite 2 do not have Forum app Feature

    Why CollabSuite 2 do not have Forum app Features? How to integrate the LDAP? Can Web conferencing now to use Netcape, Mozilla, Opera? Thanks for the help. [email protected]

  • Download Server Connection Error

    I tried updating my desktop skype because it was being cruddy, but the updates wouldn't go through because of a "download server connection error." My friend suggested that I delete my old skype and reinstall it, but when I tried to do so, the same m

  • SQL exec OK, but trying to put in PLSQL proc gives "insufficient privs" err

    Oracle 9201 User: ABC I have an SQL: SELECT * FROM xyz.TableName; It runs fine under ABC user. Now I try to make a Stored Procedure: PROCEDURE TEST(   O_CURSOR OUT SYS_REFCURSOR ) IS  BEGIN   OPEN o_cursor FOR SELECT * FROM xyz.TableName; END TEST;Er

  • Can't recover database - ORA-0610

    Oracle 11g Win 2008 Can't recover database after db crashed last night. Database dismounted. ORACLE instance shut down. SQL> connect sys/sys as sysdba Connected to an idle instance. SQL> startup; ORACLE instance started. Total System Global Area 6847