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

Substitution Exit to default BSEG-SECCO(Section Code)

Former Member
0 Likes
1,680

I have created the exit U911 and assigned to a Substitution step as below.

Please find the below Code:-

* Begin Insert SN1 16/04/2012  CH50840
  exits-name  =
'U911'.
  exits-param =  c_exit_param_field.
  exits-
title = text-226.
 
APPEND exits.* End Insert SN1 16/04/2012  CH50840

FORM U911 USING b_result.                   "#EC CALLED   

CASE BKPF-BUKRS. 

WHEN '1265'.
        BSEG-BUPLA =
'BNG5'.
        BSEG-SECCO =
'BNG5'.
        b_result =
'T'.     

WHEN '1266'.
        BSEG-BUPLA =
'BNG6'.
        BSEG-SECCO =
'BNG6'.
        b_result =
'T'.     

WHEN '1269'.
        BSEG-BUPLA =
'BNG9'.
        BSEG-SECCO =
'BNG9'.
        b_result =
'T'.   

ENDCASE.

ENDFORM.                                                   

It is working fine for Business Place or BSEG-BUPLA(able to substitute/ defaulted Value).

But it is not working for Section Code or BSEG-SECCO.

Please sugget..

Thanks,

Suresh N

I have created the exit U911 and assigned to a Substitution step as below.

Please find the below Code:-

* Begin Insert SN1 16/04/2012  CH50840
  exits-name  =
'U911'.
  exits-param =  c_exit_param_field.
  exits-
title = text-226.
 
APPEND exits.* End Insert SN1 16/04/2012  CH50840

FORM U911 USING b_result.                   "#EC CALLED   

CASE BKPF-BUKRS. 

WHEN '1265'.
        BSEG-BUPLA =
'BNG5'.
        BSEG-SECCO =
'BNG5'.
        b_result =
'T'.     

WHEN '1266'.
        BSEG-BUPLA =
'BNG6'.
        BSEG-SECCO =
'BNG6'.
        b_result =
'T'.     

WHEN '1269'.
        BSEG-BUPLA =
'BNG9'.
        BSEG-SECCO =
'BNG9'.
        b_result =
'T'.   

ENDCASE.

ENDFORM.                                                   

It is working fine for Business Place or BSEG-BUPLA(able to substitute/ defaulted Value).

But it is not working for Section Code or BSEG-SECCO.

Please sugget..

Thanks,

Suresh N

6 REPLIES 6
Read only

Former Member
0 Likes
1,416

Have you verified that  BSEG-SECCO is a field that is allowed to be substituted?

Rob

Read only

0 Likes
1,416

Hi Rob,

Please suggest me how can i verify the BSEG-SECCO is allowed for substitution.

Can you provide me the steps.

Thanks,

Suresh

Read only

Former Member
0 Likes
1,416

Hi, try implementing the substitution under the node 'BPLACE'.

I have done the same and it worked for me.

Regards,

Vijaymadhur.

Read only

0 Likes
1,416

Hi Vijaymadhur,

Could you please explore with "Substitution under the node 'BPLACE'",

This will help me.

Thanks,

Suresh

Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
1,416

Please check if the field is maintaine in GB01 table and is not excluded for substitution . You will get from the description of the fields. If it exclude then remove the exclude checkbox and it should work.

You can find the maintenance view using sm30 ( if i remember the vies is v_gb01c )

Read only

0 Likes
1,416

You cannot just make a change to GB01. You must read note 842318 first. there are probably other notes to take into account as well.

Rob