2006 Feb 17 11:09 AM
I want to Update Data through BDC taking Data from Presentation server , and at the same time run the BDC Report in background . The BDC is also a Call Transaction and no sessions will be there .
Hope you fellows got my point
I want to Update Data through BDC taking Data from Presentation server , and at the same time run the BDC Report in background . The BDC is also a Call Transaction and no sessions will be there .
Hope you fellows got my point
2006 Feb 17 11:21 AM
hi Suddha ,
Yes we fellows got your point..
if you want to upload from the presentation server
use GUI_UPLOAD to transfer it into an internal table and then use.
CALL TANSACTION..
regards
satesh
2006 Feb 17 11:25 AM
HI
you want to upload into a internal table or to a transaction.
for transaction
report ZKISHMMPRG
no standard page heading line-size 255.
include bdcrecx1.
parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
*
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
*
Generated data section with specific formatting - DO NOT CHANGE ***
data: begin of record OCCURS 0,
data element: MATNR
MATNR_001(018),
data element: MBRSH
MBRSH_002(001),
data element: MTART
MTART_003(004),
data element: XFELD
KZSEL_01_004(001),
data element: MAKTX
MAKTX_005(040),
data element: MEINS
MEINS_006(003),
data element: MATKL
MATKL_007(009),
data element: SPART
SPART_008(002),
end of record.
End generated data section ***
start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:\Personal\material.txt'
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = RECORD
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*perform open_dataset using dataset.
perform open_group.
loop at record.
<b><your bdc program></b>
endloop.
perform close_group.
*perform close_dataset using dataset.
regards
kishore
2006 Feb 17 11:28 AM
This is not possible as u want the process to run in background and load the file from presentation. When the job starts in background he connection to presentation server is no longer available and hence it will not be possible to load the data from presentation.
If u still want to do something like this then u will have to write a program which will be executed online. This program will load the file from the presentation server and write into database and then submit another program into background which would read this data nad process further. This is possible if it is one time or not being used by multiple user at the same time. This is in simplest form.
2006 Feb 17 11:29 AM
hi,
create a new recording in shdb.after it gets recorded, go to program.inside that, click on "pattern" and give GUI_UPLOAD.after completion, execute the program.then, choose "call transaction" method. it'l run in background.
pls reward points if it's helpful
regards,
sandeep
2006 Feb 17 11:30 AM
I don't think this is possible.
U cannot Upload data from presentation server in
background.
U can run BDC's in background but not upload data from
Presentation server.
2006 Feb 17 12:46 PM
Hi Suddha,
Give the MODE as 'N' in the call transaction method which will run the BDC in the back ground.
CALL TRANSACTION <tcode> USING bdcdata
MODE 'N'....
Rgds,
Balaji
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |