Application Development 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: 

regarding SY-CALLD system field

Former Member
0 Kudos

Dear Experts,

I want to know how SY-CALLD works in both 46C and Enterprise.

It seems in some cases SY-CALLD works differently in new versions. COuld you please

give us an example and explain.

Thanks in advance.

ambichan

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

SY-CALLD is set to "X" when a program is called via CALL TRANSACTION or CALL DIALOG, or even SUBMIT. Here is the help from NW04s.

<i>In the first program of a call chain, a blank, otherwise 'X'. Set to 'X' after call via CALL TRANSACTION, CALL DIALOG or SUBMIT ... AND RETURN. Empty if the program was started via LEAVE TO TRANSACTION or through a transaction code from the screen layout. A caller via SUBMIT (without AND RETURN) takes over the value of the calling program.</i>

REgards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

SY-CALLD is set to "X" when a program is called via CALL TRANSACTION or CALL DIALOG, or even SUBMIT. Here is the help from NW04s.

<i>In the first program of a call chain, a blank, otherwise 'X'. Set to 'X' after call via CALL TRANSACTION, CALL DIALOG or SUBMIT ... AND RETURN. Empty if the program was started via LEAVE TO TRANSACTION or through a transaction code from the screen layout. A caller via SUBMIT (without AND RETURN) takes over the value of the calling program.</i>

REgards,

Rich Heilman

0 Kudos

hey Rich Heilman.

Thanks for your suggestions.

So you mean to say that initial program in call chain which has SY-CALLD will be BLANK rather X? only when u call thru Call transaction /submit the SY-CALLD will change to X.right.

>>A caller via SUBMIT (without AND RETURN) takes over the value of the calling program. << means ?

little more explanation will make me understand please.

Thanks.

Ambichan

0 Kudos

<i>only when u call thru Call transaction /submit the SY-CALLD will change to X.right.</i>

Yes, that is correct. SY-CALLD is only set to 'X', when the program is called via CALL TRANSACTION, CALL DIALOG, or SUBMIT...AND RETURN.

With SUBMIT (without RETURN) SY-CALLD retains the previous value held by the caller.

Regards,

Rich Heilman

0 Kudos

Hi Rich,

When we use SUBMIT without Return, sy-calld retains the previous value held by the caller,

Which value does the sy-called take?

Regards,

Adelene