Login Form

Best viewed in IE 7.0

ADVERTISEMENTS
ADVERTISEMENT

Developing Web Transactions in ITS - Part III

This is the third part in this series, which talks about, usage of two of the important macros used in ITS development. This will be useful when large amounts of data have to be sent back from the web to the SAP GUI or vice versa. The transfer of the data is done using the macros. This article talks about two such macros (FIELD-GET and FIELD-SET macros), which are used extensively in ITS development.

Before going into the development part let us first have a look at what exactly these two macros are used for.

FIELD-GET macro

FIELD-GET macro is used to get the values of variables from the ITS during PAI. This is useful for retrieving large or unknown amounts of data such as an HTML text area:

  • If the text area contains a small amount of data, you can use a step loop in R/3
  • If the text area contains a large amount of data, a step loop may not be large enough to hold all the data coming from the Web browser, so the text could be truncated.

In this case, the field-get macro is used in the PAI module of the transaction.

FIELD-SET macro

FIELD-SET macro is used to assign values to ITS variables in the active context. This allows setting the values of a single variable (especially if that variable contains a large amount of data) or building up an array of values from one column of a table.

Typically, these values are set in the PBO module of a transaction when preparing data for display. Also, multiple field-set calls can be made in separate PBO modules.

To understand how these macros works, two text areas have been created, one is for entering the text and another for displaying the text.

To view the entire article go to http://www.riyaz.net/blog/developing-web-transactions-in-its-part-iii/

ADVERTISEMENT
Free software downloads