03-04-2009 2:35 PM
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
03-04-2009 2:41 PM
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
03-04-2009 2:41 PM
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
03-04-2009 2:55 PM