cancel
Showing results for 
Search instead for 
Did you mean: 

Document Template Designer: IF and MERGEFIELD = IMPOSSIBLE?

former_member199597
Participant
0 Kudos

Hey Gang

I have a problem with with a document templatge designer.

When I want to include some logic in the template e.g. IF with a MERGEFIELD it is not possible to do so.

1. { MERGEFIELD BUAG_BUKRS } -> Working

2. { IF { MERGEFIELD BUAG_BUKRS } = "6" "Right" "Wrong" } -> Not working

This should be possible somehow? Or do I have to solve this in the BADI?

I read in some threads but no one has a solution for this.

Can anyone help me out here?

Cheers.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Andreas,

I didn't have a solution too. But I fill the MERGEFIELD from SAP and write all possible Fields in Word in a row. When I now fill only one Field from SAP, only this Field will display and the others are blank.

I hope this will help you a little!

Regards,

Thomas

former_member199597
Participant
0 Kudos

Hello Thomas

Thank you for your reply

Yeah I will do the same since I am sure there wont be a better solution - thing is that a power user is not able to design his own "If-Clauses" ... just in Abap/Bapi.

Nice workaround - thanks m8.

Cheer

Andreas

Answers (0)