Error: Imposible seleecionar campo DMBE2 debido a campo unidad HWAE2,

Hola amigos del Foro:
Al incluir el campo de importe en moneda local 2 (DMBE2) al extractor 2LIS_13_VDITM, da el siguiente mensaje: "Imposible seleecionar campo DMBE2 debido a campo unidad HWAE2". Al ver esto se incluyó el campo HWAE2 al extractor, se activó, y se volvio a incluir DMBE2, sin embargo muestra el mismo mensaje,  que podemos hacer?, gracias por la ayuda...

Hola Regina....primero una recomendacion....como te habrás dado cuenta, las respuestas del foro están en inglés y es que todos aquí escriben en inglés por el hecho de que hay gente de todo el mundo preguntando y respondiendo....te recomiendo para posteriores preguntas que pongas que lo hagas en ingles porque así habrá mas posibilidades que te respondan....
Well...about your question.....did you add the new field in LO cockpit or directly in extraction structure in an append....
Regards

Similar Messages

  • Erro de validação: campo Country Name.(campo IS_NFE_HEADER-C1_XPAIS, ID cam

    Senhores (as);
        Estou com um problema na xml no campo 'País' (campo IS_NFE_HEADER-C1_XPAIS, ID campo C015), no monitor do PI visualizo a mensagem "Erro de validação: campo Country Name. This field does not match the expected format. (campo IS_NFE_HEADER-C1_XPAIS, ID campo C015)". Estou tentando achar o momento em que este campo é chamado nos programas da J1B1N ou na J_1BNFE_MONITOR para colocar um break-point e os funcionais analizarem o erro, mas não estou conseguindo achar. Achei a BADI cl_nfe_print com a interface if_ex_cl_nfe_print, etc...mas nada do campo, ele é o 'T005T-LANDX'. Quem puder me ajudar a localizar o momento da chamada deste campo nos programas para analizá-lo....
    Obrigado.

    Eduardo;
    Você conseguiu resolver o problema do xPais com o código " out_header-c1_cpais = 'Brasil'" na badi CL_NFE_PRINT ?? Como conseguiu, pois este campo tem o tamanho CHAR 4 ??
    Obrigado...
    Att;

  • Error Imposible modificar un contrato

    Hola buenas tardes expertos, les escribo por lo siguiente. Tengo un contrato que me está arrojando el siguiente error.. Imposible modificar un contrato utilizado por una llamada de servicio, hasta donde yo se tengo entendido que no se puede borrar una línea de un equipo que ya posea llamadas de servicio, el detalle es que no me deja ni siquiera colocar una descripción del contrato. Por todo al dar al botón de actualizar me arroja ese error. Saben como se puede resolver..
    Desde ya, muchas gracias y en espera de su pronta ayuda,.
    Me despido cordialmente de ustedes.
    Saludos

    Hola
    comprueba esta nota: 1020488 - Error message while updating a Service Contract
    Un saludo
    Agustín Marcos Cividanes

  • PDF CON CAMPOS RELLENABLES

    Es posible hacer un pdf de campos rellenables con un campo en el que se pueda adjuntar una imagen?

    con un poco de script
    http://forums.adobe.com/message/3370110

  • Error Server iCloud

    Resulta que cuando tengo que conectarme em iCloud desde la web http://www.icloud.com toda va perfecto..
    El problema esta cuando lo quiero hacer desde el pc.
    Me baje iCloud de la web oficial de apple (version windows), lo instalo y cuando quiero acceder, despues de ingresar mis datos siempre me sale el mismo error "no se pudo conectar debido a un error del servidor".
    Los datos son correctos, porque son los mismos con los que me conecto en la web.
    Tengo windows 7, outlook 2007 y internet explorer 8, que segun ellos son lo requsitos necesarios para utilizar iCloud.
    He creado este post pk la verdad es que ya stoy desesperado y no encuentro ninguna solucion.
    Lo unico que pido es que si a alguien le pasa e/o paso lo mismo y puedo encontrar la solucion que me eche un cable a ver si lo arreglo ya de una vez.

    tengo el mismo problema desde windows xp. que hago?

  • Dynamic typing error

    Hi *,
    I'm trying to build a generic application to check values into any table.
    But I'm facing the following problem:
    FIELD-SYMBOLS: <fstable> TYPE table,
                   <fscond> TYPE table,
                   <fs_line> TYPE ANY,
                   <dyn_wa> TYPE any,
                   <dyn_field> TYPE any.
    data: tipo(20) TYPE c VALUE '/FRE/SUBST_ASSMT'.
    data:       dy_line  type ref to data.
    ASSIGN it_data TO <fstable> CASTING TYPE (tipo).
      create data dy_line TYPE (tipo)."like line of <fstable>.
      assign dy_line->* to <dyn_wa> CASTING TYPE (tipo).
    LOOP at <fstable> INTO <dyn_wa>.
    --->  if <dyn_wa>-subst_c = '0'.
    -->    endif.
        do.
         assign component  sy-index of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
          exit.
          endif.
        enddo.
    ENDLOOP.
    It's clear that since the variable is untyped I can not perform this check. SE80 says that there is no structure, therefore no component.
    Let's say, I've got a table, MARA and I want to check if a field is 0, and then later on I have to check if MARC has field 'X' to 0... I want to reuse the code.
    Any ideas how can achieve that?
    Any help will be apprecitad,
    Isidoro!

    Hi,
    Your solution is not bad, actually I like it, but I solved the problem in a different way. Have a look at:
    FIELD-SYMBOLS: <fstable> TYPE table,
                   <fscond> TYPE table,
                   <fs_line> TYPE ANY,
                   <dyn_wa> TYPE any,
                   <dyn_field> TYPE any.
    data:  lt_wheres         TYPE rsds_twhere,
           lrt_cond          TYPE STANDARD TABLE OF rsds_range,
           lrs_cond          LIKE LINE OF lrt_cond.
    data:  dy_line  type ref to data.
    DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.
    DATA: lt_comp TYPE cl_abap_structdescr=>component_table.
    DATA: ls_comp LIKE LINE OF lt_comp.
    data: campos type DDFIELDS,
          ls_campos LIKE LINE OF campos.
    DATA: index TYPE i VALUE '1'.
    *Assign the dynamic structures.
    ASSIGN it_data TO <fstable>.
    create data dy_line like line of <fstable>.
    assign dy_line->* to <dyn_wa>.
    *get the description of the elements from DDIC
    lr_rtti_struc ?= cl_abap_structdescr=>DESCRIBE_BY_DATA_REF( dy_line ).
    lr_rtti_struc->GET_DDIC_FIELD_LIST( EXPORTING P_INCLUDING_SUBSTRUCTRES = 'X'
                                        RECEIVING P_FIELD_LIST = campos ).
    LOOP at campos INTO ls_campos.
        if ls_campos-fieldname = 'SUBST_CTRL'.
          index = sy-tabix.
        endif.
    ENDLOOP.
    LOOP at <fstable> INTO <dyn_wa>.
        do.
         assign component  sy-index of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
          exit.
          endif.
    if sy-index = index.
    if  <dyn_field> = '3'.
      WRITE / 'OK!

  • Imposible iniciar sesion

    A ver si alguien me da una solución, he restaurado el iphone 4, para tener una instalación limpia de iOS 7, despues de aceptar los terminos y de elegir la copia de seguridad que quiero restaurar, en la siguiente pantalla que pone iTunes, me vuelve a pedir la contraseña pero al ponerla me da el siguiente mensaje de error:
    Imposible iniciar sesion, ha habido un problema al conectar con el servidor.

    Google translate:
    Usted está recibiendo este mensaje porque usted está tratando de crear una cuenta de iCloud en un PC. Sólo puede crear la cuenta de iCloud en un dispositivo iOS (iPhone, iPad o iPod Touch) con iOS 5 o superior, o en un Mac con OS X Lion (10.7.5) o superior. Después de crear su cuenta en uno de estos dispositivos a continuación, será capaz de iniciar sesión en la cuenta utilizando este identificador en su PC.

  • Imposible conectar al servidor

    Al actualizar a IOS 7 e intentar aceptar las condiciones de uso, me sale el error imposible conectar al servidor, intento descargar la aplicacion find my friends pero aun asi me sigue saliendo el mismo error y no puedo eliminar la cuenta porque no puedo entrar a icloud.
    que puedo hacer porfavor. gracias amigos, soy novata en esto

    Google Translate:
    Hay algunas soluciones para que en esta discusión: https://discussions.apple.com/thread/5321627?start=0&tstart=0, incluyendo la descarga de la aplicación Find My Friends y firma con tu nombre de iCloud para aceptar los términos y condiciones.

  • Error on reports server 11g.

    I have been trying to find info about this problem but I cant find how, the mesage codes (Message -473022448 not found) are always different.
    I receive this error ramdomly, sometimes after 30,300, or 800 reports have been generated, and it fixes itself after a while.
    I need to fix it.
    Please help.
    at the showjobs page, I can see this error:
    Error
    El informe ha terminado con error:
    REP-1425: Se ha producido un error al ejecutar el paquete DO_SQL en la unidad de programa beforereport: Se ha producido un error al analizar la sentencia SQL: ORA--473022448: Message -473022448 not found; product=RDBMS; facility. .
    at the log rwEng-0_diagnostic I found the following:
    [2012-06-19T11:33:13.887-04:00] [reports] [ERROR] [] [oracle.reports.engine] [pid: 9972] [tid: 10] [ecid: 0000JW4qxnc7Q9WFLzjO8A1Fs7bI000000,0:45:100000001] [EngineName: rwEng-0] C Engine Job ID = 1977 ERR REP-1425: Se ha producido un error al ejecutar el paquete DO_SQL en la unidad de programa beforereport: Se ha producido un error al analizar la sentencia SQL: ORA--473022448: Message -473022448 not found; product=RDBMS; facility.
    [2012-06-19T11:33:13.903-04:00] [reports] [ERROR] [] [oracle.reports.engine] [pid: 9972] [tid: 10] [ecid: 0000JW4qxnc7Q9WFLzjO8A1Fs7bI000000,0:45:100000001] [EngineName: rwEng-0] rwfdt:rwfdtprint Job ID = 1977 ERR Error occurred sending Job output to cache
    [2012-06-19T11:33:13.903-04:00] [reports] [INCIDENT_ERROR] [REP-1425] [oracle.reports.engine] [pid: 9972] [tid: 10] [ecid: 0000JW4qxnc7Q9WFLzjO8A1Fs7bI000000,0:45:100000001] [EngineName: rwEng-0] REP-1425 : Se ha producido un error al ejecutar el paquete DO_SQL en la unidad de programa beforereport: Se ha producido un error al analizar la sentencia SQL: ORA--473022448: Message -473022448 not found; product=RDBMS; facility. [[
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
         at oracle.reports.engine.EngineImpl.run(EngineImpl.java:553)
         at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:104)
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
         at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1682)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
         at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
         at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
         at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1213)
         at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:471)
         at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:500)
    [2012-06-19T11:33:13.903-04:00] [reports] [NOTIFICATION] [] [oracle.reports.engine] [pid: 9972] [tid: 10] [ecid: 0000JW4qxnc7Q9WFLzjO8A1Fs7bI000000,0:45:100000001] [EngineName: rwEng-0] EngineImpl:run oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    one of the reports's beforereport trigger iis:
    function BeforeReport return boolean is
    begin
    :USER := USER;
    SRW.DO_SQL('alter session set NLS_DATE_FORMAT=''YYYY/MM/DD HH24:MI:SS''');
    return(TRUE);
    end;
    some of the reports are generated about 100 times at day, and 1-4 times gets the error.
    any sugestions?

    Hii rzuluaga..
    I already installed the patch 1270315 last month, as i said, The engLife param was set to 1.
    so I just tried with engLife=10 and the problem continues.
    thanks for any sugestions.

  • Requirement to make PAN number mandatory for processing payroll

    I have a client requirement that payroll should be processed only for those persons for whom PAN number is available.One way to do this would be a custom report which could give a list of persons for whom the PAN number is not available & to lock the Payroll in IT 0003 for such persons whose PAN number is not anailable.
    But is there any other way to configure the system so that the system will not run payroll automatically for persons whose PAN number is not available?
    Useful answers will be rewarded.
    Thanks,
    Ravi.

    Hi Ravi.
    I'm brazilian guy. I  am trying to do it for Portugal Payroll.
    I activated P0185 function in PE04 for Portugal and created 2 rules:
    ZH01 Verifica existência do IT0185      
            TABLEP0185 Ler campos de tabela 
          " VARGBSUBTY Campo tab.VVVVV ArgV 
            " 01                            
                NUM=1      Definir          
                ADDWT&0185 VAR  tab.variáveis
    and...
    ZH02 Verifica existência do IT0185 Subtipo 01
            NUM=& 0185 Definir                  
          " NUM?0      Comparação               
                ZERO=&0185 Definir VVVV p/zero  
            " =                                 
                ERROR      Cancel.processamento 
    And I put the rules in this sequency in the scheme. But the function P0185 doesn't accept rules. I need help, too.

  • Block the processing of payroll for employees who do not have IT0185 ST01

    Hi People.
    I have a client requirement that payroll should be processed only for those persons for whom ID number (IT0185-ST01) is available. I am trying to do it for Portugal Payroll.
    I activated P0185 function in PE04 for Portugal and created 2 rules:
    *ZH01 Verifica existência do IT0185*
    *TABLEP0185 Ler campos de tabela*
    *" VARGBSUBTY Campo tab.VVVVV ArgV*
    *" 01*
    *NUM=1 Definir*
    *ADDWT&0185 VAR tab.variáveis*
    and...
    *ZH02 Verifica existência do IT0185 Subtipo 01*
    *NUM=& 0185 Definir*
    *" NUM?0 Comparação*
    *ZERO=&0185 Definir VVVV p/zero*
    *" =*
    *ERROR Cancel.processamento*
    And I put the rules in sequence in the scheme. But the function P0185 doesn't accept rules.
    How do I block the processing of payroll for employees who do not have infotype 0185 subtype 01?
    Thanks,
    Helio Rabello

    if you are not sure about the linking i suggest to just show all roles associated to all the employees,
    group by employee
    create true/false formula for the role_ids  where ONLY your 20 role is TRUE per employee
    then exclude all false - that should give you only the employees that are missing that particular role.

  • Field-symbol not assigned

    Hello,
    I speak only a bit so I wait that you can understandme.
    I have a field-symbol that is assigned to a component of a structure but when I use the field-symbol I recived a error message that say me "field-symbol is not assigned".
    field-symbols <ubi> type any.
    campo = 'UBIORI'.
    assign component campo of structure
                          t_cuantos to <ubi>.
    Thank you very much.

    H,
    Put a check as follows:-
    field-symbols <ubi> type any.
    campo = 'UBIORI'.
    assign component campo of structure
    t_cuantos to <ubi>.
    if <ubi> is assigned.
    * do further processing here
    endif.
    How is the structure t_cuantos defined?
    Is it having a field named UBIORI?
    t_cuantos should be a workarea(structure) and not an internal table.
    Check the points and reply.
    Regards,
    Ankur Parab

  • How to control the result of  a batch input

    Hi everyone,
    We have a program that update the item category in the sales orders, after that using a batch input the system executes the va02 transaction to update the order, after the order has been updated we have to make the materials movement.
    Th eproblrm is that I need to know how can I control if the batch input has been executed correctly or not, because in that case the materials movement must not be executed.
    If help, the code is the following:
    FORM Batch_VA02.
      data: begin of bdcdata occurs 0.
        include structure bdcdata.
      data: end of bdcdata.
      data: campo(20) type c.
      data: campopos(20) type c.
      data: campomarcar(20) type c.
      data: campocambiar(20) type c.
    loop at PA1 where sel = 'X'. "ya está en un loop, al estar en en
    LANZAR_BATCH
        refresh bdcdata.
      Primera pantalla, introducir número pedido y enter.
        perform p TABLES BDCDATA using 'SAPMV45A' '0102' .
        perform c TABLES BDCDATA using 'VBAK-VBELN' pa1-pedid.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '/00'.
      Segunda pantalla. Pulsar "Aprovisionamiento".
        perform p TABLES BDCDATA using 'SAPMV45A' '4001'.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=T05'.
      Antes de la tercera pantalla hay que posicionarse.
        perform p TABLES BDCDATA using 'SAPMV45A' '4001'.
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=POPO'.
      Introducir número de posición
        campo = '01'.
        perform posicion changing campo.
        perform p TABLES BDCDATA using 'SAPMV45A' '0251'.
      Inicio modificación Chema Campos 28.06.2007 (CAU  58283)
      perform c TABLES BDCDATA using 'RV45A-POSNR' pa1-posic.
        if global_pos_nueva is initial.
          perform c TABLES BDCDATA using 'RV45A-POSNR' pa1-posic.
        else.
          perform c TABLES BDCDATA using 'RV45A-POSNR' global_pos_nueva.
        endif.
        clear global_pos_nueva.
      Fin modificación Chema Campos 28.06.2007 (CAU  58283)
        perform c TABLES BDCDATA using 'BDC_OKCODE' '=POSI'.
        move 'VBAP-BEDAE(01)'       to campopos.
        move 'RV45A-VBAP_SELKZ(01)' to campomarcar.
        move 'VBAP-BEDAE(01)'       to campocambiar.
      Antes de la tercera pantalla hay que posicionarse.
       campo = '01'.
       perform posicion changing campo.
       do.
         if campo > '10'. "hay que paginar.
           perform p TABLES BDCDATA using  'SAPMV45A' '4001'.
           perform c TABLES BDCDATA using  'BDC_OKCODE' '=P+'.
           campo = campo - 10.
         endif.
         condense campo.
         if campo+1(1) eq space.
           concatenate '0' campo into campo.
         endif.
         if campo <= '10'.
           exit.
         endif.
       enddo.
       condense campo.
       clear: campopos, campomarcar, campocambiar.
       concatenate 'VBAP-BEDAE(0' campo ')' into campopos.
       concatenate 'RV45A-VBAP_SELKZ(0' campo ')' into campomarcar.
       concatenate 'VBAP-BEDAE(0' campo ')' into campocambiar.
      Tercera pantalla.  Introducir valor ZRES y grabar.
        perform p TABLES BDCDATA using  'SAPMV45A' '4001'.
        perform c TABLES BDCDATA  using  'BDC_CURSOR' campopos.
          "posicionamos
        perform c TABLES BDCDATA using  campomarcar 'X'.
          "marcamos
        perform c TABLES BDCDATA using  campocambiar 'ZRES'.
          "actualizamos valor
        perform c TABLES BDCDATA using  'BDC_OKCODE' '=SICH'.
        CALL TRANSACTION 'VA02' USING bdcdata  UPDATE c_update
             MESSAGES INTO messa MODE  modo.
                         "A" temporalmete visible pra pruebas en integración
        COMMIT WORK AND WAIT.
        WAIT UP TO 2 SECONDS.
    endloop.
    ENDFORM.                    " Batch_VA02
    Thanks everyone

    hi,
    after executing va02 check for sy-subrc, if it is not equal to 0 .
    catch the errors into BDCmsg of structure BDCMSGCOLL and there open session for error records and u can transfer them into file aslo.
    ex:
    REPORT  zsr_report
    NO STANDARD PAGE HEADING
                            LINE-SIZE 255
                            MESSAGE-ID ZRASH.
    *--Internal Table for Data Uploading.
    DATA : BEGIN OF IT_FFCUST OCCURS 0,
             KUNNR(10),
             BUKRS(4),
             KTOKD(4),
             ANRED(15),
             NAME1(35),
             SORTL(10),
             STRAS(35),
             ORT01(35),
             PSTLZ(10),
             LAND1(3),
             SPRAS(2),
             AKONT(10),
           END OF IT_FFCUST.
    *--Internal Table to Store Error Records.
    DATA : BEGIN OF IT_ERRCUST OCCURS 0,
             KUNNR(10),
             EMSG(255),
           END OF IT_ERRCUST.
    *--Internal Table to Store Successful Records.
    DATA : BEGIN OF IT_SUCCUST OCCURS 0,
             KUNNR(10),
             SMSG(255),
           END OF IT_SUCCUST.
    *--Internal Table for Storing the BDC data.
    DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    *--Internal Table for storing the messages.
    DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_FLAG1(1) VALUE ' ',
    "Flag used for opening session.
           V_TLINES LIKE SY-TABIX,
           "For storing total records processed.
           V_ELINES LIKE SY-TABIX,
           "For storing the no of error records.
           V_SLINES LIKE SY-TABIX.
           "For storing the no of success records.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
                 V_SESNAM  LIKE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
    *-- Form to upload flatfile data into the internal table.
      PERFORM FORM_UPLOADFF.
    TOP-OF-PAGE.
      WRITE:/ 'Details of the error and success records for the transaction'
      ULINE.
      SKIP.
    END-OF-SELECTION.
    *-- Form to Generate a BDC from the Uploaded Internal table
      PERFORM FORM_BDCGENERATE.
    *--To write the totals and the session name.
      PERFORM FORM_WRITEOP.
    FORM FORM_UPLOADFF .
    *--Variable to change the type of the parameter file name.
      DATA : LV_FILE TYPE STRING.
      LV_FILE = V_FNAME.
    *--Function to upload the flat file to the internal table.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      =  LV_FILE
        FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
        HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        TABLES
          DATA_TAB                      = IT_FFCUST
        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.
    *--Deleting the headings from the internal table.
        DELETE IT_FFCUST INDEX 1.
    *--Getting the total number of records uploaded.
        DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
      ENDIF.
    ENDFORM.                    " form_uploadff
    FORM FORM_BDCGENERATE .
    *--Generating the BDC table for the fields of the internal table.
      LOOP AT IT_FFCUST.
        PERFORM POPULATEBDC USING :
                                    'X' 'SAPMF02D' '0105',
                                    ' ' 'BDC_OKCODE'  '/00' ,
                                    ' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
                                    ' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
                                    ' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
                                    'X' 'SAPMF02D' '0110' ,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    ' ' 'KNA1-ANRED'  IT_FFCUST-ANRED,
                                    ' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
                                    ' ' 'KNA1-SORTL'  IT_FFCUST-SORTL,
                                    ' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
                                    ' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
                                    ' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
                                    ' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
                                    ' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
                                    'X' 'SAPMFO2D' '0120',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0125',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0130',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0340',     
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0360',
                                    ' ' 'BDC_OKCODE'  '=ENTR',
                                    'X' 'SAPMF02D' '0210',     
                                    ' ' 'KNB1-AKONT'  IT_FFCUST-AKONT,
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0215',
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0220',     
                                    ' ' 'BDC_OKCODE'  '/00',
                                    'X' 'SAPMF02D' '0230',     
                                    ' ' 'BDC_OKCODE'  '=UPDA'.
    *--Calling the transaction 'fd01'.
        CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
        MESSAGES INTO IT_CUSTMSG.
        IF SY-SUBRC <> 0.
    *--Populating the error records internal table.
          IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_ERRCUST.
          CLEAR IT_ERRCUST.
    *--Opening a session if there is an error record.
          IF V_FLAG1 = ' '.
            PERFORM FORM_OPENSESSION.
            V_FLAG1 = 'X'.
          ENDIF.
    *--Inserting the error records into already open session.
          IF V_FLAG1 = 'X'.
            PERFORM FORM_INSERT.
          ENDIF.
    *--Populating the Success records internal table.
        ELSE.
          IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
          APPEND IT_SUCCUST.
          CLEAR IT_SUCCUST.
        ENDIF.
    *--Displaying the messages.
        IF NOT IT_CUSTMSG[] IS INITIAL.
          PERFORM FORM_FORMATMSG.
        ENDIF.
    *--Clearing the message and bdc tables.
        CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
      ENDLOOP.
    *--Getting the total no of error records.
      DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
    *--Getting the total no of successful records.
      DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
    *--Closing the session only if it is open.
      IF V_FLAG1 = 'X'.
        PERFORM FORM_CLOSESESS.
      ENDIF.
    ENDFORM.                    " Form_bdcgenerate
    FORM POPULATEBDC  USING    VALUE(P_0178)
                               VALUE(P_0179)
                               VALUE(P_0180).
      IF P_0178 = 'X'.
        IT_CUSTBDC-PROGRAM = P_0179.
        IT_CUSTBDC-DYNPRO = P_0180.
        IT_CUSTBDC-DYNBEGIN = 'X'.
      ELSE.
        IT_CUSTBDC-FNAM = P_0179.
        IT_CUSTBDC-FVAL = P_0180.
      ENDIF.
      APPEND IT_CUSTBDC.
      CLEAR IT_CUSTBDC.
    ENDFORM.                    " populatebdc
    *&      Form  FORM_OPENSESSION
          Form to Open a session.
    FORM FORM_OPENSESSION .
    *--Variable to convert the given session name into reqd type.
      DATA : LV_SESNAM(12).
      LV_SESNAM = V_SESNAM.
    *--Opening a session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         CLIENT                    = SY-MANDT
         GROUP                     = LV_SESNAM
         HOLDDATE                  = '20040805'
         KEEP                      = 'X'
         USER                      = SY-UNAME
         PROG                      = SY-CPROG
    IMPORTING
       QID                       =
       EXCEPTIONS
         CLIENT_INVALID            = 1
         DESTINATION_INVALID       = 2
         GROUP_INVALID             = 3
         GROUP_IS_LOCKED           = 4
         HOLDDATE_INVALID          = 5
         INTERNAL_ERROR            = 6
         QUEUE_ERROR               = 7
         RUNNING                   = 8
         SYSTEM_LOCK_ERROR         = 9
         USER_INVALID              = 10
         OTHERS                    = 11
      IF SY-SUBRC <> 0.
        WRITE :/ 'Session not open'.
      ENDIF.
    ENDFORM.                    " FORM_OPENSESSION
    *&      Form  FORM_INSERT
          fORM TO INSERT ERROR RECOED INTO A SESSION.
    FORM FORM_INSERT .
    *--Inserting the record into session.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          TCODE                  = 'FD01'
        POST_LOCAL             = NOVBLOCAL
        PRINTING               = NOPRINT
        SIMUBATCH              = ' '
        CTUPARAMS              = ' '
        TABLES
          DYNPROTAB              = IT_CUSTBDC
        EXCEPTIONS
          INTERNAL_ERROR         = 1
          NOT_OPEN               = 2
          QUEUE_ERROR            = 3
          TCODE_INVALID          = 4
          PRINTING_INVALID       = 5
          POSTING_INVALID        = 6
          OTHERS                 = 7
      IF SY-SUBRC <> 0.
        WRITE :/ 'Unable to insert the record'.
      ENDIF.
    ENDFORM.                    " FORM_INSERT
    *&      Form  FORM_CLOSESESS
          Form to Close the Open Session.
    FORM FORM_CLOSESESS .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          NOT_OPEN    = 1
          QUEUE_ERROR = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " FORM_CLOSESESS
    *&      Form  FORM_FORMATMSG
          Form to format messages.
    FORM FORM_FORMATMSG .
    *--Var to store the formatted msg.
      DATA : LV_MSG(255).
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          ID        = SY-MSGID
          LANG      = SY-LANGU
          NO        = SY-MSGNO
          V1        = SY-MSGV1
          V2        = SY-MSGV2
          V3        = SY-MSGV3
          V4        = SY-MSGV4
        IMPORTING
          MSG       = LV_MSG
        EXCEPTIONS
          NOT_FOUND = 1
          OTHERS    = 2.
      IF SY-SUBRC = 0.
        WRITE :/ LV_MSG.
      ENDIF.
      ULINE.
    ENDFORM.                    " FORM_FORMATMSG
    *&      Form  form_writeop
          To write the totals and the session name.
    FORM FORM_WRITEOP .
      WRITE :/ 'Total Records Uploaded :',V_TLINES,
               / 'No of Error Records :',V_ELINES,
               / 'No of Success Records :',V_SLINES,
               / 'Name of the Session :',V_SESNAM.
      ULINE.

  • Ayuda!¿Como uno estas dos consultas?

    Buenas tardes a tod@s,
    me gustaría pediros ayuda y para eso se que es muy importante explicaros bien el problema, así que espero hacerlo lo mejor posible.
    Tengo que dos consultas que por separado funcionan perfectamente, pero no se como ejecutarlas de manera conjunta.
    La situación es la siguiente: en la CONSULTA1 se obtienen un conjunto de información de TODAS las ofertas que reunen una serie de requisitos. En la CONSULTA2 se realiza el cálculo de dos fórmulas para UNA única oferta introducida como parámetro cuando se ejecuta la consulta.
    El problema está en que no se como conseguir que el resultado de la CONSULTA1 (todas las ofertas) incluya dos nuevas columnas con el cálculo de las fórmulas de la CONSULTA2. ¿Me entendeis?
    Estas son las consultas:
    CONSULTA1
    SELECT
    T0.DocNum as Oferta,
    T1.SlpName as Comercial,
    T2.Zipcode as CP,
    T2.City as Poblacion
    FROM
    OQUT T0 LEFT JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    LEFT JOIN CRD1 T2 ON T0.CardCode = T2.CardCode
    WHERE
    T0.Series = '613' and T2.Address LIKE 'FACTUR%'
    CONSULTA2
    SELECT
    STR (Cuentas1.Neto/Cuentas1.Coste,10,3) as FMT,
    STR (Cuentas2.Neto/Cuentas2.Coste,10,3) as FMO
    FROM (
    SELECT
    sum(T1.LineTotal) as Neto,
    sum(T1.GrossBuyPr*T1.Quantity) as Coste
    FROM
    OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE
    T0.DocNum = '[%0]' and     T1.Itemcode not in ('10000025','99999999')
    ) as Cuentas1,
    SELECT
    sum(T1.LineTotal) as Neto,
    sum(T1.GrossBuyPr*T1.Quantity) as Coste
    FROM
    OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry
    WHERE
    T0.DocNum = '[%0]' and T1.Itemcode ='10000025'
    ) as Cuentas2
    Donde
    [%0]
    es la variable que utilizo en esta consulta para introducir la oferta manualmente al ejecutar la consulta.
    ¿Como puedo unir estas consultas para que en vez de tener que pasar la oferta como parámetro de una en una haga el cálculo para todas las resultantes a la vez de la CONSULTA1?
    Si necesitais que amplie alguna información decidmelo.
    Muchísimas gracias de antemano. Un saludo.

    Buenos dias estimado
    Cuando trates de unir 2 consultas hay que tener algunas precauciones
    1) Ambas consultas deben tener la misma cantidad de campos, ejemplo:
    SELECT DocEntry, DocNum, DocDate, Doctotal
    FROM OINV
    UNION ALL
    SELECT DocEntry, DocNum, DocDate, -Doctotal
    FROM ORIN
    Como puedes ver la consulta 1 tiene 4 campos y la consulta 2 tambien tiene 4 campos.
    Cuando no puedas agregar mas campos porque no te sirven, puedes rellenar para que existan mas campos, ejemplo
    SELECT DocEntry, DocNum, DocDate, DocDueDate, FolioNum, Doctotal, Comments,
    FROM OINV
    UNION ALL
    SELECT DocEntry, DocNum, DocDate, NULL, NULL, -Doctotal, Commenrs
    FROM ORIN
    Como vez en la consulta 2 para equiparar la cantidad de campos, agregue 2 campos NULL
    2) Los campos de ambas columnas deben tener los el mismo tipo de datos, ejemplo:
    SELECT DocEntry"INT", DocNum"INT", DocDate"DATE o NVARCHAR", Doctotal"INT"
    FROM OINV
    UNION ALL
    SELECT DocEntry"INT", DocNum"INT", DocDate"DATE o NVARCHAR", Doctotal"INT"
    FROM ORIN
    Si la intentas por ejemplo asi, no resultara debido a que los 2 primeros campos tienen tipos de datos distintos.
    SELECT DocDueDate"DATE O NVARCHAR", DocEntry, DocNum, DocDate, Doctotal
    FROM OINV
    UNION ALL
    SELECT -DocTotal"INT",DocEntry, DocNum, DocDate, Comments
    FROM ORIN
    Una forma de corrigir esto es usando CONVERT para cambiar el tipo de datos a el correcto.
    Como acotacion, al usar los operadores PIVOT, UNPIVOT, UNION, UNION ALL desaparecen las fechas link "Fechas naranjas"
    Espero te sirva
    Saludos

  • DEVOLUÇÃO DE EXPORTAÇÃO - CFOP 3201 - GRC VALIDA DADOS DI.

    Boa tarde a todos!
    Estamos em um projeto de NFE XML 2.00 e nos deparamos com o seguinte erro:
    Ao emitirmos um NF-e de devolução da mercadoria que se encontrava no Porto (devolução de exportação - CFOP 3201), a validação do monitor GRC informa que é necessário constar os dados de importação, apesar deste processo não se tratar de importação. Os seguintes logs de validação são gerados:
    Erro de validação: campo Código do fabricante estrangeiro no sistema. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-CFABRICANTE, ID campo I028)
    Erro de validação: campo Nº da adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NADICAO, ID campo I026)
    Erro de validação: campo Nº sequencial do artigo na adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NSEQADIC, ID campo I027)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-CEXPORTADOR, ID campo I024)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDESEMB, ID campo I023)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDI, ID campo I020)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-NDI, ID campo I019)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-UFDESEMB, ID campo I022)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-XLOCDESEMB, ID campo I021)
    Estamos no SAPK-10015INSLLNFE e as seguintes notas relacionadas a validação estão aplicadas:
    1493980     Validation for field xJust in cancel and skipping messages
    1499921     Problem with validation after implementing SP15
    1500046     Upgrade validation rule for field ID for version 2.00
    1500742     Adjust validation for field NADICAO and NSEQADIC layout 2.00
    1502217     Extend validation rules for , layout 2
    1504379     Adjust validation for field X_CLISTSERV
    1511291     Update allowed values for field E1_CPAIS for validation
    1511577     Update validation rules for field VUNCOM_V20
    1520861     Update validation rules for OIL_CPRODANP and OIL_UFCONS
    Não encontrei nenhuma nota SAP recente para o componente SLL-NFE que seja relacionada a este problema.
    Desde já agradeço pela ajuda.
    Sds / Renato Penido.

    Boa tarde, Fernando,
    Obrigado pela pronta resposta.
    Debugamos a BADI e descobrimos que os dados de importação estão sendo gravado "em branco", gerando o erro de validação no GRC, tal qual dito por você.
    Aprimoramos a lógica da BADI para que a tag de importação não seja preenchida indevidamente para as notas de devolução do porto e as notas foram aprovadas.
    Muito obrigado,
    Renato Penido.

