USING bdcdata
MODE p_mode
UPDATE c_update
MESSAGES INTO messtab.
carried out mode |
effect |
"A" |
All input display screen, if the screen contains the function code in bdc_tab, a small window displays the function code appears. It is the default, if not below the value specified, are considered to be A. |
"E" |
Display screen only when an error occurs, the user can correct the data, the program can continue processing as amended. |
"N" |
Silent mode does not display the screen. If you reach the breakpoint is called the transaction, the system processing is terminated, and set up some system fields. sy-subrc to 1001, SY-msgty as "S", SY-msgid is "00", SY-msgno as "344", SY-MSGV1 as "SAPMSSY3", SY-msgv2 as "0131." |
"P" |
Debug mode screen is not displayed. If you reach the breakpoint is called the transaction, the system will automatically go to ABAP debugger, this approach is mainly used for the debugging process. |
Update Mode |
effect |
"A" |
Asynchronous update. Updated called program implemented in accordance with the statement COMMIT WORK AND WAIT and additional ways not specified. That is, data is updated into the update queue, performed by another special update process, once the main program will continue to submit data, submitted updated regardless of whether the execution is completed. This approach is more suitable to use a large number of update transaction code designating data, such as maintenance of the master data and the like. |
"S" |
Synchronization Update. Updated called program execution in accordance with the specified COMMIT WORK AND WAIT statement and additional ways. That is, data is updated into the update queue, executed by a dedicated update process, but the main program will wait until the data submitted complete and return the result information before continuing execution. This embodiment is more suitable for data consistency requirements are relatively high, continuous processing of a plurality of different transaction codes. |
"L" |
Local update. Updated called program executed in the manner of the implementation of SET UPDATE TASK LOCAL statement. In other words, the data update process is completed in the main program is located, it is called the main program must wait until the transaction is complete before continuing execution. |
rm16_werks FROM p_plwrk
rm16_matnr FROM p_matnr TO MEMORY ID 'ZPHRRM13'.
SUBMIT zphrrm13 AND RETURN.
IMPORT mdezx mdpsx mdkp mdsta mdstal FROM MEMORY ID 'ZPHRRM13'