2019 Nov 18 6:52 PM
Hi, I have an ABAP variant with a long string parameter. It looks like all of the FMs I am using only pull up a partial value of the string parameter for display/use. Is there a way I can access the full value of the ABAP Variant Parameter for validation/edit?
Thanks!..
Have tried the SVAR Group FMs and they only seem to get partial parameter value.
Thanks!..
2019 Nov 19 8:11 AM
For more than 255 characters, I think you have to read programatically the program variant as usual (RS_VARIANT_CONTENTS_255 or BAPI_XBP_VARIANT_CONTENTS_255 with BAPI_XMI_LOG* function modules), which uploads the selection screen fields into memory at the same time, and read the memory via the "dirty assign":
CALL FUNCTION 'RS_VARIANT_CONTENTS_255' ...
ASSIGN ('(UJD_TEST_PACKAGE_LINK)PROMPT') TO <string>.The solution above is to read. To create a variant with a field with more than 255 characters, it's to be done differently, it will depend on the exact context.
Hi, I have an ABAP variant with a long string parameter. It looks like all of the FMs I am using only pull up a partial value of the string parameter for display/use. Is there a way I can access the full value of the ABAP Variant Parameter for validation/edit?
Thanks!..
Have tried the SVAR Group FMs and they only seem to get partial parameter value.
Thanks!..
2019 Nov 18 8:42 PM
Sorry, I'm having trouble understanding the question... How exactly is the parameter defined? How are the FM parameters defined and how are you calling them?
It might be better to provide a specific example.
2019 Nov 18 9:21 PM
Does "long" mean up to 255 characters? (you cannot enter manually more than 255 characters)
2019 Nov 18 11:45 PM
Hi All, I have a BPC Program UJD_TEST_PACKAGE_LINK that has a parameter with a string type so it can be much longer than 255. I am looking to get the long string value in the variant and modify the contents. Let me know if I can add anything addition to help with a solution for this.
Thanks for any help with this.
2019 Nov 19 12:20 AM
I don't really sure what you are doing but if you want to get package link, you can try class CL_UJD_PACKAGE_LINK
2019 Nov 19 1:40 AM
Hi Thanks for the reply.
I have an ABAP Variant for program UJD_TEST_PACKAGE_LINK and it is has a long string for the "Link Answer Prompt (XML)" parameter. Greater thank 255. I would like to get the value of this variant parameter and change some values.
But, it seems like all of the FM I use do not bring in the full value of this parameter that is stored.
So how to read the program variant and get the full value of the "string" parameter "Link Answer Prompt(XML)"? Thanks and let me know if I need anything else to help find a solution.
Thanks!

2019 Nov 19 7:58 AM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2019 Nov 19 8:11 AM
For more than 255 characters, I think you have to read programatically the program variant as usual (RS_VARIANT_CONTENTS_255 or BAPI_XBP_VARIANT_CONTENTS_255 with BAPI_XMI_LOG* function modules), which uploads the selection screen fields into memory at the same time, and read the memory via the "dirty assign":
CALL FUNCTION 'RS_VARIANT_CONTENTS_255' ...
ASSIGN ('(UJD_TEST_PACKAGE_LINK)PROMPT') TO <string>.The solution above is to read. To create a variant with a field with more than 255 characters, it's to be done differently, it will depend on the exact context.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |