cancel
Showing results for 
Search instead for 
Did you mean: 

Variables for accounting document item long text (OB56)?

former_member211711
Participant
0 Kudos

Hello gurus

I have googled and searched on the forum but have not been able to find a proper answer.

We want to set up some default texts for FB01 acctg document item long texts.

We can see that you can create the texts in SPRO (trans OB56) and that there are sample SAP delivered texts with posting period variable $BUP:

AAAA     Rent for Walldorf storage building $BUP

LEAS     Leasing fee for vehicles in month $BUP

$BUP converts nicely to posting period and year - eg will insert 03/2015 but we don't know where the variable definition comes from.

We would like to do similar texts with a variable for year only (for example).

So.. where is variable $BUP defined and used?

Is there a list of available variables we can add to our line item text templates prefixed by $?

Many thanks for any input..

Accepted Solutions (1)

Accepted Solutions (1)

former_member183424
Active Contributor
0 Kudos

The variable is used in program SAPFF001, in the routine SEGMENTTEXT_SETZEN.

I've found an OSS note which is very old, but it contains this information  39103 - Parameter IDs for BSEG-SGTXT from T053

(Note: I've shared this note as just for information, you can check the same program and routine in your system)

former_member211711
Participant
0 Kudos

Thanks very much!

- did not think of checking OSS.

For anyone else following this up here's the detail:

--

Which parameter IDs can be used when you make an entry in the Segment text field (BSEG-SGTXT) and result in a replacement with the correct value?

   

Solution

$BLD - document date
$BUD - posting date
$ZFB - baseline date for payment
$BUP - posting period
$XBL - reference document number

No other fields are possible in the standard system, see routine
SEGMENTTEXT_SETZEN in program SAPFF001.

--

Shame there are not more that can be used without programming (had hoped the variables could equal PID's or such).

former_member183424
Active Contributor
0 Kudos

These texts are copied from the same OSS note.

former_member211711
Participant
0 Kudos

Yes, that's why I added it. No need for other readers to look at the note when it's so tiny.

Answers (0)