Maybe you are looking for

  • How do I share info between my two computers over my network?

    Hello ! I have an iMac, my husband has a Macbook. I just recently got an AEBS so that we could share the internet in the house. We are both wirelessy connected (thanks to the help on this forum). But I am wondering HOW can I share info on my computer

  • Links in my email (Mail) won't open in Firefox no more...waaah!

    Hello, I used to be able to just click on links in my email ( apple Mail) and they would open in Firefox.. Awesome now they don't. I made Safari my default browser again - and they open up fine there...but I don't want to use Safari. I want to use Fi

  • MIRO for transport vendor

    hi, I have created one PO. At the time of Gr i have reversed it twice and third time I have posted it. All the accounting entries are correct. Now when i try to post the transport vendor invoice the amount is coming as nil. Please note that transport

  • UCCX 8.0(2) reset Unified Serviceability password

    Hello, I'm running UCCX 8.0(2) in HA.   It appears that my username and passwords to get me access to the Unified Serviceability (not UCCX Serviceability) pages are out of synch.   I can get into the primary fine but the secondary gives me "Access De

  • Status Profile - Restrict any changes made in sales document

    Hi SD Guru's I have a situation here. I have maintained status profile with one of the status as "REJ - Reject Sales Order". Now when i set that status "REJ" and save the order, and open it by transaction VA02, i can make any changes in the order doc