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: 

how to add company name to company code in script form

Former Member
0 Kudos

ZF110_PRENUM_CHC standard script form how to add company name to compant code ..help me..

5 REPLIES 5

nabheetscn
Active Contributor
0 Kudos

It is starting with Z its a custom  script may be a copy of standard. You can add the changes in script

Nabheet

former_member184569
Active Contributor
0 Kudos

Its a Z form, so you can make the required changes.

Get the corresponding company code name for table T001 and add it to the script.

0 Kudos

in script form all company codes are not showing company name showing differently so how to add compny name to compny codes....

0 Kudos

Hi Mounika

If your driver program is standard then you will have to create a custom subroutine pool ZSUB in sE38 and then use syntax PERFORM F_GET_COMPANY_NAME using changing in SAP Script. Search for it for how to do it.

If driver is custom then simple fetch the value of company code in gloabl variable before the write_form of company code value and insert the global variable symbol in script

Nabheet

deependra_shekhawat3
Contributor
0 Kudos

Hi Mounika,

it is copied from standard sap script F110_PRENUM_CHCK and configured to company code in FBZP. As susmitha suggested you need to get company code from t001 table . For this you have structure REGUH structure with company code code.

Select the data from t001 based on REGUH-ZBUKR.

Thanks

Deependra