‎2007 Jun 21 2:27 PM
Hi,
I use this code to read text from MRP 4 view Material Memo (MM03)
DEFINE &LV_MATNR& := '<AP-MATNR&<AP-WERKS&'
INCLUDE &LV_MATNR& OBJECT MDTXT ID LTXT LANGUAGE 'E' PARAGRAPH LV
But, LV_MATNR is = 260DE10
I need LV_MATNR to be = 260 space space space space space space space DE10
How can I achieve this?
Adibo..
‎2007 Jun 21 2:36 PM
Hello,
Try concatenating the value in a new variable,
something lilke this:
On the sapcript:
....
PERFORM concat IN PROGRAM ZXXX using &LV_MATNR& changing &string&
INCLUDE &string& OBJECT MDTXT ID LTXT LANGUAGE 'E' PARAGRAPH LV
.....
" Do it calling an external form.
form concat TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
data: string type string, LV_MATNR(7)
READ TABLE in_tab INDEX 1.
LV_MATNR = in_tab-value.
concatenate LV_MATNR(3) LV_MATNR+3(4) into string separated by space.
READ TABLE out_tab INDEX 1.
out_tab-value = string.
MODIFY out_tab INDEX 1.
endform.
Dont forget to reward!!!
Gabriel P.
‎2007 Jun 21 2:34 PM
You could try like this.
data: lv_blank(1).
lv_blank = space.
DEFINE &LV_MATNR& := '<AP-MATNR&&lv_blank&<AP-WERKS&'
INCLUDE &LV_MATNR& OBJECT MDTXT ID LTXT LANGUAGE 'E' PARAGRAPH LV
REgards,
Vasanth
‎2007 Jun 21 2:39 PM
Problem is that I dont know how many spaces I need..
I you look in MM03 --> MRP 4 --> button Material Memo --> Go to --> Header
You wil see what I mean..:)
‎2007 Jun 21 2:36 PM
Hello,
Try concatenating the value in a new variable,
something lilke this:
On the sapcript:
....
PERFORM concat IN PROGRAM ZXXX using &LV_MATNR& changing &string&
INCLUDE &string& OBJECT MDTXT ID LTXT LANGUAGE 'E' PARAGRAPH LV
.....
" Do it calling an external form.
form concat TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
data: string type string, LV_MATNR(7)
READ TABLE in_tab INDEX 1.
LV_MATNR = in_tab-value.
concatenate LV_MATNR(3) LV_MATNR+3(4) into string separated by space.
READ TABLE out_tab INDEX 1.
out_tab-value = string.
MODIFY out_tab INDEX 1.
endform.
Dont forget to reward!!!
Gabriel P.
‎2007 Jun 21 2:41 PM
I know this..But I want to try to slove this problem within sap script..:)
thanx.
‎2007 Jun 21 2:37 PM
‎2007 Jun 26 7:34 AM
is realy simpel..::)
/: DEFINE &LV_MATNR& := '<AP-MATNR(19)&<AP-WERKS(4)&'
/: INCLUDE &LV_MATNR& OBJECT MDTXT ID LTXT LANGUAGE 'E' PARAGRAPH LI