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

bapi

Former Member
0 Likes
472

I appreciate if anyone can answer me the below mentioned quesitons

1) one bapi is calling another bapi , say if the second bapi fails is there any way of reverting back the data entered by the first bapi?

2) why is it not advicable to call another program using submit or call transaction in a bapi?

3) difference between synchronous and asynchronous bapi?

4) dos and donts before designing a bapi?

and some other questions

5) how do u lock a data base table?

6) In dialog programming, is it possible to disable a single row in table control?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
446

Hi,

5) how do u lock a data base table?

You have to create a lock object in SE11 for the table..

Then use the ENQUEUE & DEQUEUE FMs to lock and unlock the records in the table..

6) In dialog programming, is it possible to disable a single row in table control?

Yes...You have to give LOOP AT SCREEN..ENDLOOP.. inside the LOOP AT ITAB..ENDLOOP in the PBO..

Ex..

LOOP AT ITAB WITH CONTROL TC.

MODULE DISABLE.

ENDLOOP.

MODULE DISABLE OUTPUT.

LOOP AT SCREEN.

***Check the conditions.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDMODULE.

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
447

Hi,

5) how do u lock a data base table?

You have to create a lock object in SE11 for the table..

Then use the ENQUEUE & DEQUEUE FMs to lock and unlock the records in the table..

6) In dialog programming, is it possible to disable a single row in table control?

Yes...You have to give LOOP AT SCREEN..ENDLOOP.. inside the LOOP AT ITAB..ENDLOOP in the PBO..

Ex..

LOOP AT ITAB WITH CONTROL TC.

MODULE DISABLE.

ENDLOOP.

MODULE DISABLE OUTPUT.

LOOP AT SCREEN.

***Check the conditions.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDMODULE.

Thanks,

Naren

Read only

0 Likes
446

Naren,

thanks for your answers . I have a doubt again is it possible to keep the first row as visible and the remaining rows as invisible .. i mean in general change the properties of a single row separately or the table control together with all the rows is a single element ?

Read only

Former Member
0 Likes
446

Hi,

Yes..You can do it...You can make the first row as visible and then disable all the remaining rows...

You cannot set this in the attributes of the table control..

you have to write code to disable the row..Please check my previous reply for a sample code..

Thanks,

Naren

Read only

0 Likes
446

ok got it thanks .