cancel
Showing results for 
Search instead for 
Did you mean: 

Substitutions & Validations

Former Member
0 Kudos

Hi All,

Could you please provide me the process for creation of Substitution concept step by step?

regards

gupta

sarahmarks
Explorer
0 Kudos

I was looking for the same thanks for the help!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Substitutions and validations we do in Special purpose Ledger .

For substitution the Procedure

go to GGB1

and there left hand side you can find Application area .

there you can give financial accounting if you want do the substution .similarly any other .

there you can workout on the field in which segment (Document Header/Line Item /Complete document/Cost of sales accounting /Cost of Sales Accounting )you want the substitutions to be effective .

1. Select on any one of the above mention in brackets.and create Substitution by clicking on Substitution blank sheet on the application tool bar.

you get screen where provide Substitution name and Description and Save .

2.go to Insert step in Application tool bar.

there select on prerequiste you get a screen where two gray mode screen appear.

below screen you can find tab fileds ,rules and exits.

Select tab fields tab. you get list of structure.where you can find document header,document line itemand abap fields.

here I take an example for Substitution, ie in company code xxx and for document type yy reference key must be Sunil.there give bullion logic by clicking on the below

now you can give the condition by double click on the doc header you get list of all the available fields from there selct comany code. the comapny code field now can be seen in the above screen . give the Logic by using bullion fileds available Right side as mentioned below

(Company Code = 'xxx' AND Document Type = 'yy' AND

Posting key = '19' AND Special G/L ind = 'A')

for above mentioned constants XXX , YY,19 and A can be added by selection on constant .

once this prerequisite is finished save it.

3.later click on Substitutions ( for fulfilled requirements ) lefet hand side you get an Substitution screen there you can insert any field by click on inseert subs and give constant values .

in this example reference key and contant value is Sunil is typed in the blank.

go to GGB4 and select substituions and there activate comany code.and save

this will be seen after posting leavin the reference key blank

fb03 you can find the field getting updated

still if u hava any doubts regarding this Jus drop u r mail id

Thanks and regards,

Sunil

give assi

Former Member
0 Kudos

Hi Mr. Sunil,

Thankyou for providing me a detailed procedure of Substitution. The issue is almost solved but where do we find session code to assign constant value xxxx as it is needed?. Other than this everything is clear.

regards

Gupta.

Answers (3)

Answers (3)

csantamo77
Member
0 Kudos

Hello,

You should check table GB01 that is used for making the fields substituible or not.

In this case, by default you will have the field 'Section code' (BSEG-SECCO) marked as excluded (GB01-BEXCLUDE='X'). You should delete the 'X' on field GB01-BEXCLUDE:

Former Member
0 Kudos

Hi ,

You can see it in right side corner . Constant

Fld comp

comments

Set directory

After giving company code =

click on constant

you get emptyt field where you can giver your input .

Still if you face any problem just drop u r mail id .

Thanks and regards.

Sunil

Former Member
0 Kudos

Hi Sunil,

I created a substitution according to the steps given by you. Only one doubt is left pending i.e., In substitutable fields i want a field called Section code which is available in bseg table for line item display. It is not showing up in Substitutable fields list.

regards

PSNG

ravi_nagh
Active Contributor
0 Kudos

Hi

Please check it in WIKI, you will get details steps to create Validation or substitution

you can also search in the forum

Regards

Ravinagh Boni