on 05-27-2013 12:34 PM
Hi,
I have already completed maintaining inspection plan through LSMW recording.
But MIC long text maintenance was not possible through that LSMW.
Now Kindly suggest me how to maintain MIC long text in mass for all materials.
Also for different materials Particular MIC long text is different.
As the data is more, need some useful recording method.
You have to use SAVE_TEXT & COMMIT_TEXT to upload the long text.
http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db93d494511d182b70000e829fbfe/frameset.htm
Check with your ABAP consultants on these BAPIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have worked on this function module with ABAPers & tested it.
Now the problem is Long text is getting updated but it is not getting saved due to which it is not seen in display mode.
Wht am i doing is goto QP02 manually-> particular MIC long text -> come back & -> save.
Now it is getting saved & seen in display mode too.
But this activity is not happening through Any of these function module.
Kindly suggest where it is going wrong.
Regards,
Shravan
Hi Shravan,
For Save_Text to function properly you need to pass proper keys to this FM as suggested below.
CONCATENATE plmk-mandt plmk-plnty plmk-plnnr plmk-plnkn
plmk-kzeinstell plmk-merknr plmk-zaehl INTO lv_tdname RESPECTING BLANKS.
ls_header-tdobject = 'QSS'.
ls_header-tdname = lv_tdname.
ls_header-tdid = 'QM'.
ls_header-tdspras = 'E'
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ls_header
insert = 'X'
savemode_direct = 'X'
* OWNER_SPECIFIED = ' '
* LOCAL_CAT = ' '
* IMPORTING
* FUNCTION =
* NEWHEADER =
TABLES
lines = lt_tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5
.
*-- Note that as i had previously suggested you need to read PLAS and PLPO tables first and then PLMK to create the full unique key to be passed for creation of MIC long Text.
In case of questions do revert.
BR,
Ankit.
Check the value of PLMK-LTEXTKZ (Inspection Characteristic Long Text Exists).
If you maintain the long text manually using these function module, you have to set this field also manually.
And refer link for text name for function module.
http://scn.sap.com/thread/3298505
Regards, DoWook KIM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shravan,
If you are talking about the Inspection Plans maintained via transaction QP01/02/03, then there is no long text at material level. At Inspection Level Long texts are maintained.
Hierarchy is,
Group -> Group Counter -> Operation -> Inspection Characteristic => If you talking about this long text then you need to associate a few tables like PLAS, PLPO, PLMK, etc and then call the FM's suggegsted by Maheswaran.
I would not advice to record and populate the long text as in that code you need to split the read data into say 72 characters or so and then proceed.
Regards,
Ankit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.