‎2018 Apr 20 5:19 PM
Hello Everyone,
I am new to SAP Smartforms. I have a scenario where a dunning report needs to be generated for some company codes. There are 120 company codes out of which only for 40 company codes the dunning report needs to be generated.
I don't know where and how I can provide list of company codes without hard coding. Please help me.
‎2018 Apr 22 1:48 PM
‎2018 Apr 23 2:44 PM
Hi Sanjay Selvan,
"I don't know where and how I can provide list of company codes without hard coding. Please help me.
Use TVARV table and maintain the company codes instead of hardcoding as shown in below screenshot.

Regards
Rajkumar Narasimman
‎2018 Apr 24 8:49 PM
What does this have to do with the Smartforms? This should be decided by the output program before the form is even called.
I'd check first with the FI consultant on the options to use FI correspondence (or whatever is the right term for this) configuration to trigger output only for the companies that require it. Not sure why this is even an ABAP task...
As far as alternatives to hard-coding in general - obviously you'll need to store this information somewhere. Sorry, even if you're new to anything it's just simple logic IMHO.