Call transaction in Workflow doesn't work

Hi all,
I'm a strange problem.
I built a call transaction in a FM. If I test the FM the call transaction works fine.
if I put this FM in a workflow (in a class I build ad hoc for the WF) it doesn't work,
I check in degub the import partameters and it is ok.
I try to execute the FM also in UPDATE or in BACKGROUND task, or the call transaction in different MODE or UPDATE ways, but nothing.
any idea?
thanks
enzo

Hi,
Whether your BDC code in your function module is requesting any input from user?.  If yes, make sure to pass values since you are calling through Workflow which dont popup BDC screens?.
Let me know your scenario is different than I told here.
Regards
Krishna

Similar Messages

  • How to call transaction in workflow

    Hi All,
    I want to call transaction in my workflow .
    Can anyone tell me about it?

    Hi,
    first create activity task in workflow. create a new methos inside BO.
    Then call the FM 'ABAP4_CALL_TRANSACTION' in the BO method.
    use this FM for call transaction from ABAP code.
    Regards,
    Jyothi CH.

  • I purchased a game called Cave Story+ yet doesn't work.

    the game doesn't work i have an iMac and i am using Mac OSX Mavericks yet still does not work whatsoever i contacted the developer yet he does not answer just ignores me please contact this developer Thank you!
    i have contacted the developer for several times he keeps ignoring me his name or whatever is called
    or company is called "Nicalis, Inc."
    look it up in twitter or at his website this developer is not really looking out for his customers just for their money
    i am very dissapointed about this because it doenst work...

    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase

  • Calling transaction from workflow step ?

    hi there,
    is there any business object or apab-class with which i can directly call a transaction ?
    i want to put in the fixed value PA71 for the transaction, and that should be started. but i can't find an OT for that !
    best reg, Martin

    Hello,
    Create a method in the custom business object that you use in the workflow. While creating the method, check radio button "Transaction" and specify the transaction code that you want to call.
    This radio button is present in the tab "ABAP" when you double click on the method.In this way you can call the TCode.
    Hope this will help.
    Regards,
    Sam

  • My friend calling me but it doesn't work

    I don't know why is it, but my friend called me and its not working at all. No call at all

    It makes things easier if you reply on your original thread rather than starting a new one - you should see a 'reply' button at the bottom of each post.
    How did the photos get onto your iPad e.g. were they copied to the iPad from your computer ? If not then you should be able to delete them directly in the Photos app on your iPad. If they were copied from your computer then they are removed from the iPad using the same process as you used to put them onto the iPad :
    Connect the iPad to your computer and select it on the left-hand sidebar (if you are using iTunes 11 on your PC then control-s should get the sidebar to show) :
    On the right-hand side of the iTunes screen select the Photos tab :
    If you just want to remove some folders/albums that you had copied from your computer then de-select them on the list :
    If you want to remove all photos that you had copied to your iPad from your computer then select and sync a folder that doesn't have any photos in it :

  • Call transaction in new session not working inside CRM Interaction Center

    Hi Experts,
    I have developed a report which contains a screen with push button. When user clicks on button a  transaction (FPL9) is being called and opened in new session or window. But when the report is being called in CRM Interaction Center using transaction launcher and button is clicked no new session or new window is being opened. Our requirement is FPL9 transaction will be opened in new session / window inside Interaction Center also.
    Please help me how to open a new session or window  in interaction center on push botton click.
    Thanks in advance.
    Regards,
    Arnab

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • WF Question: Call Transaction From Business Object Not works

    Hi Frinds
    I need some help
    in Business Object ZBUS2012  I have a method that run a report (ALV)
    in the PO nubmer I have a drill down to me23n with parameter BES (EBELN)
    when I click the PO me23n Opened Empty without the PO Number.
    If i try to run the report not from the BO its woks fine.
    it's opened me23n with the right PO Number.
    What can Be The Problem ?
    Thanks in Advance

    Hi Kobi
    Are you passing the parameter from the business object to the method of you ALV report, if in doubt, please post your method code?  Most likely this is what is wrong.  The correct way to reference the PO number within the method is
    object-key-purchaseorder
    Then test using SWO1 to ensure you method is correct before calling through workflow.
    Regards
    Gareth

  • Transaction /TMWFLOW/MAINTINST doesn't work

    Hi experts,
    I'm trying to launch the /TMWFLOW/MAINTINST transaction in my SM but it isn't recognized. I receive the error: '<i>This function is not possible</i>' .
    The reference for the transaction is here:
    http://help.sap.com/saphelp_sm40/helpdata/en/45/51fbdbd4941803e10000000a1553f7/frameset.htm
    Does anybody knows why that happens?
    Regards
    Gonzalo

    Hi Gonzalo,
    Have you tried with /n/tmwflow/maintinst ?.Which version and service pack you are using?
    Please give the version,support pack information.
    Regards,
    Avinash.

  • Call a dynamical VI doesn't work

    Hi,
    i just decided to change the call to a capacious vi from static to
    dynamical. I had made some same things with LabVIEW 5.x some time ago.
    But with 6i i run in trouble. I opened a vi reference and wanted to wire
    it to the dynamic function call. In that case i always get a dotted
    line. I also tried to specify the typ for open vi, but nothing helped.
    Where is the mistake and how could i resolve the problem?
    Regards
    Henrik

    Ok, after advice i found an example which uses this function. I missed
    the entry to browse for the vi control to the open vi.
    Now it runs perfect...
    Henrik
    Henrik Skupin schrieb:
    >
    > Hi,
    >
    > i just decided to change the call to a capacious vi from static to
    > dynamical. I had made some same things with LabVIEW 5.x some time ago.
    > But with 6i i run in trouble. I opened a vi reference and wanted to wire
    > it to the dynamic function call. In that case i always get a dotted
    > line. I also tried to specify the typ for open vi, but nothing helped.
    >
    > Where is the mistake and how could i resolve the problem?
    >
    > Regards
    > Henrik

  • Call Transaction in background mode

    Hi everyone,
    What I am currently trying to do is to perform a 'call transaction' while forcing the 'background processing' mode even when the user is running the program in online mode; this allows me to retrieve a lot more messages that are useful to the user than the messages generated in online mode.
    As long as I have seen there is no field for that in the options table that can be passed to the 'call transaction' sentence. The only way to see that behavior while in online mode is by 'playing back' a recording thru the SHDB transaction and checking the 'Simulate background' option.
    My first attempt was to set the SY-BATCH flag before doing the call transaction but it doesn't work, the flag seems to reset itself with the correct value during the call.
    Any comments on this would be greatly appreciated.
    Regards,
    Sergio

    You would have to create a job on the fly to do this.  This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X'

  • Call transaction mode 'A' and mode 'N'

    Hi all
    In my below mentioned code statement bdc call transaction eg33 mode 'A' is working fine in both programs main program and called(submit) program (highlighted here). But if I give mode 'N' in both called and calling program call transaction  the called program using submit is not at all called. Suggest me what to do if i want to run it in background.Write now its runing in foreground and user has to press enter many times which i want to avoid.
    REPORT  zac_eg33 NO STANDARD PAGE HEADING
                     LINE-SIZE 100.
    TABLES: EABL,
            BUT000,
            ZISUH0003.
    DATA: IT_STATUS TYPE ZISUH0003.
    DATA: G_INDEX TYPE I,
          G_START_COL TYPE I VALUE '1',      "start column
          G_START_ROW TYPE I VALUE '14',      "start row
          G_END_COL   TYPE I VALUE '18',     "maximum column
          G_END_ROW   TYPE I VALUE '75',  "maximum row
          G_TEXT(20),                         "stores error messages
          G_PAGES        TYPE I,
          G_CURRENT_PAGE TYPE I,
          G_COUNT LIKE SY-DBCNT.
    data: l_file   type file_table,
          file1    type string,
          l_title  type string,
          LENGTH   TYPE I,
          FILES    type filetable,
          SUBRC    type i,
          STR_FILE type STRING,
          D_FILE   type RLGRAP-FILENAME,
          filename TYPE String,
          L_itab_date(10).
    FIELD-SYMBOLS : <FS>.
    DATA msgtext(80).
    DATA: IT_EXCEL LIKE STANDARD TABLE OF ALSMEX_TABLINE WITH HEADER LINE,
          IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
    TYPES: BEGIN OF TY_OPEN,
            HAUS LIKE REG30-HAUS,
            EADAT(10),
            GERAETNEU LIKE REG30-GERAETNEU,
            MESSDRCK LIKE REG30-MESSDRCK,
            ZWSTANDCE LIKE REG30-ZWSTANDCE,
            XYZ LIKE EGPLD-DEVLOC,
          END OF TY_OPEN.
    DATA : T_ANLAGE LIKE EANLD-ANLAGE,
           VSTELLE LIKE EVBS-VSTELLE,
           S_ANLAGE LIKE EANLD-ANLAGE,
           temp_c(7).
    DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
    DATA: BDCDATA1 TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: P_FILE like RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN END OF BLOCK 1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE  .
      PERFORM GET_FILE_NAME.
      MOVE FILENAME TO P_FILE.
    *START-OF-SELECTION.
    *CLEAR IT_EXCEL.
    START-OF-SELECTION.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = p_file
        I_BEGIN_COL                   = 1  "VF_START_COL
        I_BEGIN_ROW                   = 2  "VF_START_ROW
        I_END_COL                     = 5  "VF_END_COL
        I_END_ROW                     = 10000  "VF_END_ROW
      TABLES
        INTERN                        = IT_EXCEL
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF IT_EXCEL[] IS INITIAL.
      G_TEXT = 'No Data Uploaded'.
    ELSE.
      SORT IT_EXCEL BY ROW COL.
      LOOP AT IT_EXCEL.
        MOVE : IT_EXCEL-COL TO G_INDEX.
        ASSIGN COMPONENT G_INDEX OF STRUCTURE IT_OPEN TO <FS>.
        MOVE IT_EXCEL-VALUE TO <FS>.
        AT END OF ROW.
          IF NOT IT_OPEN IS INITIAL.
          APPEND IT_OPEN." TO IT_LINE.
          CLEAR IT_OPEN.
          CLEAR IT_EXCEL.
          ENDIF.
        ENDAT.
      ENDLOOP.
    ENDIF.
    REFRESH IT_EXCEL.
    ULINE.
    FORMAT COLOR 3 ON.
    WRITE: /1 sy-vline ,
           2 'Material No.' ,
           25 sy-vline,
            2 'Logs' ,
            100 sy-vline.
    uline.
    FORMAT COLOR OFF.
    LOOP AT IT_OPEN.
    REFRESH BDCDATA1.
    clear : temp_c.
    move it_open-MESSDRCK to temp_c.
    condense : temp_c.
    PERFORM MAP1.
    *CALL TRANSACTION 'EG33' USING BDCDATA1 MODE 'A' MESSAGES INTO IT_MESS.
    GET PARAMETER ID 'GEP' FIELD it_open-XYZ.
    SET PARAMETER ID 'IFL' FIELD it_open-XYZ.
    *MESSAGE X003(IA) INTO msgtext.
    *IF MSGTEXT = 'Only single installation is allowed at functional location &'.
    *EXIT.
    *ELSE.
    SUBMIT ZIL02_BDC and return.*
    ENDIF.
    DATA: G_INSNO LIKE IT_OPEN-HAUS.
    IF NOT IT_MESS[] IS INITIAL.
      G_INSNO = IT_OPEN-HAUS.
      PERFORM GET_MESSAGES  TABLES IT_MESS USING G_INSNO." IT_LINE.
    ENDIF.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
    IF SY-SUBRC NE 0.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'S'  MSGNR = '622'.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
    SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
    MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
    MOVE 'X' TO IT_STATUS-RFC.
    *perform get_date_format using IT_OPEN-EADAT.
    MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
    SELECT SINGLE ANLAGE FROM ZISUH0003 INTO  S_ANLAGE WHERE ANLAGE =
    T_ANLAGE.
      IF SY-SUBRC EQ 4.
        INSERT ZISUH0003 FROM IT_STATUS.
      ELSE.
        UPDATE ZISUH0003 FROM IT_STATUS.
      ENDIF.
      ENDIF.
      ENDIF.
      REFRESH IT_MESS.
      CLEAR   IT_MESS.
    ENDLOOP.
    *PERFORM BDC_OPEN_READING.
    MESSAGE S013(ZPS).
    *&      Form  GET_FILE_NAME
          text
    -->  p1        text
    <--  p2        text
    FORM GET_FILE_NAME .
    REFRESH FILES.
    call method cl_gui_frontend_services=>file_open_dialog
                exporting
                  window_title            = l_title
                changing
                  file_table              = files
                  rc                      = subrc
                exceptions
                  file_open_dialog_failed = 1
                  cntl_error              = 2
                  error_no_gui            = 3
                  others                  = 4.
              check sy-subrc = 0.
              loop at files into l_file.
                str_file = l_file.
                move str_file to filename.
                exit.
              endloop.
    ENDFORM.                    " GET_FILE_NAME
    *&      Form  BDC_OPEN_READING
          text
    -->  p1        text
    <--  p2        text
    FORM BDC_OPEN_READING .
    *DATA: G_INSNO LIKE IT_OPEN-HAUS.
    *IF NOT IT_MESS[] IS INITIAL.
    G_INSNO = IT_OPEN-HAUS.
    PERFORM GET_MESSAGES  TABLES IT_MESS USING G_INSNO." IT_LINE.
    *ENDIF.
    *READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
    *IF SY-SUBRC NE 0.
    *READ TABLE IT_MESS WITH KEY MSGTYP = 'S'  MSGNR = '622'.
    *IF SY-SUBRC EQ 0.
    *SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
    *SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
    *MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
    *MOVE 'X' TO IT_STATUS-RFC.
    **perform get_date_format using IT_OPEN-EADAT.
    *MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
    *SELECT SINGLE ANLAGE FROM ZISUH0003 INTO  S_ANLAGE WHERE ANLAGE =
    *T_ANLAGE.
    IF SY-SUBRC EQ 4.
       INSERT ZISUH0003 FROM IT_STATUS.
    ELSE.
       UPDATE ZISUH0003 FROM IT_STATUS.
    ENDIF.
    ENDIF.
    ENDIF.
    REFRESH IT_MESS.
    CLEAR   IT_MESS.
    *ENDLOOP.
    ENDFORM.                    " BDC_OPEN_READING
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA1.
      BDCDATA1-PROGRAM  = PROGRAM.
      BDCDATA1-DYNPRO   = DYNPRO.
      BDCDATA1-DYNBEGIN = 'X'.
      APPEND BDCDATA1.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA1.
        BDCDATA1-FNAM = FNAM.
        BDCDATA1-FVAL = FVAL.
        APPEND BDCDATA1.
      ENDIF.
    ENDFORM.
    *&      Form  MAP1
          text
    -->  p1        text
    <--  p2        text
    FORM MAP1 .
    perform bdc_dynpro      using 'SAPLE30D' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-GERAETNEU'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'REG30-HAUS'
                                  IT_OPEN-HAUS.  "'100000000033'.
    perform bdc_field       using 'REG30-EADAT'
                                  IT_OPEN-EADAT.  "'18.02.2006'.
    perform bdc_field       using 'REG30-GERAETNEU'
                                  IT_OPEN-GERAETNEU.  "'66a'.
    perform bdc_dynpro      using 'SAPLE30D' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-TEMP_AREA(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'REG30-MESSDRCK'
                                   temp_c. "IT_OPEN-MESSDRCK'0.0125'.
    perform bdc_field       using 'REG30-GERWECHS'
                                  '05'.
    perform bdc_field       using 'REG30-ANZDAYSOFPERIOD(01)'
                                  '30'.
    perform bdc_field       using 'REG30-ZWSTANDCE(01)'
                                  IT_OPEN-ZWSTANDCE.  "'10'.
    perform bdc_field       using 'REG30-ZWSTANDCE(02)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(01)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(02)'
                                  '0'.
    perform bdc_field       using 'REG30-TEMP_AREA(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-TEMP_AREA(02)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(02)'
                                  '0001'.
    ENDFORM.                    " MAP1
    *&      Form  get_date_format
          text
         -->P_IT_ORDER_TABLE_C_DATE  text
    FORM get_date_format USING L_ITAB_DATE." LIKE SY-DATUM.
    data: d_temp(4),
          m_temp(2),
          y_temp(4).
    *move L_ITAB_DATE to L_ITAB_DATE.
    y_temp = L_ITAB_DATE(4).
    m_temp = L_ITAB_DATE+4(2).
    d_temp = L_ITAB_DATE+6(2).
    CONCATENATE d_temp '.' m_temp '.' y_temp into L_ITAB_DATE.
    ENDFORM.                    " get_date_format
    *&      Form  GET_MESSAGES
          text
         -->P_IT_MESS  text
         -->P_G_INSNO  text
    FORM GET_MESSAGES  TABLES IT_MESS STRUCTURE BDCMSGCOLL USING G_INSNO .
      TABLES T100.
    DATA: L_MSTRING(255).
    LOOP AT IT_MESS WHERE MSGTYP = 'E'   OR MSGTYP = 'S'.
          SELECT SINGLE * FROM T100 WHERE SPRSL = IT_MESS-MSGSPRA
                                    AND   ARBGB = IT_MESS-MSGID
                                    AND   MSGNR = IT_MESS-MSGNR.
          IF SY-SUBRC = 0.
            L_MSTRING = T100-TEXT.
            IF L_MSTRING CS '&1'.
              REPLACE '&1' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&2' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&3' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&4' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ELSE.
              REPLACE '&' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ENDIF.
            CONDENSE L_MSTRING.
          ENDIF.
          CONDENSE G_INSNO.
          CONCATENATE 'For' ' ' G_INSNO ',' L_MSTRING INTO L_MSTRING SEPARATED BY SPACE.
    FORMAT COLOR 2 ON.
    *IF IT_MESS-MSGTYP = 'S' AND IT_MESS-MSGNR = '622'.
    *WRITE: 1 sy-vline,
            L_MSTRING    under 'Error Messages',
           100 sy-vline.
    *ULINE.
    *ELSEIF IT_MESS-MSGTYP = 'E'.
    WRITE: 1 sy-vline,
             L_MSTRING    under 'Logs',
            100 sy-vline.
    ULINE.
    *ENDIF.
    ENDLOOP.
    ENDFORM.                    " GET_MESSAGES
    code for ZIL02_BDC    
    .report ZIL02_BDC
           no standard page heading line-size 255.
    *data : XYZ LIKE EGPLD-DEVLOC.
    TYPES: BEGIN OF TY_OPEN,
            HAUS LIKE REG30-HAUS,
            EADAT(10),
            GERAETNEU LIKE REG30-GERAETNEU,
            MESSDRCK LIKE REG30-MESSDRCK,
            ZWSTANDCE LIKE REG30-ZWSTANDCE,
            XYZ LIKE EGPLD-DEVLOC,
          END OF TY_OPEN.
    DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
    DATA: BDCDATA TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    GET PARAMETER ID 'GEP' FIELD it_open-XYZ.
    DATA :  IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
    *include bdcrecx1.
    start-of-selection.
    perform bdc_dynpro      using 'SAPMILO0' '1110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-TPLNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'IFLO-TPLNR'
                                  it_open-xyz.
    perform bdc_field       using 'RILO0-TPLKZ'
                                  'AO_GP'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-PLTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=T\04'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ITOBATTR-EINZL'.
    perform bdc_field       using 'ITOBATTR-IEQUI'
                                  'X'.
    perform bdc_field       using 'ITOBATTR-EINZL'
                                  'X'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ITOBATTR-EINZL'.
    perform bdc_field       using 'ITOBATTR-IEQUI'
                                  'X'.
    perform bdc_field       using 'ITOBATTR-EINZL'
                             'X'.
    CALL TRANSACTION 'IL02' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD

    Hi Michelle,
    No I havent tried this way. How to do that can you tell me ?
    Regards
    Anu

  • HTMLDataSet: changing URL in "null" doesn't works

    Hi,
    I have this page, but it doesn't works.
    I need to have the possibility that by clicking the "change" button, the "ds1" dataset would become able to load as source the internal table called "sourceTable", but it doesn't works.
    Any suggestion??
    Thanks
    Simone

    This:
    ds1.setURL('prova.php');
    ds1.loadData();
    instead of null.
    could be works, but I need to change the data in the "sourceTable" dinamically: in this new example if I click the button "change source data", it change the content of "sourceTable"; then if I click the "change" button, it load in the "ds1" dataSet the old data from "sourceTable", because the quoted code call "another copy" of prova.php from the server and the new copy of the file contains obviously the original data in "sourceTable".
    Using null instead 'prova.php' it doesn't works too...
    Please, help me!!
    Simone

  • Call Transaction question

    Hi All
    I am developing a program which read a list of transactions(t_progs)and run them one by one and them store in an  internal table(t_progsErr) all the transactions that was NOT execute successfull  .
    But the problem is that some of this transactions has obrigatory parameters which might occur in errors.
    Anyone has an idea how can I solve this ?
    The code is somethin like this:
    loop at t_progs.
        select single *
        from tstc
             where pgmna = t_progs-name.
        call transaction tstc-tcode.
        commit work and wait.
       check if the line after start of selection was     executed and record in case of error****
              move-corresponding t_progs to t_progsErr.
    endloop.
    Thank you very much in advanced.
    Br.
    Cristina

    hi,
    <b>Call transaction     <tcode> using <BDCTAB>
         Mode <A/N/E>
         Update <S/A>
         Messages into <MSGTAB>.
    </b>
    Parameter – 1     is transaction code.
    Parameter – 2     is name of BDCTAB table.
    Parameter – 3     here you are specifying mode in which you execute transaction
              A is all screen mode.  All the screen of transaction are displayed.
              N is no screen mode. No screen is displayed when you execute the transaction.
         E is error screen. Only those screens are displayed wherein you have error record.
    Parameter – 4     here you are specifying update type by which database table is updated.
         S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.
         A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place.  So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).
    Parameter – 5     when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:
    Regards,
    Santosh

  • CLIENT_OLE2 doesn't work at all (I checked everything), HELP!

    I'm trying to use CLIENT_OLE2 in ORACLE 10g environment. When I use OLE2 functions, everything works fine. But when I switch calls to CLIENT_OLE2 it doesn't work. It stops within first call to INVOKE procedure.
    I checked everything about it. I configured WebUtils and Jacob. What were I miss? Please, help....
    Below is my code:
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', 'CLIENT_OLE2: this is a test message');
    -- save document as example.tmp
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'example.doc');
    CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.tmp
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
    CLIENT_OLE2.INVOKE(app,'Quit');
    END;
    Regards - Zbig

    I debug it and it seems suspended (I waited about 15 minutes) on line
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    I tryied webutil demo and it looks the same.
    I am using Jacob v.1.10 and may it be a problem? Now I'm going to test Jacob 1.08.

  • Iphone 4s phone speaker doesn't work

    For the last few months (possibly since the last iOS upgrade), the phone speaker on my iPhone 4s has stopped working. I am not talking about the open (handsfree) type speaker, which does work (as does bluetooth speakers and headsets), but the one you use when holding the phone to your ear.
    This becomes very annoying, when I receive (or want to make) a call where I don't have a handsfree kit available and don't want everyone else to listen in on the call. It certainly doesn't work when I make outbound calls (I just tried it with voicemail). I always need to enable the full speaker to hear anything at all.
    Bizarrely, I took a call last week and it suddenly worked that time, so this seems to be intermittant. The phone was never ever dropped or anything, so I would not expect this to be a hardware issue per se. Any ideas?
    I should note that the phone is still within its first year. Would this be covered under warranty?
    Cheers.

    Yes, all iPhone 4S still have full Warranty. Make Genius Reservation and take iPhone to Apple for resolution.

Maybe you are looking for

  • IPod Mini Compatibility with USB 1.1 (Please help!)

    Hello. I'm turning 21 in a few days and am away at college... my parents, while divorced, decided to join forces to buy me a really nice gift for my 21st birthday... a brand new iPod Mini. My mom attempted to get me a Nano, she tells me, but they wer

  • SD card import faulty - Camera Connection Kit

    I am travelling around and the camera connection kit has been working well for importing pics from my SD cards. However one day the import warned me I was importing 1gb of pics, but only had 0.7gb free on the iPad. It asked me whether to import until

  • Insert date from YUI calendar into mysql table

    Is there a way to insert the date selected from the YUI calendar into a mysql table?

  • Specifying an instance of a repeatable row

    I am trying to bind the data between two fields that are both repeatable. Basically, I have a table with a repeatable row, and in this row the user will enter a part name and a part number and various other information. They will also specify wither

  • Buffered Reader

    try      fileNum = 1;      inputFile = new BufferedReader(new FileReader("PostFix" + fileNum + ".txt")); catch(FileNotFoundException e)      //whatever      }It doesn't seem to know this "FileNotFoundException"... any ideas? Edited by: micronXDXD on