cancel
Showing results for 
Search instead for 
Did you mean: 

how to get correct company name?

Former Member
0 Kudos

In my smartform in header window company name (for eg..indian industries ltd) is hard coded so whatever material document

for particular plant is selected it shows the hardcoded company name in the output of smartform.

so how to get the correct name in the smartform output.??

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First get the logic to fetch the Company Code and then pass this in the header of the smartform.

Secondly, remove the harcoded information by the header-company code.

If you want to place any condition or check befor doing this this can be done with the help of Program Lines.

Regards,

Amit

Former Member
0 Kudos

Hi amit,

would you please tell me the query and how to pass this to the header?

I am not getting the logic, would be grateful to you.

Thanks

Former Member
0 Kudos

Hi Hemant,

There is no Qwery for this.

Just Add the Company code Field in the Structure which the header is referring to .

And Populate this using the Companycode.

Please See the FM in your prog similar to GV_SMARTFORM where the header information would be there.

Add your field in the same structure in SE11.

Hope this will help.

Regards,

Amit

Former Member
0 Kudos

ok i am trying this...

thanks

Former Member
0 Kudos

ok i am trying this...

thanks