08-26-2016 6:20 PM
Hi,
I have issue in my smartform, the case as followed:
* In my program i'm passing a field number with one space " 298 475"
when execute my program and call smartform the number displayed as followed " 475 298"
please any one can help me how to handle this issue ??
****note: there are values contains more than one space
08-27-2016 2:47 AM
Hi,
Can you explain how you have coded.
because what ever you said is an unusual behavior of program...
Its working fine for me...
Regards,
Ananth
08-27-2016 2:47 AM
Hi,
Can you explain how you have coded.
because what ever you said is an unusual behavior of program...
Its working fine for me...
Regards,
Ananth
08-27-2016 8:02 AM
this is where I get manfu. part no.
and when pass this number to smartfroms it displayed like the below image
in my code , I GET the values in internal table and the field that hold the manuf. part no. type "char"
and when debugging the value that exist in internal table is correct, but when calling the smartforms, its reversed as I mentioned and showed above.
in my smartfrom I am using loop at internal table to display data.
08-27-2016 2:59 AM
First focus on Data type. In Anath's example it is CHAR data type. What is yours? As he asked for you should provide more details explaining your situation.
08-27-2016 8:02 AM
08-27-2016 8:35 AM
08-27-2016 6:40 PM
08-27-2016 9:09 AM
hi mohamed,
as anath and jogeswara rao sir said,
its working fine,
even i have tested as u said by taking the data to internla table ,
see in my mara table i have part number(with space in between them) for 2 materials
i have pssed the data through internal table
TABLES : mara.
data : wa_itab type mara,
it_itab type TABLE OF mara.
data : l_form TYPE rs38l_fnam." Name of Function Module
CONSTANTS : lc_tdsfname TYPE tdsfname VALUE 'ZTEST_MARA'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN skip 1.
select-OPTIONS : so_matnr for mara-matnr.
SELECTION-SCREEN skip 1.
SELECTION-SCREEN END OF BLOCK b1 .
START-OF-SELECTION.
select * FROM mara into TABLE it_itab WHERE matnr in so_matnr.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lc_tdsfname
IMPORTING
fm_name = l_form
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION l_form
TABLES
it_itab = it_itab
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5 .
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. " IF sy-subrc NE 0
" IF sy-subrc EQ 0
declare the internal table in form interface as below,
where ZMARA is table type of standrad table MARA..
see my output,
08-27-2016 9:12 AM
also check in the form interface(smartform) have you declared the internal table appropriately or not ,
i think you made some mistake in declaring table type in form interface(for declaring internal table)..
please share the screen shot of form interface and work area declaration of internal table in global definitaions...
reagrds,
vinay...
08-27-2016 6:39 PM
look what I have found.
my smartfrom is created in "AR" language, okay ?
in my program I pass the language CTRL-LANGU = 'AR' .
and displayed reserved as followed
but when I pass the language with lowe case like CTRL-LANGU = 'ar' .
it displayed like the followed
not reserved but the words in Arabic is not understandable and form from right to left.
for now I didn't find the perfect solution for the issue .
08-27-2016 6:17 PM
THANK YOU ALL FOR HELP,
I debug my smartform, I think the issue in displaying "output options" but I can not get this issue.
the loop inside the smartforms in passing the values to work area in right way. the work area holds the data without reserve it, but when execute and display the form its appear reserved.
08-28-2016 9:44 AM
THE Issue in displaying language, I created my smartform in Arabic language, and in my program I pass "AR" to form language, here is the problem.
The Arabic language is responsible for the issue. but for now I did not get the right solution to this problem.
08-29-2016 3:16 AM
Hello Mohamed: Do you setting the same field display different content by langue use TCODE SE63 ?
(SE63 -->translation --> abap objects --> other long texts --> FS Forms and Styles --> SAP Smart Form)
08-31-2016 9:31 PM
thank you spring long,,
The problem in the Arabic language< and for now I did not find suitable solution.
Not translation language but in creation language
09-01-2016 6:09 AM
Hello
Because AR is written from Right to Left you have this problem. For that particular text element what style/font/paragraph setting you are using?
Thanks
Nabheet
09-02-2016 6:10 PM
Hello nabheet,
I use custom style, and didn't determine specific font.
09-02-2016 6:49 PM
Yes in that smart style what settings you are using.some screen shot of those will help.
09-02-2016 7:51 PM
fine,
above is general setting, below is the format I am using in the field.