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

abap

Former Member
0 Likes
679

hi guys, i have a set of questions in abap. kindly answer. looking forward for ur available guidence.

1. how do erroe handling in SAP scripts

2. how to do BDC for transcation code FA00.

3.how to know in which tables the data is saved when a structure is given 2 u with out knowing the trasaction code.

4.how to debugg smartforms

5.in reports selection screen, does the text elements get transported along with the program

6. in selection screen of a TCode, if i write a input value 1 one parameter. it should show its relavent data in other parameters below it . how can we do it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

Hi Srihari,

1. Error handling is not possible in scripts. Either do it in print program or call a subroutine from script and do it there.

3. Go to SE84 transaction and search withe the field names that you get with structure.

Regards

Indrajit

5 REPLIES 5
Read only

Former Member
0 Likes
659

Hi Srihari,

1. Error handling is not possible in scripts. Either do it in print program or call a subroutine from script and do it there.

3. Go to SE84 transaction and search withe the field names that you get with structure.

Regards

Indrajit

Read only

0 Likes
658

hi

thanks for ur advice, can u be more ellobrate for my 3rd question (finding out tables 4 structure) , it will be more helpful 2 me. awating ur advice.

regards

srihari

Read only

0 Likes
658

Hi Srihari,

If you can get the field names (like say KUNNR, VBELN etc) from your structure, go to SE84 - expand ABAP DICTIONARY -FIELDS - click on 'TABLE FIELDS' - give the field name and execute - you will get list of tables where there are used.

You can fetch the data from those database tables.

Regards

Indrajit

Read only

0 Likes
658

hi Indrajit,

thank u. for ur gudience.

regards

srihari

Read only

Former Member
0 Likes
658

Hi,

1. how do error handling in SAP scripts

A- We cannot handle errors in scripts directly. However, we can do it in driver program or by calling a subroutine from script.

6. in selection screen of a TCode, if i write a input value 1 one parameter. it should show its relavent data in other parameters below it . how can we do it.

A- It can be done using

AT SELECTION-SCREEN ON p1.

This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.

There are various other options like

at selection screen

...

| { ON {para|selcrit} }

| { ON END OF selcrit }

| { ON BLOCK block }

| { ON RADIOBUTTON GROUP radi }

| { }

| { ON {HELP-REQUEST|VALUE-REQUEST}

| FOR {para|selcrit-low|selcrit-high} }

| { ON EXIT-COMMAND }.

Hope this helps.

Regards,

Richa