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

Same program with different variants

Former Member
0 Likes
588

hi friends,

I need to develop a task where we run a report for both dealer and vendor dealings... it was an ponline report, since the there were many fields from RSEG table, i gave it a thought to do it as a back ground job.

The thing is if suppose its a Vendor we need to show him the full report( that is witothout exculding a count of 16 fields) which forms their report

if its a dealer then we need to exculde some fields(ie say abt six fields) which are not for the dealers.

Could please give me an idea how this task can be achieved?

if suppose using variants how do we use it.(the selection screen is same for both,, but when it comes to the point of dealers the selction screen will have some autofill in the dealer code alone)

Thanks a lot in advance

5 REPLIES 5
Read only

Former Member
0 Likes
557

Any suggestions

Read only

0 Likes
557

any suggestions?

Read only

abdul_hakim
Active Contributor
0 Likes
557

hi

unless and until you have certain fields on the selection screen for distinguishing between vendors and dealers you cannot achieve the result..

Cheers,

Abdul Hakim

Read only

0 Likes
557

Create 2 variants - one for vendor and one for dealer.

Then create a report for background processing to pick up the appropriate variant based on a vendor/dealer condition.

Thanks and regards,

Bharath.

Read only

0 Likes
557

Hi...

I agree with Abdul... need to identify whether it is a Vendor or Dealer report via a Parameter...

If P_RPT = 'vendor'.

Perform Vendor_report.

Endif.

If P_RPT = 'dealer'.

Perform Dealer_report.

Endif.

Dave...