Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
However, it_message here contains only the message id and message number values.
So, we have to get the message out of it using the function module
'MESSAGE_TEXT_BUILD' or 'FORMAT_MESSAGE'.
Example :
LOOP AT it_message INTO wa_message WHERE msgtyp EQ 'E'.
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
MSGID
= wa_message-msgid
MSGNR
= wa_message-msgnr
* MSGV1
=''
* MSGV2
=''
* MSGV3
=''
* MSGV4
=''
IMPORTING
MESSAGE_TEXT_OUTPUT
= wa_text
ENDLOOP.
Difference Between BDC and BAPI?
BAPI
BDC
Q What do you do when the system crashes in the middle of a BDC batch
session?
Ans We will look into the error log file (SM35). Check number of records already
updated and delete them from input file and run BDC again.
Q What do you do with errors in BDC batch sessions?
Ans We look into the list of incorrect session and process it again. To correct incorrect
session, we analyze the session to determine which screen and value produced the
error. For small errors in data we correct them interactively otherwise modify batch
input program that has generated the session or many times even the data file.
Q What is the difference between Upload and WS_Upload ?
The difference between WS_Upload and Upload is when you use function Upload it
prompts for a dailog box where in you need to key in the file location. Where as in case
of WS_Upload you specify the file location in the function input parameters itself
Q If I want to execute a program only in background not in foreground is
there any option for this?
The sm37 transaction can be used for running a program in the background. Also in the
session method while processing the session you can specify the processing type as
background or foreground.
Q. Can we write the code both call transaction and session method in single
program?
Ans. Yes it is possible to write call transaction and session in one program.
Q Which BDC you prefer?
Ans. If we want to transfer large amount of data and when we need to use more than
one transaction code we prefer session method. For small or less amount of data and
for single transaction use call transaction.
Q How can we handle table control in BDC?
Ans.We can handle table control using line index
Line index indicates which line of Table control is to be use for BDC transaction
Ex perform bdc_field using RC29K-AUSKZ(01)
Indicates 1st line of table control is going to be used for transaction which is Line index
of Table Control
Q How do you do BDC for a table control?
With other things as usual, there is a special trick that you have to use while doing BDC
for table control. You need to use the BDC OKCODE =P+.
Its the BCD_OKCODE for Page down that can be used for scrolling down in table control.
Q How do you read files from the Application server ?
You can use the commands:
OPEN DATASET > opens the file(dataset) either in read /write mode.
Q What are the problems in processing batch input sessions and How is
batch input process different from processing online ?
PROBLEMS:
i) If the user forgets to opt for keep session then the session will be automatically
removed from the session queue(log remains). However if session is processed we may
delete it manually.
ii)if session processing fails data will not be transferred to SAP database table.
Q how do you save data in bdc tables?
Ans: the data in bdc table is saved by using the field name BDC_OKCODE and field
value of /11.
Q what is the last entry in all bdc tables?
Ans: the last entry of all bdc tables is to save the data by using the field name
BDC_OKCODE and field value of /11.