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

get field symbol value across function group.

sudha_naik
Product and Topic Expert
Product and Topic Expert
0 Likes
963

Hello All,

I have two function groups and I want to have the value of an internal table in function group 1 in Function group 2. I found that Field symbols can be used for this. Could anyone please help me out with information about how tom do this.

Regards

Sudha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

Hi,

cross assigns work like this example


FIELD-SYMBOLS:
  <gt_int_edidc>         TYPE STANDARD TABLE.

  ASSIGN ('(RSEIDOC2)INT_EDIDC[]') TO <gt_int_edidc>.

RSEIDOC2 is the program and INT_EDIDC is the internal table.

Program names of function groups usually starts with SAPLS. You can find the program name of the function goup on attributes tab of one appropriate function module.

Regards Rudi

Hello All,

I have two function groups and I want to have the value of an internal table in function group 1 in Function group 2. I found that Field symbols can be used for this. Could anyone please help me out with information about how tom do this.

Regards

Sudha

4 REPLIES 4
Read only

Former Member
0 Likes
734

Hi,

cross assigns work like this example


FIELD-SYMBOLS:
  <gt_int_edidc>         TYPE STANDARD TABLE.

  ASSIGN ('(RSEIDOC2)INT_EDIDC[]') TO <gt_int_edidc>.

RSEIDOC2 is the program and INT_EDIDC is the internal table.

Program names of function groups usually starts with SAPLS. You can find the program name of the function goup on attributes tab of one appropriate function module.

Regards Rudi

Read only

sudha_naik
Product and Topic Expert
Product and Topic Expert
0 Likes
733

Thanks a lot, Rudi ..

We put the code like this ..

FIELD-SYMBOLS method".

Read only

0 Likes
733

Hi,

guess you need a table type of MCHB.


FIELD-SYMBOLS <gfs_mchb> TYPE TABLE OF MCHB.

Regards Rudi

Read only

0 Likes
733

Hi.. if you are transfering data from internal table use [] after the table name.

Edited by: Cynthia Somnath on Jun 13, 2008 11:31 AM