How can we know the return code of BDC Program ?

Hi All,
Please tell me : How can we know the return code of BDC Program when being exceuted in Session or in Transaction mode.
In my program, we are uploading data from Excel sheet to SAP via BDC
The records that are not updated we want to create a log file.
Now to know whether a record is updated ot not, wat syst field shloud be used?
Its urgent....
<b>Reward Point will be there ....</b>
Thanks,
Harish

Hi harish,
try the logic in this code ...
i had attached input file in the end.
TYPES: begin of errmess,
        msgnr type t100-msgnr,
        text type t100-text,
       end of errmess.
TABLES : t100.
DATA: BEGIN OF DD_VA01,
       AUART TYPE VBAK-AUART,
       KUNNR TYPE RV45A-KUNNR,
       BSTKD TYPE VBKD-BSTKD,
       MABNR TYPE RV45A-MABNR,
       KWMENG(2) type C,
       KBETR(2) type C,
      END OF DD_VA01.
DATA:IT_VA01     Like TABLE OF DD_VA01,
     WA_VA01     Like LINE  OF IT_VA01,
     WA_VA01_F   Like LINE  OF IT_VA01,
     IT_BDCDATA  TYPE TABLE OF BDCDATA,
     WA_BDCDATA  Like Line  OF IT_BDCDATA,
     W_FNAME     TYPE STRING,
     messtab like bdcmsgcoll occurs 0 with header line,
     it_errmess type table of errmess,
     wa_errmess like line of it_errmess,
     err_message type string.
data: zf1 type i,
      zc1 type c value '2',
      fn(20) type c.
Main Code ************************************************************
PERFORM get_input using 'C:\Documents and Settings\ic881592\Desktop\Daran_bdc_VA01-e.txt'.
SORT IT_VA01 BY AUART KUNNR BSTKD.
LOOP AT IT_VA01 INTO WA_VA01.
  if WA_VA01_F-AUART <> WA_VA01-AUART OR
     WA_VA01_F-KUNNR <> WA_VA01-KUNNR OR
     WA_VA01_F-BSTKD <> WA_VA01-BSTKD.
       PERFORM set_header_flag.
       PERFORM create_bdc_header_data.
  endif.
  PERFORM create_bdc_item_data.
ENDLOOP.
PERFORM call_transaction.
PERFORM errorlog.
Procedures ***********************************************************
form get_input using w_fname.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME            = W_FNAME
      HAS_FIELD_SEPARATOR = '#'
    TABLES
      DATA_TAB            = IT_VA01.
endform.
form call_transaction.
    PERFORM bdc_field       using 'BDC_OKCODE' '/11'.
    CALL TRANSACTION 'VA01' USING IT_BDCDATA MODE 'A' messages into messtab.
    refresh it_bdcdata.
endform.
FORM set_header_flag.
       WA_VA01_F-AUART = WA_VA01-AUART.
       WA_VA01_F-KUNNR = WA_VA01-KUNNR.
       WA_VA01_F-BSTKD = WA_VA01-BSTKD.
       if zf1 = 1.
           PERFORM call_transaction.
       endif.
       zf1 = 1.
endform.   "set_header_flag.
form create_bdc_header_data.
     perform bdc_dynpro      using 'SAPMV45A' '0101'.
     perform bdc_field       using 'VBAK-AUART' WA_VA01-AUART.
     perform bdc_field       using 'BDC_OKCODE' '/00'.
     perform bdc_dynpro      using 'SAPMV45A' '4001'.
     perform bdc_field       using 'KUAGV-KUNNR' WA_VA01-KUNNR.
     perform bdc_field       using 'VBKD-BSTKD' WA_VA01-BSTKD.
     perform bdc_field       using 'BDC_OKCODE' '/00'.
     perform bdc_dynpro      using 'SAPMSSY0' '0120'.
     perform bdc_field       using 'BDC_CURSOR' '04/06'.
     perform bdc_field       using 'BDC_OKCODE' '=CHOO'.
     perform bdc_dynpro      using 'SAPMV45A' '4001'.
     PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
