2013 Aug 16 2:46 PM
Hi Experts,
I got a doubt during recording on MM01 tcode.
IN BDCSTRUCTURE wa have fval whose size as 80 character.
If we select saletext in MM01 it as a field where we can enter n no of character.
How is it possible in recording as the predefined size for fval is 80 character only.
Help me.
Thanks in Advance
2013 Aug 16 4:56 PM
I don't think that you can conveniently change long text is a BDC. You should instead be using FM's from FG STXD Such as:
READ_TEXT
DELETE_TEXT
INIT_TEXT
EDIT_TEXT
COMMIT_TEXT
SELECT_TEXT
SAVE_TEXT
RENAME_TEXT
READ_TEXT_INLINE
EDIT_TEXT_INLINE
PRINT_TEXT
REFER_TEXT
CHECK_TEXT_NAME
CHECK_TEXT_OBJECT
CHECK_TEXT_ID
CHECK_TEXT_LANGUAGE
CHECK_TEXT_AUTHORITY
READ_REFERENCE_LINES
RETRIEVAL_TEXT
COPY_TEXTS
PRINT_TEXT_ITF
DELETE_TEXT_FROM_CATALOG
IMG_EDIT_TEXT
READ_STDTEXT
NLS_THAI_CHARLEN
INTTAB_SAVE_TEXT
INTTAB_COMMIT_TEXT
INTTAB_DELETE_TEXT
FREE_TEXT_MEMORY
SEARCH_TEXT
CHECK_INCLUDE_ALLOWED
GET_TEXT_MEMORY
RETRIEVAL_MULTIPLE_TEXTS
RENAME_TEXT_ARRAY
DELETE_TEXT_FOR_ARCHIVE
You will need to set up the import values. I suggest that you create a long text on a material and then put a break on read_text. Run mm03 and goto the long text you created and it will stop there so you can see how the input to the FM was specified.
Neal
PS: is there a reason that you are not using a BAPI for this?
2013 Aug 16 4:48 PM
2013 Aug 16 4:56 PM
I don't think that you can conveniently change long text is a BDC. You should instead be using FM's from FG STXD Such as:
READ_TEXT
DELETE_TEXT
INIT_TEXT
EDIT_TEXT
COMMIT_TEXT
SELECT_TEXT
SAVE_TEXT
RENAME_TEXT
READ_TEXT_INLINE
EDIT_TEXT_INLINE
PRINT_TEXT
REFER_TEXT
CHECK_TEXT_NAME
CHECK_TEXT_OBJECT
CHECK_TEXT_ID
CHECK_TEXT_LANGUAGE
CHECK_TEXT_AUTHORITY
READ_REFERENCE_LINES
RETRIEVAL_TEXT
COPY_TEXTS
PRINT_TEXT_ITF
DELETE_TEXT_FROM_CATALOG
IMG_EDIT_TEXT
READ_STDTEXT
NLS_THAI_CHARLEN
INTTAB_SAVE_TEXT
INTTAB_COMMIT_TEXT
INTTAB_DELETE_TEXT
FREE_TEXT_MEMORY
SEARCH_TEXT
CHECK_INCLUDE_ALLOWED
GET_TEXT_MEMORY
RETRIEVAL_MULTIPLE_TEXTS
RENAME_TEXT_ARRAY
DELETE_TEXT_FOR_ARCHIVE
You will need to set up the import values. I suggest that you create a long text on a material and then put a break on read_text. Run mm03 and goto the long text you created and it will stop there so you can see how the input to the FM was specified.
Neal
PS: is there a reason that you are not using a BAPI for this?
2013 Aug 19 10:48 AM
Hi,
As suggested by Neal is correct. Use FM 'SAVE_TEXT' followed by FM 'COMMIT_TEXT' to upload Long-Text.
Shailesh