Problem creating a dynpro with TabStrip Screen

Hi experts
I need to add one screen to one report wich has 4 screens, when I tried to copy one of them, everything is ok, but on Attributes the "selection screen" radiobutton is not active, how can I activate it?
to make changes on report and everything works fine.
Thanks in advance.
Regards
mgg

Thanks Rengith for answering
I included these lines after previously lines:
SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
PARAMETERS: p_rad51   RADIOBUTTON GROUP rd05 USER-COMMAND a DEFAULT 'X',
            p_rad52   RADIOBUTTON GROUP rd05,
SELECTION-SCREEN END OF SCREEN 500.
But when I copied screen 400 to 500 is copied as a sub-screen, how can I do to insert an screen as a module pool screen?
Thanks in advance
mgg

Similar Messages

  • Problem creating process order with ref of sale order

    Dear all,
    Kindly give solution for this scenerio..............................
    I am creating Process Order with ref of sale order manually in cor1. In the COR1 screen copy from field i gave my ref sale order, so that particualr order and batch is assigned to that order only.
    My problem was suppose if sale order is created for 10 tonns, but my batch size and resource capacity is 2 tonns only. so first time i change my batch quantity 2 tonns instead of 10 tonns and created my order and confirmed.
    if i go to second time the same process i am doing creating process order with ref of same sale order but it comes again 10 tonns instead of 8 tonns. why it comes like this already i confirmed 2 tonns in this sale order?
    my requirement is if any process order is created with ref of any sale order and again if i am creating any process order with ref of same sale order left quantity only system should show.
    for this what i have to do kindly help to this
    regards,
    s.sakthivel

    Dear KK,
    Pls check whether ZKIN, ZKQT, ZKOR have all the properties similar to IN, QT, OR respectively. If they are different, please ensure that you know the reason why they are different. This check has to be done at tcode VOV8
    Some fields like sales document category, Transaction group, screen seq group, Doc pricing procedure need to be similar to the parent document unless you know why you have changed them.
    Once this check is done, check the copy controls in VTAA. Before that try creating these documents separately without reference. This shoudl work fine only after which you need to check copy control. If this is not working fine, then there is some problem with the document type settings in VOV8. Testing this is possible only if Reference mandatory field is left empty. Make sure that is properly configured.
    Once this is done, check copy controls in VTAA. You can just copy the copycontrol between IN and QT and QT and OR and create for ZKIN to ZKQT and ZKQT to ZKOR.
    Once this is done, check whether your item category settings are properly done , also the schedule line settings. The tcodes are VOV7, VOV6, VOV4, VOV5 etc.
    Now check whether your material master and customer master are consistent with the item category settings(Item category group).
    Now create the transaction. It shoudl work fine.
    Reward if this helps.

  • Problem creating Allocation Table with Reference to a PO

    Dear Folks,
    I am having problems creating an allocation table with reference to a PO in T-code WA01.
    I read the SAP help that some prerequisites need to exist:
    ==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
    Can anyone advice me where to find this stock split indicator?
    Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
    Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
    Thanks and Regards
    Junwen

    Any idea please?
    thanks

  • Problem creating a table with a subquery and a dblink

    Hello!!
    I have a little problem. When I create a table with a subquery and a dblink, for example:
    CREATE TABLE EXAMPLE2 AS SELECT * FROM EXAMPLE1@DBLINK
    the table definition is changed. Fields with a type of CHAR or VARCHAR2 are created with a size three times bigger than the original table in the remote database. Field of type DATE and NUMBER are not changed. For example if the original table, in the database 1, has a field of type CHAR(1) it is create in the local database with a type of CHAR(3), and a VARCHAR2(5) field is created with VARCHAR2(15).
    Database 1 has a WE8DEC character set.
    Database 2 has a AL32UTF8 character set.
    Could it be related to the difference in character sets?
    What can I do to make Oracle use the same table definition when creating a table in this way?
    Thanks!!

    That is related to character sets, and probably necessary if you want all the data in the remote table to be able to fit in the new table.
    When you declare a column VARCHAR2(5), by default, you're allocating 5 bytes of storage. In a single-byte character set, which I believe WE8DEC is, that also happens to equate to 5 characters. In a multi-byte character set like AL32UTF8, though, 1 character may require up to 3 bytes of storage, so you'd need to allocate 15 bytes to store that data. That's what's going on here.
    You could still store all the data if you create the table locally by explicitly requesting 5 characters of storage by declaring the column VARCHAR2(5 CHAR). You could also set the NLS_LENGTH_SEMANTICS parameter to CHAR rather than BYTE before creating the table, but I believe that both of these will only apply when you're explicitly defining columns as part of your CREATE TABLE. I don't believe either will apply to CTAS statements.
    Justin

  • Problem creating a datablock with columns from 2 tables...

    Hello guys, i have a problem in creating a datablock with columns from 2 different tables. I try to create the datalock manually and in the Query Data Source Type Property i choose FROM clause query, and in the query data source name property i type my sql statement with the columns i want to display.After that i place the items that the datablock will contain , manually from the painter. However , when i run the application, the datablock doesn't display the items from the database. Am i doing something wrong?
    Thanx in advance,
    Regards,
    Bill.

    Never mind Peter, I found the error. I forgot to make execute_query for the datablock, so this was the reason why the items weren't displayed to me.
    Thanx anyway a lot for your advices and your time you spent !

  • Problem creating Service POs with BAPI_PO_CREATE1

    Hi.
    I'm trying to create service POs with data that i read from an excel file, to do this I'm using the bapi: <b>BAPI_PO_CREATE1</b> I'm passing the following parameters:
    IMPORT:
    - poheader
    - poheaderx
    TABLES:
    - return
    - poitem
    - poitemx
    - poaccount
    - poaccountx
    - poservices
    - posrvaccessvalues
    - poservices text
    - extensionin
    When I execute the bapi, I'm getting the following messages into table return:
    <i>W - Error transferring ExtensionIn data for enhancement CI_EKKODB
    E - No instance of object type PurchaseOrder has been created. External reference:
    E - PO header data still faulty
    E - Purchase order date is in the past
    I - Change WBS Element could not be effected
    E - You cannot maintain service specs. due to incomplete transfer structure</i>
    Can anybody, please say me what am i doing wrong? How this bapi works?
    Regards.
    Gregory.

    Hello My friend
    Check this code:
    Code listing for: LZMMIUP001F01
    Description: Include LZMMIUP001F01
    ***INCLUDE LZMMIUP001F01 .
    *&      Form  fill_item
          text
         -->P_WA  text
    FORM fill_item  TABLES:  poitem STRUCTURE bapimepoitem "Item Data
                             poitemx STRUCTURE bapimepoitemx "Item Data (Change Parameter
                    USING wa STRUCTURE zlo_mmcnv009
                          package.
    item number
      poitem-po_item = wa-itemnum.
      poitemx-po_itemx = 'X'.
      poitemx-po_item = wa-itemnum.
      IF package <> ''.
        poitem-pckg_no = package.
        poitemx-pckg_no = 'X'.
      ENDIF.
    *Account Assignment Category
      IF wa-category <> ''.
        poitem-acctasscat = wa-category.
        poitemx-acctasscat = 'X'.
      ENDIF.
    *Item Category in Purchasing Document
      IF wa-itemcat <> ''.
        poitem-item_cat = wa-itemcat.
        poitemx-item_cat = 'X'.
      ENDIF.
    *Short Text
      IF wa-sortxt <> ''.
        poitem-short_text = wa-sortxt.
        poitemx-short_text = 'X'.
      ENDIF.
    *Material Number
      IF wa-material <> ''.
        poitem-material = wa-material.
        poitemx-material = 'X'.
      ENDIF.
    Unit of Measure
      IF wa-undmesure <> ''.
        poitem-po_unit = wa-undmesure.
        poitemx-po_unit = 'X'.
      ENDIF.
    *Purchase Order Quantity
      IF wa-quantity <> ''.
        poitem-quantity = wa-quantity.
        poitemx-quantity = 'X'.
      ENDIF.
    *Net Price in Purchasing Document
      IF wa-netprice <> ''.
        poitem-net_price = wa-netprice.
        poitemx-net_price = 'X'.
      ENDIF.
    *Plant
      IF wa-plant <> ''.
        poitem-plant = wa-plant.
        poitemx-plant = 'X'.
      ENDIF.
    *Material Group
      IF wa-matgrp <> ''.
        poitem-matl_group = wa-matgrp.
        poitemx-matl_group = 'X'.
      ENDIF.
    *Free Item
      IF wa-free <> ''.
        poitem-free_item = wa-free.
        poitemx-free_item = 'X'.
      ENDIF.
      APPEND poitem.
      APPEND poitemx.
    ENDFORM.                    " fill_item
    *&      Form  fill_header
          text
         -->P_WA  text
    FORM fill_header  USING wa STRUCTURE zlo_mmcnv009
                        poheader STRUCTURE bapimepoheader "Header Data
                        poheaderx STRUCTURE bapimepoheaderx. "Header Data (Change Toolbar)
      DATA: dia(2), mes(2), ano(4),
            vendor(10) TYPE n.
      dia = wa-docdate(2).
      mes = wa-docdate+2(2).
      ano = wa-docdate+4(4).
      CONCATENATE ano mes dia INTO wa-docdate.
      dia = wa-datestart(2).
      mes = wa-datestart+2(2).
      ano = wa-datestart+4(4).
      CONCATENATE ano mes dia INTO wa-datestart.
      dia = wa-datend(2).
      mes = wa-datend+2(2).
      ano = wa-datend+4(4).
      CONCATENATE ano mes dia INTO wa-datend.
    Document Type
      IF wa-doctyp <> ''.
        poheader-doc_type = wa-doctyp.
        poheaderx-doc_type = 'X'.
      ENDIF.
    vendor number
      IF  wa-vendor <>  ''.
        IF NOT ( wa-vendor CA sy-abcde ).
          vendor = wa-vendor.
          poheader-vendor = vendor.
          poheaderx-vendor = 'X'.
        ELSE.
          poheader-vendor = wa-vendor.
          poheaderx-vendor = 'X'.
        ENDIF.
      ENDIF.
    Document Date
      IF wa-docdate <> ''.
        poheader-doc_date = wa-docdate.
        poheaderx-doc_date = 'X'.
      ENDIF.
    purchasing organization
      IF wa-organiz <> ''.
        poheader-purch_org = wa-organiz.
        poheaderx-purch_org = 'X'.
      ENDIF.
    Purchasing Group
      IF wa-purgroup <> ''.
        poheader-pur_group = wa-purgroup.
        poheaderx-pur_group = 'X'.
      ENDIF.
    Start of Validity Period
      IF wa-datestart <> ''.
        poheader-vper_start = wa-datestart.
        poheaderx-vper_start = 'X'.
      ENDIF.
    End of Validity Period
      IF wa-datend <> ''.
        poheader-vper_end = wa-datend.
        poheaderx-vper_end = 'X'.
      ENDIF.
    Company Code
      IF wa-compcode <> ''.
        poheader-comp_code = wa-compcode.
        poheaderx-comp_code = 'X'.
      ENDIF.
      Status of Purchasing Document
      IF wa-status <> ''.
        poheader-status = wa-status.
        poheaderx-status =  'X'.
      ENDIF.
    ENDFORM.                    " fill_header
    *&      Form  fill_account
          text
         -->P_WA  text
    FORM fill_account  TABLES  poaccount STRUCTURE bapimepoaccount
                               poaccountx STRUCTURE bapimepoaccountx
                       USING wa STRUCTURE zlo_mmcnv009.
      DATA: account(10) TYPE n.
      poaccount-po_item = wa-itemnum.
      poaccountx-po_item = wa-itemnum.
    *Cost Centre
      poaccount-costcenter = wa-coscenter.
      poaccountx-costcenter = 'X'.
    *Order Number
      poaccount-orderid = wa-ordernumb.
      poaccountx-orderid = 'X'.
    *"G/L Account Number
      IF wa-accnumb <> ''.
        account = wa-accnumb.
        poaccount-gl_account = account."wa-accnumb.
        poaccountx-gl_account = 'X'.
      ENDIF.
      IF NOT ( wa-coscenter = '' AND
         wa-ordernumb = '' AND
         wa-accnumb = '' ).
        APPEND poaccount.
        APPEND poaccountx.
      ENDIF.
    ENDFORM.                    " fill_account
    *&      Form  fill_schedule
          text
         -->P_WA  text
    FORM fill_schedule  TABLES  poschedule STRUCTURE bapimeposchedule
                                poschedulex STRUCTURE bapimeposchedulx
                        USING wa STRUCTURE zlo_mmcnv009.
      DATA: dia(2), mes(2), ano(4).
      dia = wa-delivdate(2).
      mes = wa-delivdate+2(2).
      ano = wa-delivdate+4(4).
      CONCATENATE ano mes dia INTO wa-delivdate.
    *Delivery Date
      poschedule-po_item = wa-itemnum.
      poschedulex-po_item = wa-itemnum.
      poschedule-delivery_date = wa-delivdate.
      poschedulex-delivery_date = 'X'.
      IF NOT wa-delivdate = ''.
        APPEND poschedule.
        APPEND poschedulex.
      ENDIF.
    ENDFORM.                    " fill_schedule
    *&      Form  fill_header_contract
          text
         -->P_WA  text
         -->P_HEADER  text
         -->P_HEADERX  text
    FORM fill_header_contract  USING wa STRUCTURE zlo_mmcnv009
                                 coheader STRUCTURE bapimeoutheader
                                 coheaderx STRUCTURE bapimeoutheaderx.
      DATA: dia(2), mes(2), ano(4).
      dia = wa-datestart(2).
      mes = wa-datestart+2(2).
      ano = wa-datestart+4(4).
      CONCATENATE ano mes dia INTO wa-datestart.
      dia = wa-datend(2).
      mes = wa-datend+2(2).
      ano = wa-datend+4(4).
      CONCATENATE ano mes dia INTO wa-datend.
    Purchasing Document Date
      coheader-doc_date = sy-datum.
      coheaderx-doc_date = 'X'.
    *Item Number Interval
      coheader-item_intvl = '10'.
      coheaderx-item_intvl = 'X'.
    Currency Key
      coheader-currency = 'BHD'.
      coheaderx-currency =  'X'.
    languaje
      coheader-langu = 'EN'.
      coheaderx-langu = 'X'.
    Document Type
      IF wa-doctyp <> ''.
        coheader-doc_type = wa-doctyp.
        coheaderx-doc_type = 'X'.
      ENDIF.
    vendor number
      IF  wa-vendor <>  ''.
        coheader-vendor = wa-vendor.
        coheaderx-vendor = 'X'.
      ENDIF.
    purchasing organization
      IF wa-organiz <> ''.
        coheader-purch_org = wa-organiz.
        coheaderx-purch_org = 'X'.
      ENDIF.
    Purchasing Group
      IF wa-purgroup <> ''.
        coheader-pur_group = wa-purgroup.
        coheaderx-pur_group = 'X'.
      ENDIF.
    Start of Validity Period
      IF wa-datestart <> ''.
        coheader-vper_start = wa-datestart.
        coheaderx-vper_start = 'X'.
      ENDIF.
    End of Validity Period
      IF wa-datend <> ''.
        coheader-vper_end = wa-datend.
        coheaderx-vper_end = 'X'.
      ENDIF.
    ENDFORM.                    " fill_header_contract
    *&      Form  fill_item_contract
          text
         -->P_WA  text
         -->P_COITEM  text
         -->P_COITEMX  text
    FORM fill_item_contract  TABLES: coitem STRUCTURE bapimeoutitem
                                     coitemx STRUCTURE bapimeoutitemx
                             USING  wa STRUCTURE zlo_mmcnv009.
    item number
      coitem-item_no = wa-itemnum.
      coitemx-item_no = wa-itemnum.
      coitemx-item_nox = 'X'.
    *Material Number
      IF wa-material <> ''.
        coitem-material = wa-material.
        coitemx-material = 'X'.
      ENDIF.
    *Target Quantity
      IF wa-quantity <> ''.
        coitem-target_qty = wa-quantity.
        coitemx-target_qty = 'X'.
      ENDIF.
    *Net Price in Purchasing Document
      IF wa-netprice <> ''.
        coitem-net_price = wa-netprice.
        coitemx-net_price = 'X'.
      ENDIF.
      APPEND coitem.
      APPEND coitemx.
    ENDFORM.                    " fill_item_contract
    *&      Form  fill_service
          text
         -->P_POSERVICES  text
         -->P_T_ITEM  text
         -->P_ITEMNUM  text
    FORM fill_service  TABLES   poservices STRUCTURE bapiesllc
                                t_item STRUCTURE zlo_mmcnv009
                                poservices_2  STRUCTURE  bapiesklc
                       USING    itemnum packno.
      DATA: line(10) TYPE n,
            service(18) TYPE n,
            packno2(10) TYPE n.
      poservices-pckg_no = packno.
      packno2 = packno.
      packno = packno + 1.
      poservices-line_no = '0000000001'.
      poservices-outl_ind = 'X'.
      poservices-subpckg_no = packno.
      APPEND poservices.
      line = '0000000002'.
      LOOP AT t_item WHERE itemnum = itemnum.
        IF t_item-activity <> ''.
          IF NOT ( t_item-activity CA sy-abcde ).
            service = t_item-activity.
            poservices-service = service.
          ELSE.
            poservices-service = t_item-activity.
          ENDIF.
        ELSE.
          poservices-service = t_item-activity.
        ENDIF.
        poservices-pckg_no = packno.
        poservices-line_no = line. "itemnum.
        poservices-ext_line = t_item-line.
        poservices-quantity = t_item-quantity1.
        poservices-base_uom = t_item-undmed.
        poservices-gr_price = t_item-price.
        poservices-short_text = t_item-shortxt.
        poservices-subpckg_no = '0000000000'.
        poservices-outl_ind = ''.
        APPEND poservices.
        poservices_2-pckg_no = packno.
        poservices_2-line_no = line.
      poservices_2-SERNO_LINE =
      poservices_2-SERIAL_NO =
        poservices_2-quantity = t_item-quantity1.
        poservices_2-net_value = t_item-price.
        APPEND poservices_2.
        line = line + 1.
      ENDLOOP.
    ENDFORM.                    " fill_service
    *&      Form  fill_pocond
          text
         -->P_POCOND  text
         -->P_POCONDX  text
         -->P_WA  text
    FORM fill_pocond TABLES  pocond      STRUCTURE bapimepocond
                             pocondx STRUCTURE bapimepocondx
                       USING wa STRUCTURE zlo_mmcnv009.
    *Net Price in Purchasing Document
      IF wa-netprice <> ''.
        pocond-itm_number = wa-itemnum.
        pocondx-itm_number = wa-itemnum.
        pocond-cond_value = wa-netprice.
        pocondx-cond_value = 'X'.
        pocond-currency = 'BHD'.
        pocondx-currency = 'X'.
        pocond-cond_type = 'PBXX'.
        pocondx-cond_type = 'X'.
    *COND_TYPE
        APPEND pocond.
        APPEND pocondx.
      ENDIF.
    ENDFORM.                    " fill_pocond

  • Problem creating Purchase Order with Bapi_po_create  Return Message is ""

    Hello everybody
    When I get to create PO with bapi_po_create . I get this message in the return parameter :"Enter the PURCH_ORG".
    I think that I have implemented it very well but I don´t get the results that I was expected : No PO was created.
    Please see the following codes and let me know if something is wrong. Thanks .
    =====================================
    *& Report  Z_PED_TRAS                                                  *
    REPORT  z_ped_tras  .
    Definición de la tabla asociada la tabla interna bdcdata
    *DATA :in_data LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    Definición de la estructura que contendrá los pedidos
    DATA : s_cabeceras_pedidos LIKE bapiekkoc,
           s_pos_pedidos LIKE bapiekpoc.
    DATA : t_cabeceras_pedidos LIKE  bapiekkoc OCCURS 0 WITH HEADER LINE,
           t_pos_pedidos LIKE  bapiekpoc OCCURS 0 WITH HEADER LINE,
           t_final_cabeceras_pedidos LIKE  bapiekkoc OCCURS 0 WITH HEADER
    LINE,
           t_final_pos_pedidos LIKE  bapiekpoc OCCURS 0 WITH HEADER LINE.
    Data : item_schedule like BAPIEKET occurs 0 with header line.
    *DATA : BEGIN OF pedidos,
          ematn TYPE mepo1211-ematn, "Número de material
          menge TYPE mepo1211-menge, "Cantidad de pedido
          name1 TYPE mepo1211-name1," Centro destino
          lgobe TYPE mepo1211-lgobe, "Almacén
         END OF pedidos.
    *DATA: s_pedidos  LIKE pedidos,
         wa_pedidos LIKE pedidos,
         t_pedidos LIKE pedidos OCCURS 0 .
    Variables  auxiliaires
    Variables para la ejecución del explorador de archivos
    DATA: l_temp_dir TYPE string.
    DATA: l_filter TYPE string.
    DATA: l_files TYPE filetable.
    DATA: l_rc TYPE i.
    DATA: l_file TYPE filename.
    DATA: l_filename TYPE string.
    DATA: excel TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA: s_excel TYPE alsmex_tabline.
    DATA: qid LIKE apqi-qid.
    Declaración de parametros de selección
    PARAMETERS :
       p_center LIKE bapiekkoc-suppl_plnt OBLIGATORY,"" Proveedor/Centro
       p_ekorg LIKE bapiekkoc-purch_org OBLIGATORY , " Organización compras
       p_ekgrp LIKE bapiekkoc-pur_group OBLIGATORY, " Grupo de compras
       p_bukrs LIKE bapiekkoc-co_code OBLIGATORY,"Sociedad"
       p_date LIKE sy-datum DEFAULT sy-datum OBLIGATORY,  "fecha
       test AS CHECKBOX DEFAULT 'X'.
      p_center LIKE mepo_topline-superfield, " Proveedor/Centro
      p_ekorg LIKE mepo1222-ekorg, " Organización de compras
      p_ekgrp LIKE mepo1222-ekgrp, " Grupo de compras
      p_bukrs LIKE mepo1222-bukrs,"Sociedad"
      p_date LIKE sy-datum," Fecha
      test AS CHECKBOX DEFAULT 'X'.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:PEDIDOS.XLS'. " Ruta
    Carga del explorador de ficheros **
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      l_temp_dir = 'C:A'.
      l_filter = '.'.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          default_extension       = '*.xls'
          file_filter             = l_filter
          initial_directory       = l_temp_dir
        CHANGING
          file_table              = l_files
          rc                      = l_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF NOT l_files[] IS INITIAL.
        READ TABLE l_files INTO l_file INDEX 1.
        p_file = l_file.
        TRANSLATE p_file TO UPPER CASE.
      ENDIF.
    START-OF-SELECTION.
      IF p_file NE space.
        PERFORM upload_data.
        PERFORM fill_data.
        PERFORM llamar_bapi.
      ENDIF.
    END-OF-SELECTION.
    *&      Form  Upload_data
          text
    -->  p1        text
    <--  p2        text
    FORM upload_data .
      IF excel IS INITIAL .
        CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
          EXPORTING
            filename                = p_file
            i_begin_col             = 1
            i_begin_row             = 2
            i_end_col               = 4
            i_end_row               = 50000
          TABLES
            intern                  = excel
          EXCEPTIONS
            inconsistent_parameters = 1
            upload_ole              = 2
            OTHERS                  = 3.
        IF sy-subrc <> 0.
          WRITE :/'Hay un problema al cargar los datos delfichero excell'.
        ENDIF.
        SORT excel DESCENDING BY row col.
      ENDIF.
    ENDFORM.                    " Upload_data
    *&      Form  fill_excell
          text
    -->  p1        text
    <--  p2        text
    FORM fill_data .
      DATA :  cant TYPE i ,
              value_row TYPE i VALUE 1,
              data_aux TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    Leer las filas del fichero excell.
      IF test NE 'X'.
        s_cabeceras_pedidos-suppl_plnt = p_center.
        s_cabeceras_pedidos-purch_org = p_ekorg.
        s_cabeceras_pedidos-pur_group = p_ekgrp .
        s_cabeceras_pedidos-co_code = p_bukrs .
        s_cabeceras_pedidos-doc_date = p_date.
        APPEND  s_cabeceras_pedidos TO t_cabeceras_pedidos.
        cant = excel-row.
        DO cant TIMES.
          LOOP AT excel WHERE row EQ value_row.
            APPEND excel TO data_aux.
          ENDLOOP.
          SORT data_aux BY col.
          LOOP AT data_aux.
            CASE data_aux-col.
              WHEN '1'.
                s_pos_pedidos-pur_mat = data_aux-value.
              WHEN '2'.
                s_pos_pedidos-DISP_QUAN = data_aux-value.
              WHEN '3'.
                s_pos_pedidos-plant = data_aux-value.
              WHEN '4'.
                s_pos_pedidos-store_loc = data_aux-value.
            ENDCASE.
          ENDLOOP.
          APPEND s_pos_pedidos TO t_pos_pedidos.
        ENDDO.
      ENDIF.
    ENDFORM.                    " fill_data
    *&      Form  llamar_Bapi
          text
    -->  p1        text
    <--  p2        text
    FORM llamar_bapi .
    data : T_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE,
           PORDER LIKE BAPIEKKOC-PO_NUMBER.
    t_final_cabeceras_pedidos[] = t_cabeceras_pedidos[].
    t_final_pos_pedidos[] = t_pos_pedidos[].
      CALL FUNCTION 'BAPI_PO_CREATE'
        EXPORTING
          po_header                        = t_final_cabeceras_pedidos
    IMPORTING
       PURCHASEORDER                     = PORDER
        TABLES
          po_items                       = t_final_pos_pedidos
          po_item_schedules                = item_schedule
          RETURN                           = T_RETURN
      IF sy-subrc EQ 0 .
        WRITE :/ 'P O created well'.
      ELSE .
        WRITE :/ 'P .O was not created  well'.
        endif.
      ENDFORM.                    " llamar_Bapi

    Hi,
    When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:
    a) POITEM
    b) POITEMX
    c) POACCOUNT
    d) POACCOUNTX
    e) POSERVICES
    f) POSRVACCESSVALUES
    For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)
    Set PCKG_NO flag in POITEMX table as u2018Xu2019.
    Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.
    Set POACCOUNT-SERIAL_NO to u201801u2019.
    Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:
    WA_POSERVICES-PCKG_NO = u20180000000001u2019.
    WA_POSERVICES-LINE_NO = u20180000000001u2019.
    WA_POSERVICES-OUTL_IND = u2018Xu2019.
    WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)
    WA_POSERVICES-QUANTITY = u2018100.000u2019.
    WA_POSERVICES-BASE_UOM = u2018EAu2019.
    WA_POSERVICES-PRICE_UNIT = u20181u2019.
    WA_POSERVICES-GR_PRICE = u2018100.000u2019.
    WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.
    APPEND WA_POSERVICES TO IT_POSERVICES.
    WA_POSERVICES- PCKG_NO = u20180000000003u2019.
    WA_POSERVICES- LINE_NO = u20180000000002u2019.
    WA_POSERVICES-QUANTITY = u201810.000u2019.
    WA_POSERVICES- BASE_UOM = u2018EAu2019.
    WA_POSERVICES--PRICE_UNIT = u20181u2019.
    WA_POSERVICES-GR_PRICE = u2018100.000u2019.
    WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.
    WA_POSERVICES-MATL_GROUP = u20180012u2019.
    APPEND WA_POSERVICES TO IT_POSERVICES.
    Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:
    WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.
    WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.
    WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.
    WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.
    WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.
    APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.
    This logic will work definitely and PO Service Items will be created.
    Thanks & Regards.
    Dhina..

  • How to create a report with selection screen that can run in background

    Sorry to ask these basic questions but I am knew to ABAP Programming.
    To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field.  That field takes in a folder path from the user.  The user executes the report.  The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided.  I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background.  The report is not exporting the file as it did when run in the foreground for some reason.
    I am wondering what event is triggered when a report is executed in the background.  In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field.  It works then, so I am trying to get the same to work in the background.  I am thinking I didn't put the program together correctly to accommodate the running in the background.  How can you create a report that can accept user input via variant into a selection screen and then run in the background?
    Please, any information would be greatly appreciated.
    Thanks you all for reading this!!!

    Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
    Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
    Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at.

  • Problem creating vector mask with Pen Tool

    Using Photoshop CS5, Mac OS 10.6.8
    I'm trying to create a simple vector mask using the pen tool to create a curved line at the top and bottom of a photo. Here's what I'm doing:
    1. Create a new layer and select it.
    2. Select Pen tool.
    3. Choose "work path" by selecting button at top menu.
    4. I draw my shape with the pen tool.
    5. Now comes the problem... I can not select this shape, or assign it a color. When I create a clipping mask, it does not recognize my path. When I throw away the layer, the shape is still there in outline only. What am I missing here? I'm familiar with doing this in Illustrator, but I don't understand how it works in PSD.
    I need some help, please.
    Thanks.

    The main thing i use paths for in photoshop is extracting objects from photos.
    Other uses include stroking paths with the paint tools. For example, if you had
    a powerline to remove, one could trace the line with the pen tool and then stroke
    the path with spot healing brush set to content aware fill.
    more info on photoshop paths:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-73ada.h tml
    MTSTUNER

  • Problems creating a database with DB config assistant

    I've just installed Oracle for the first time. I'm a newbie. When I create database using the configuation assistant I get the following error:
    ORA-00101:invalid specification for system parameter MTS_DISPATCHERS
    Then I hit Ignore and I get the following error:
    ORA-00102: network protocol )ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP)
    Then I hit Ignore and I get the following error:
    ORA-0103034:ORACLE not available
    Then when I hit ignore again, I keep looping to the above error message and I'm forced to abort.
    Please help me figure out this problem.
    null

    Hi, I checked the files... ORACLE_HOME\assistants\dbca\logs, was empty and
    ORACLE_BASE\admin\SID\create have this:
    ORA-27102: out of memory
    OSD-00026: Message 26 not found; product=RDBMS; facility=SOSD,
    During the installation I create a Database called TESIS, the SID is TESIS, but when i try to connect by PLSQL with SYSTEM/ORACLE or any other user, show me: ORA:12545 "no se ha podido resolver el nombre del servicio" , I checked the services, and the Listener is running , and the OracelServicesTESIS too, what could be the problem??
    I hope u can help me...
    Thanks!
    Message was edited by:
    Tere

  • Problem creating mailing list with Server Console

    Hi,
    when I create a new mailing list, I do the following:
    1. Right click on groups folder in Console
    2. Choose New->Group
    3. Entering all data and checking "Mail Account" under Account
    The documentation sais, that a Mail-tab should now appear. But this is not the case for me!?
    I can only create the group like this and have to add the attribute "mail" - to enter an email address - manually..
    Is this normal? Am I doing something wrong or missing something? Also disallowing posting on this group can only be set manually. Shouldnt all this be done using a nice GUI dialog?
    I'm using Directory Server 5.2 Patch 2. Also tried 5.2 Patch 4. Both same problem.
    Thanks in advance
    david

    got the instructions from the "Sun Java System Messaging Server 6 2005Q4 Administration Guide", chapter "Managing Mail Users and Mailing Lists with the Console Interface"-"Managing Mailing Lists":
    http://docs.sun.com/app/docs/doc/819-2650/6n4u4du0e?q=messaging+server&s=t&a=view
    Step 6 sais: "Click the Mail Account box. -> The Mail tab becomes visible in the Create Group window."
    Thanks,
    --David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem Creating Postscript File with FrameMaker 7.2

    My usual book easily goes more than 500 pages with lots of graphics (eps) and text. I am trying to create pdf. My problem is I am unable to print book in one shot - always received error messages. If I break the book and print selected files, I am able to create the postscript files. (I need to break into 5 to 6 postscripts files). But by doing this I lost the link to my TOC when I combine the files into 1 pdf file.
    Have anyone encounter this problem before? Any suggestion? (I am using FrameMaker 7.2 and Distiller 6.0).

    The plugins for JBuilder only worked on JB 5 as far as I can recall.  In any case, the plugins for JBuilder are no longer supported (I think).  If you want plugin support, please use Eclipse or the SAP NetWeaver Developer Studio (based on Eclipse 2.1).  If you don't need plugin support, then you can use the Ant build scripts that are supplied with the PDK.

  • BC4J: problems creating view object with multiple entity objects

    Hi,
    I working with a view object which contains two entity objects with parent-child relationship like this:
    ViewObject - ParentEntityObject - PId
    PAttribute
    CId (FK)
    (- ParentChildAssociation)
    - ChildEntityObject - CId
    - CAttribute
    The 'Read Only' and 'References' options are checked for the association in the view object.
    I'm creating a new row using this view object. The parent object should be created new and the child object already exists in the database, so I'm setting only the attributes of the parent object (including foreign key).
    After creating the row I display it in a jbo:DataTable and only those attributes coming from the parent object are displayed. The attributes of the child object are not set. After a commit all attributes appear.
    The problem is, that I want to display the new row with all attributes to the users BEFORE they commit.
    I tried to set the child attributes, but they are read only by definition and even when I unchecked the 'Read Only' option and set the attributes to 'Always Updateable' in the view object it is giving me
    JBO-27008: Attribute set for CAttribute in view object ViewObject failed.
    Is there a way to make all attributes of the child object visible in the view object without committing changes?
    (JDev 9.0.2.822)
    Any help would be appreciated.
    Regards,
    Christian

    Once again the structure, sorry.
    ViewObject
    |-ParentEntityObject
    ..|-PId
    ..|-PAttribute
    ..|-CId (FK)
    |-ParentChildAssociation
    |-ChildEntityObject
    ..|-CId
    ..|-CAttribute
    Christian

  • Problem creating Recovery Discs with HP Probook 4530s Notebook PC.

    I have a HP ProBook 4530s Notebook computer my daughter gave me. It is 5 months out of warranty. I had to recover it using Recovery Manager and the recovery partition.  The OS is W7 Home Premium 64 bit.
    An HP support document says that I can create Windows 7 recovery discs using DVD-R media. It says to click Start, then All Programs, then Recovery Manager.
    The problem is there is no Recovery Manager in All Programs. I want to create recovery discs instead of relying on the recovery partition.
    I called HP and they had no explanation. I asked them if the instructions were wrong or were they right but for some reason Recovery Manager was missing from All Programs. All they could tell me is to recover it using the recovery partition by restarting the computer and then pushing F11 for the Recovery Manager. That works to recover the computer but NOT to create recovery discs.
    Is there any way to create Recovery discs?

    Hi
    Not without the recovery manager, which is not included on every HP business notebook.
    My HP Elitebook 6930p came with a recovery partition but no recovery disks, recovery manager program to make recovery disks.
    And it cannot be downloaded.
    If you live in the USA, call HP at this number, 1-800-334-5144 and order a set of recovery disks.
    You will need to provide the model number and serial number to the customer support rep.
    Since the notebook is out of warranty, there will be a charge of $10 for the set of recovery disks.

  • Problem creating an excel with ALV GRID

    Hi all,
    this is my problem:
    i have an ALV GRID in which I display several columns in a proper order, es : A B C D E F G
    when i create an excel from this display i obtain a different order of the columns!
    in particular the 3 columns which represent numeric values (es C D E) are the last 3 colums in the excel, instead in the alv grid this 3 comuns stay in the middle!
    so in the excel i obtain : A B F G C D E!!!!
    please can anyone help me to fix this problem?

    hi,
    if you do a debugging it will go into the function module alv_xxl_call.
    in this we can find  the code as below.
    catch system-exceptions import_mismatch_errors = 1.
        import l_xxl_toggle_date from database ltdx(XL) id
                                    'bcalv_xxl_toggle_date'.
      endcatch.
    here place a break point and check what value is it coming for this variable l_xxl_toggle_date.
    if it is coming as X. then this problem will arrive.
    here manually change the variable to space and check , the output will be coming perfectly.
    if value is coming as X.
    THEN WE CAN DO ONE THING.
    HERE we are having a report bcalv_toggle_date which MUST EXECUTED ONCE ONLY.
    WHEN IT IS EXECUTED IT DOES NOT DISPLAY ANYTHING.
    after executing once the variable will be changed from X TO SPACE.
    but we must run this report as other program excel sheet download order  might get disturbed.
    my might suggestion copy thwe standard gui  to custom one and right a code for that excel icon in your code as shown below.
    we need to copy the function module alv_xxl_call and comment the code
    catch system-exceptions import_mismatch_errors = 1.
        import l_xxl_toggle_date from database ltdx(XL) id
                                    'bcalv_xxl_toggle_date'.
      endcatch.
      if l_xxl_toggle_date is initial.
      and endif of the above if.
    WHEN 'XXL'.
          DATA : v_fieldcat TYPE STANDARD TABLE OF kkblo_fieldcat.
          DATA : wa_fieldcat TYPE kkblo_fieldcat.
          DATA : w_fieldcat LIKE LINE OF gt_fieldcat.
          DATA : g_sort TYPE slis_t_sortinfo_alv.
          DATA : g_filter TYPE slis_t_filter_alv.
          DATA : a_fieldcat TYPE slis_t_fieldcat_alv.
          CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET'
            IMPORTING
              es_layout   = gs_layout
              et_fieldcat = a_fieldcat[]
              et_sort     = g_sort
              et_filter   = g_filter
              es_variant  = gs_variant.
          DELETE a_fieldcat WHERE no_out = 'X'.
          LOOP AT a_fieldcat INTO w_fieldcat.
            MOVE-CORRESPONDING w_fieldcat TO wa_fieldcat.
            APPEND wa_fieldcat TO v_fieldcat.
          ENDLOOP.
          CALL FUNCTION 'ZALV_XXL_CALL'
            EXPORTING
              i_tabname                    = 'IT_FINAL'
            IS_LAYOUT                    =
              it_fieldcat                  = v_fieldcat[]
            I_CALLBACK_TOP_OF_PAGE       =
            I_TITLE                      =
            I_MODE                       =
            TABLES
              it_outtab                    = it_final
           EXCEPTIONS
             FATAL_ERROR                  = 1
             NO_DISPLAY_POSSIBLE          = 2
             OTHERS                       = 3.