endform. "create_bdcdata
FORM create_bdc_item_data.
     CONCATENATE 'RV45A-KWMENG(' zc1 ')' INTO FN.
     perform bdc_field       using 'BDC_CURSOR' FN.
     perform bdc_field       using FN WA_VA01-KWMENG.
     CONCATENATE 'KOMV-KBETR(' zc1 ')' INTO FN.
     perform bdc_field       using FN WA_VA01-KBETR.
     CONCATENATE 'RV45A-MABNR(' zc1 ')' INTO FN.
     perform bdc_field       using FN WA_VA01-MABNR.
     perform bdc_dynpro      using 'SAPMV45A' '4001'.
     PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
ENDFORM.
form errorlog.
  LOOP AT MESSTAB .
    if MESSTAB-MSGNR = '311' or MESSTAB-MSGTYP = 'E'.
        SELECT SINGLE msgnr text FROM T100
                        into wa_errmess
                        WHERE SPRSL = MESSTAB-MSGSPRA
                          AND ARBGB = MESSTAB-MSGID
                          AND MSGNR = MESSTAB-MSGNR.
        IF SY-SUBRC = 0.
          err_message = wa_errmess-TEXT.
          IF err_message CS '&1'.
            REPLACE '&1' WITH MESSTAB-MSGV1 INTO err_message.
            REPLACE '&2' WITH MESSTAB-MSGV2 INTO err_message.
            REPLACE '&3' WITH MESSTAB-MSGV3 INTO err_message.
            REPLACE '&4' WITH MESSTAB-MSGV4 INTO err_message.
          ELSE.
            REPLACE '&' WITH MESSTAB-MSGV1 INTO err_message.
            REPLACE '&' WITH MESSTAB-MSGV2 INTO err_message.
            REPLACE '&' WITH MESSTAB-MSGV3 INTO err_message.
            REPLACE '&' WITH MESSTAB-MSGV4 INTO err_message.
          ENDIF.
          CONDENSE err_message.
          WRITE: / MESSTAB-MSGTYP, err_message .
        ELSE.
          WRITE: / MESSTAB.
        ENDIF.
    endif.
  ENDLOOP.
endform. "errorlog
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
  WA_BDCDATA-PROGRAM  = PROGRAM.
  WA_BDCDATA-DYNPRO   = DYNPRO.
  WA_BDCDATA-DYNBEGIN = 'X'.
  APPEND WA_BDCDATA TO IT_BDCDATA.
  CLEAR  WA_BDCDATA.
ENDFORM.
FORM BDC_FIELD USING FNAM FVAL.
  WA_BDCDATA-FNAM = FNAM.
  WA_BDCDATA-FVAL = FVAL.
  APPEND WA_BDCDATA TO IT_BDCDATA.
  CLEAR  WA_BDCDATA.
ENDFORM.
input file :
OR     2148     0001235     R-1162     8     17
OR     2148     0001235     R-1161     2     30
OR     2148     0001235     100-400     6     25
OR     2148     0001235     R-1162     4     12
OR     2148     0001236     R-1162     3     12
OR     2148     0001236     R-1161     2     30
OR     2148     0001236     100-400     1     25
OR     2148     0001236     R-1162     7     12
OR     2148     0001236     R-1161     8     30
OR     2148     0001236     100-400     10     25
OR     2148     0001235     R-1161     5     30
OR     2148     0001235     100-400     2     25
OR     2148     0001235     R-11621     3     12
OR     2148     0001235     R-1161     2     30
OR     2148     0001235     100-400     1     25
OR     2148     0001235     R-1162     7     12
OR     2148     0001235     R-1161     8     30
OR     2148     0001235     100-400     10     25
OR     2148     0001236     R-1162     8     17
OR     2148     0001236     R-1161     2     30
OR     2148     0001236     100-400     6     25
OR     2148     0001236     R-1162     4     12
OR     2148     0001236     R-1161     5     30
OR     2148     0001236     100-400     2     25

