Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

few more basic doubts in ABAP

Former Member
0 Likes
1,046

Hi Floks,

I have few doubts in ABAP programming could please clarify that ..

1. how to handle error messages in Call transaction and Call Session method .

2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.

3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?

4.how many message types available ? what are they ?

5.when call transction or Call session can be used ? how to decide which method is best for requirement ?

could you please help me out . if u have any material or links forward to sunithadf@gmail.com.

Good Rewards for best answers

Thanks ,

Sunitha

4 REPLIES 4
Read only

Former Member
0 Likes
921

Here are the answers to your questions.

1. how to handle error messages in Call transaction and Call Session method .

--> In Call transaction, if you see the command, messages are populated into an internal table. You need to read last record of this table. Using Function module FORMAT_MESSAGE, you can get details of the message. For session method, session gets created and status of session can be seen in transaction SM35. You can process erroneous sessions from here.

2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.

--> Check these links which explain in detail with examples.

3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?

-->PROGRAM - Program Name

DYNPRO - BDC Screen number

DYNBEGIN - BDC screen start (Flag)

FNAM - BDC Field name

FVAL - BDC Field value

______________________________

4.how many message types available ? what are they

-->

A (Abend) Termination

E (Error) Error

I (Info) Information

S (Status) Status message

W (Warning) Warning

X (Exit) Termination with short dump

5.when call transction or Call session can be used ? how to decide which method is best for requirement ?\

--> These threads discuss the same

Read only

paruchuri_nagesh
Active Contributor
0 Likes
921

1) by using BDCMSGCOL structure u have to define one internal table get all the error records into this after that u have to call function FORMAT_MESSAGE.

data : begin of msgtab occurs 0.

include structure bdcmsgcol.

data : end of msgtab.

CALL TRANSACTION 'tcode' using itab mode e/a/n udate a messages into bdcmsg.

in session methad by default it have log file u can process all the records in SM35

2)perform bdc_field using 'bdc_okcode' '=p+' this predefined subroutine u have to call when dealing with table control in BDC. ex XK01 creation of vendor

3)see this in SE11

program

dynpro

dynbegin

fieldname

fieldvalue

are fields in this structure

4) error E( gives error message control remains in until user gives correct input)

abend A (control terminates current program comes to initial screen)

information I ( gives information)

warning w( gives warning message)

exit X (exits the program) leads to short dump analysis

5) if ur uploading large volume of masterdata better to choose for session method.

session method doesnt returns SY-SUBRC.

if ur uploading small amount of transactional data better to go for call transaction

comparitively it is faster than session method.

reward for useful points

regards

Nagesh.Paruchuri

Read only

former_member856923
Discoverer
0 Likes
921

Hi all...

Can anyone please explain in brief this piece of code..

Use of FOR, CORRESPONDING,BASE and LET syntax.

Appreciate your help..

Thanks in advance..

Read only

0 Likes
921

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

https://answers.sap.com/questions/ask.htmlSince you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members. Please note, that your post here won't be answered.