Maybe you are looking for

  • Music on iPhone and iTunes on MacBook Pro don't work together

    I have the latest version of iTunes: 11.1.3 (8).  Somehow whenever I plug my iPhone 4s, Version: iOS 7.0.4 (11B554a) (if that all means anything?) into my Mac, even if I haven't changed any of the settings, my iPhone always comes away with less songs

  • Creative Mediasource 5 Player and Vista SP1

    Hello there... Having updated to SP today, I noticed that the MediaSource 5 Player no longer works: Application name: CTCMSu.exe 5.2.3.0 I have uninstalled/re-installed, to no avail. Anyone know of a fix? Creative: Please sort this! Edit: Application

  • Additional fileds to VAT report S_ALR_87012357 - Advance Return for Tax on

    Dear all I would like to add customer and vendor name to the VAT report. Can you please tell me on how these fields can be added. Many thanks P

  • India Localization - RTN Invoice

    Dear Experts, I know very well in IL If we apply the Prepayment to Standard Invoice system will generate RTN Invoices, in RTN Invoice "RTN" Stands for what??? Any one please help me please.. Thanks Bharath

  • 945GM3-F and E6300 - FSB not correct

    I've had my 945GM3-F for a little while now but I didn't notice this problem until now... In the BIOS the CPU is showing properly as E6300 @ 1.86 GHz. The CEL menu also shows Adjusted CPU clock 1066 MHz and Adjust CPU FSB Frequency 266. When I boot i