Similar Messages

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • HOW CAN I KNOW THE FUNCTION CODE OF CREATE NEW SESSION

    <b>HOW</b> CAN I KNOW THE FUNCTION CODE OF CREATE NEW SESSION?
    THANKS...

    Hi
    Please put a "/n" (to open a new session after killing the current session)
    or "/o" (to open a new session without killing the current session)
    or "/i" (to end the current session) before the below T Codes as per your requirement...
    Try thistoo <b>O0</b>
    <u><b>demo-like programs</b></u>
    RSIMC000
    RSIMC001
    RSIMC002
    RSIMC003
    RSIMCTRX
    RSIMCTST
    Reward all helpfull answers
    Regards
    Pavan

  • How can we know the source code no.of lines

    hi guys!
    please help me, how can we check the source code(No. of lines)in program with out comments

    hi,
    Use this code. Replace with your program name with the text in bold. V_lines gives the no of lines of code excluding comments and as well blank lines.
    TYPES: BEGIN OF t_type,
             line(72),
           END OF t_type.
    DATA: program LIKE sy-repid
                     VALUE <b>'Z_ABC_INNER_JOIN'</b>,
          t TYPE STANDARD TABLE OF t_type WITH HEADER LINE.
    DATA: v_lines TYPE i.
    READ REPORT program INTO t.
    IF sy-subrc =0.
      LOOP AT t.
        IF t+0(1) = '*' OR t IS INITIAL.
          DELETE t INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t LINES v_lines.
    ENDIF.
    WRITE : v_lines.
    Regards,
    Sailaja.

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • How can we know the format of report

    Developed a web application using java SDK.
    How can we know the format of report that is is it a crystal report , PDF or excel or hyperling.
    If it is crystal report then i use openDoc and the report is opened but if its a hyperlink or PDf i am not able to open the report .
    Please help.
    Thanks

    Check the si_kind or so_progid property of object. You can use oInfoObject.getKind() to retrieve that.
    a crystal report would return crystalreport a pdf would return pdf etc.

  • How can I get the HTML codes in illustrator?

    Hi, I am a graphic designer, and I am getting into the web world, I wanna know how can I get the HTML codes to upload a web design made using Illustrator,...¡?Does any one know?Please let me know...

    everyone here is right, dreamweaver is better and you will need to understand html for this to work. HOWEVER, you can make a functional website using just illustrator and notepad (or text edit if you're on a mac).
    Design your site in illy, slice it up with the slice tool. http://s23.postimg.org/mv311kpp7/test_illy.jpg 
    Save for web and select html and images, you'll get an html file and an images folder. Open the HTML file in your text editing program and it will look like this: http://s10.postimg.org/f32nf6r2h/html_stuff.jpg   you'll have to know HTML codes but you can find tutorials online for most stuff, you'll just have to figure it out. In my fake site, i linked a button to google so i had to add <a href> tags to the code. http://s22.postimg.org/5avpadhch/a_href.jpg  save the html file and open it in your web browser, hopefully not IE. You can't tell in the picture but the middle button actually does link to google. http://s21.postimg.org/qd77slqmf/firefox.jpg

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • How can i know the no of servlets

    how can i know the no of servlets present in single application

    you webapp (servlet) can create a static variable. when a request has been made, you increment this number...provides a request parameter (http param) that will return this count number.

  • How can I know the right component for a transaction?

    Hi, I have a question
    When creating a new message in Solution Manager, notif_create, how can I know the right component given the transaction code or program name?
    Thanks in advance
    Edited by: María Valdés on Aug 19, 2008 6:25 PM

    Hello Maria,
    Well, in the Support Message window, place the cursor in Component box and press F4. This will brings up another window which contains the components list to which you are authorized. From that list you can choose about which component you want to create that particular support message.
    For example, if you are from Quality department, the following can be visible when you press F4.
    QM - Quality Management
      -- QM-ADB Adobe Forms
           -- QM-ADB-PRN Print Forms
      For the Print Forms, the component will be QM-ADB-PRN
    I hope it helps.
    Cheers,
    Satish.

  • Hi experts . how can we know the stock details for a perticular plant?

    hi experts . how can we know the stock details for a perticular plant

    check this code
    REPORT  YSG_MATSTK_REP    LINE-SIZE 220
                              LINE-COUNT 50(5).
    *&                       DATA DECLARATION                              *
    TABLES: MARA,              "GENERAL MASTER DATA
            MARC,              "PLANT DATA FOR MATERIAL
            MARD,              "STORAGE LOCATION DATA FOR MATERIAL
            MBEW,              "MATERIAL VALUATION
            MVKE,              "SALES DATA FOR MATERIAL
            MAKT.              "MATERIAL DESCRIPTION
    DATA: BEGIN OF I_MARA OCCURS 0,
               MATNR LIKE MARA-MATNR,"MATERIAL NUMBER
               MBRSH LIKE MARA-MBRSH,"INDUSTRY SECTOR
               MEINS LIKE MARA-MEINS,"BASE UNIT OF MEASURE
          END OF I_MARA.
    DATA: BEGIN OF I_MARC OCCURS 0,
              MATNR LIKE MARC-MATNR,"MATERIAL NUMBER
              WERKS LIKE MARC-WERKS,"PLANT
              LVORM LIKE MARC-LVORM,"FLAG MATERIAL FOR DELETION AT PLANT
                                    "LEVEL
              PSTAT LIKE MARC-PSTAT,"MAINTENANCE STATUS
              DISPO LIKE MARC-DISPO,"MRP CONTROLLER
          END OF I_MARC.
    DATA: BEGIN OF I_MAKT OCCURS 0,
               MATNR LIKE MAKT-MATNR,"MATERIAL NUMBER
               MAKTX LIKE MAKT-MAKTX,"MATERIAL DESCRIPTION
          END OF I_MAKT.
    DATA: BEGIN OF I_MVKE OCCURS 0,
               MATNR LIKE MVKE-MATNR,"MATERIAL NUMBER
               VKORG LIKE MVKE-VKORG,"SALES ORGANIZATION
               VTWEG LIKE MVKE-VTWEG,"DISTRIBUTION CHANNEL
          END OF I_MVKE.
    DATA: BEGIN OF I_MARD OCCURS 0,
               MATNR LIKE MARD-MATNR,"MATERIAL NUMBER
               LGORT LIKE MARD-LGORT,"STORAGE LOCATION
               LABST LIKE MARD-LABST,"VALUATED STOCK WITH UNRESTRICTED USE
          END OF I_MARD.
    DATA: BEGIN OF I_OUT OCCURS 0,
            MATNR LIKE MARC-MATNR,
            WERKS LIKE MARC-WERKS,
            LVORM LIKE MARC-LVORM,
            PSTAT LIKE MARC-PSTAT,
            DISPO LIKE MARC-DISPO,
            MBRSH LIKE MARA-MBRSH,
            MEINS LIKE MARA-MEINS,
            MAKTX LIKE MAKT-MAKTX,
            VKORG LIKE MVKE-VKORG,
            VTWEG LIKE MVKE-VTWEG,
            LGORT LIKE MARD-LGORT,
            LABST LIKE MARD-LABST,
          END OF I_OUT.
    DATA : TOT TYPE I. " TOT - TOTAL TO PRINT STOCK
    *&                   S E L E C T I O N - S C R E E N                   *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY.
    PARAMETERS: P_WERKS LIKE MARC-WERKS OBLIGATORY.
    SELECT-OPTIONS: S_LGORT FOR MARD-LGORT,
                    S_DISPO FOR MARC-DISPO.
    SELECTION-SCREEN END OF BLOCK B1.
    *&                  I N I T I A L I Z A T I O N                      *
    INITIALIZATION.
      S_MATNR-SIGN = 'I'.
      S_MATNR-OPTION = 'EQ'.
      S_MATNR-LOW = 'M-14'.
      S_MATNR-HIGH = 'M-18'.
      P_WERKS = '3000'.
      S_LGORT-SIGN = 'I'.
      S_LGORT-OPTION = 'EQ'.
      S_LGORT-LOW = '0001'.
      S_LGORT-HIGH = '0004'.
      S_DISPO-SIGN = 'I'.
      S_DISPO-OPTION = 'EQ'.
      S_DISPO-LOW = '001'.
      S_DISPO-HIGH = '002'.
      APPEND S_DISPO.
      APPEND S_LGORT.
      APPEND S_MATNR.
      CLEAR S_DISPO.
      CLEAR S_LGORT.
      CLEAR S_MATNR.
    *&             S T A R T - O F - S E L E C T I O N                     *
    START-OF-SELECTION.
      SELECT MATNR WERKS LVORM DISPO FROM MARC
      INTO CORRESPONDING FIELDS OF TABLE I_MARC
                          WHERE WERKS EQ P_WERKS
                          AND MATNR IN S_MATNR
                          AND DISPO IN S_DISPO
                          AND WERKS = P_WERKS.
      IF I_MARC[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARC'.
        EXIT.
      ENDIF.
      SELECT MATNR LGORT LABST FROM MARD INTO TABLE  I_MARD
                          FOR ALL ENTRIES IN I_MARC
                          WHERE MATNR = I_MARC-MATNR
                          AND WERKS EQ P_WERKS
                          AND LGORT IN S_LGORT.
      IF I_MARD[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARD'.
        EXIT.
      ENDIF.
      SELECT MATNR VKORG VTWEG FROM MVKE INTO TABLE I_MVKE
                          FOR ALL ENTRIES IN I_MARC
                          WHERE MATNR = I_MARC-MATNR.
    IF I_MVKE[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MVKE'.
        EXIT.
      ENDIF.
      LOOP AT I_MARC.
        MOVE-CORRESPONDING I_MARC TO I_OUT.
        CLEAR MARC.
        SELECT SINGLE MATNR MBRSH MEINS FROM MARA
                         INTO CORRESPONDING FIELDS OF MARA
                         WHERE MATNR = I_OUT-MATNR.
        IF SY-SUBRC = 0.
          MOVE: MARA-MBRSH TO I_OUT-MBRSH,
                MARA-MEINS TO I_OUT-MEINS.
        ELSE.
          CONTINUE.
        ENDIF.
        SELECT SINGLE MATNR MAKTX FROM MAKT
                        INTO  CORRESPONDING FIELDS OF MAKT
                        WHERE  MATNR = I_OUT-MATNR.
        IF SY-SUBRC = 0.
          MOVE: MAKT-MAKTX TO I_OUT-MAKTX.
        ELSE.
          CONTINUE.
        ENDIF.
        LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR.
          MOVE: I_MARD-LABST TO I_OUT-LABST,
                I_MARD-LGORT TO I_OUT-LGORT.
          APPEND I_OUT.
        ENDLOOP.
        LOOP AT I_MVKE WHERE MATNR = I_MARC-MATNR.
          MOVE: I_MVKE-VKORG TO I_OUT-VKORG,
                I_MVKE-VTWEG TO I_OUT-VTWEG.
          APPEND I_OUT.
        ENDLOOP.
        CLEAR I_OUT.
      ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME = 'C:\matstk.TXT'
       FILETYPE                        = 'ASC'
      TABLES
        DATA_TAB                        = I_OUT.
    *&                  T O P - O F - P A G E                              *
    TOP-OF-PAGE.
      WRITE:/ 'DATE:' ,SY-DATUM.
    *&                  E N D - O F - P A G E                              *
    END-OF-PAGE.
      WRITE: / SY-ULINE,
             /100 'PAGNO: ',SY-PAGNO,
             SY-ULINE.
    *&        E N D -- O F --  S E L E C T I O N                           *
    END-OF-SELECTION.
      LOOP AT I_OUT.
        AT FIRST.
          WRITE :/ 'MATERIAL EXTRACTION REPORT',
                   SY-ULINE.
        ENDAT.
        WRITE:/    SY-VLINE,
                   I_OUT-MATNR,SY-VLINE,
                   I_OUT-MEINS,SY-VLINE,
                   I_OUT-WERKS,SY-VLINE,
                   I_OUT-LVORM,SY-VLINE,
                   I_OUT-PSTAT,SY-VLINE,
                   I_OUT-DISPO,SY-VLINE,
                   I_OUT-MBRSH,SY-VLINE,
                   I_OUT-MAKTX,SY-VLINE,
                   I_OUT-VKORG,SY-VLINE,
                   I_OUT-VTWEG,SY-VLINE,
                   I_OUT-LGORT,SY-VLINE,
                   I_OUT-LABST,SY-VLINE.
        TOT = TOT + I_OUT-LABST.
        AT NEW MATNR.
          WRITE : 'NEW RECORD',
                   SY-VLINE.
        ENDAT.
        AT END OF LABST.
          WRITE : 'STOCK = ',
                   TOT,
                   SY-VLINE,
                   SY-ULINE.
        ENDAT.
        AT LAST.
          FORMAT COLOR 7 INTENSIFIED OFF.
          WRITE : /159 'TOTAL STOCK = ',
                     TOT.
        ENDAT.
      ENDLOOP.
        WRITE : /159 'TOTAL STOCK = ',
                     TOT.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • How can I get the connection code for the magic track pad?

    I want to use my magic trackpad and I scrapped the box with the connection code. How can I get it again? I don't need it for Mac, but yes for windows...

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How can I know the name(s) of font from built-in font dialog from Word VSTO AddIns.

    Hi, All !!
    I would like to extract some values from the built-in font dialogbox "wdDialogFormatFont" through VSTO AddIns.
    Figured out short codes;
    Microsoft.Office.Interop.Word.Dialog 
    F_DLG  =  Globals.ThisAddIn.Application.Dialogs[Microsoft.Office.Interop.Word.WdWordDialog.wdDialogFormatFont];    
    F_DLG.Show();
    MessageBox.Show( F_DLG.FontMajor.ToString() );
    MessageBox.Show( F_DLG.FontHighAnsi.ToString() );
    Ther last two lines (red ones) do not work at all.
    How can I know the name of the fonts ? (English and Non-English)
    In VBA, it works beautifully.
    Thanks !!

    Hi,
    According to the description, you want to get some options from the build-in dialog dispaly by code.
    As far as I know, we can declare an dynamic object to achieve the goal. Here is the code for your reference:
    dynamic F_DLG = Globals.ThisAddIn.Application.Dialogs[Microsoft.Office.Interop.Word.WdWordDialog.wdDialogFormatFont];
    F_DLG.Show();
    MessageBox.Show(F_DLG.FontMajor);
    Also we can use refrection to get the property we wanted like below:
    Microsoft.Office.Interop.Word.Dialog F_DLG = Globals.ThisAddIn.Application.Dialogs[Microsoft.Office.Interop.Word.WdWordDialog.wdDialogFormatFont];
    F_DLG.Show();
    MessageBox.Show(F_DLG.GetType().InvokeMember("FontMajor", BindingFlags.GetProperty, null, F_DLG, null).ToString());
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I know my restiraction code?

    How can I know my restiraction code?

    If you lost the code you need to restore the phone as new and not from a backup.  There is one way I know of to reset or chnage the restrictions code and that is to use a new feature of iphonebackup extractor software on your computer
    Read this
    http://www.iphonebackupextractor.com/blog/2013/apr/24/reset-ipad-iphone-restrict ions-passcode

Maybe you are looking for

  • Networking Issues after Upgrading to Windows 8.1

    I have a Windows 8 desktop PC that is working fine with my network.  I can browse the Internet fine using all major browsers etc.  After upgrading to Windows 8.1 through the Windows Store I noticed that my wired networking was not working correctly.

  • I am trying to transfer songs to windows and it is saying that the origianl file can not be found

    I am having an issue trying to take my songs from Itunes to a mp3 version.  I am getting a window that says "None of the selected files were converted because they can not be found"  I am not really sure what to do? I also get a message that says the

  • Mission Control keyboard shortcut problems

    I have a problem with my keyboard shortcuts (changing space with Mission Control) Sometimes they do not work... then I have to reset PRAM (using this guide http://support.apple.com/kb/ht1379) and then it works again. Then after some time it fails aga

  • DRQ# Payment Wizard Loses Sort Option

    Hi, The sort function in the SAP payment wizard, loses it's settings in Step 6. In Step 3, you can sort the BP name field to sort by alpha, but in Step 6 the sort converts back to numeric, by BP Code. Our client is having problems with this when maki

  • Using iDVD Is A Widescreen DVD Possible From Anamorphic DV ?

    I have down-converted HDV to DV and edited it in Final Cut Express. When burned in iDVD the video appears as a squashed 4:3 instead of 16:9. I have been following these instructions to "trick" iDVD into making a widescreen movie but I can't get the n