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,smartform,script

Former Member
0 Likes
324

1)When i'm runing aprogaram in which i have BAPI

and it is sucessfully updating a record But when

i'm debuging the bapi even then the record is getting updated ??

ANS :Yes it will, provided it doesnt need external commit work.

      • What is the solution then ????

2)In script we add field in Layout using perform <name> program <programname>

and where do we write form?? as we dont hav access to Driver progaram.

3)Defference between table and template ?

2 REPLIES 2
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
291

Hi,

3. Template inside a loop will give you the same output as table.Template is static whereas table is dynamic.

Check this link.

In this link,I am explaining both the template and table in detail.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

Check this also.

http://www.erpgenie.com/sap/abap/smartforms_detail.htm

Read only

Former Member
0 Likes
291

1)When i'm runing aprogaram in which i have BAPI

and it is sucessfully updating a record But when

i'm debuging the bapi even then the record is getting updated ??

ANS :Yes it will, provided it doesnt need external commit work.

      • What is the solution then ????

You will get status using BAPIRET Structure ,once you call BAPI FM,then you must use<b> BAPI_TRANSACTION_COMITT FM</b>

2)In script we add field in Layout using perform <name> program <programname>

and where do we write form?? as we dont hav access to Driver progaram.

You can write form routine in se38 by creating new program,Note that ITCSY structure important ,by using ITCSY Structure you can pass data from layout to Program

3)Defference between table and template ?

tables contains both physically and logically -> data

template is nothing but structure and it will have data on run time

Thanks

Seshu