Application Development 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: 

Problem in including text id in sapscript

former_member224404
Active Participant
0 Kudos

Hi,

I am using the following command to include a text id in sapscript.

INCLUDE &VBDKR-XBLNR& OBJECT VBBK ID Z001 LANGUAGE &VBDKR-SPRAS_VKO&

But the text is not showing in form. Now when I debug the sap script I found that altough VBDKR-XBLNR is holding value 0060000120 but the at include commant the value passed is 60000120.

So the text id is not found.

How to resolve this problem.

Regards,

Mainak

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Solution:

INCLUDE &VBDKR-XBLNR(K)& OBJECT VBBK ID Z001 LANGUAGE &VBDKR-SPRAS_VKO&

see the (K) within your variable &VBDKR-XBLNR(K)&.

this k makes him skip conversion routine which is responsible for cutting the leading zeros.

/edit

You can as well use VBDKR-TDNAME which is by default your invoice number WITH leading zeros.

while VBDPR-TDNAME is your invoice number with leading zeros AND your position number right concatenated to it.

Edited by: Florian Kemmer on Mar 4, 2009 3:43 PM

2 REPLIES 2

Former Member
0 Kudos

Solution:

INCLUDE &VBDKR-XBLNR(K)& OBJECT VBBK ID Z001 LANGUAGE &VBDKR-SPRAS_VKO&

see the (K) within your variable &VBDKR-XBLNR(K)&.

this k makes him skip conversion routine which is responsible for cutting the leading zeros.

/edit

You can as well use VBDKR-TDNAME which is by default your invoice number WITH leading zeros.

while VBDPR-TDNAME is your invoice number with leading zeros AND your position number right concatenated to it.

Edited by: Florian Kemmer on Mar 4, 2009 3:43 PM

0 Kudos

Thanks Florian. It is working Now. Many Many thanks.