Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in smartfroms

0 Kudos

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

1 ACCEPTED SOLUTION

krishnaananth
Active Participant
0 Kudos

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

17 REPLIES 17

krishnaananth
Active Participant
0 Kudos

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

0 Kudos

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.

jogeswararao_kavala
Active Contributor
0 Kudos

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.

0 Kudos

please check my reply above<

thank you

0 Kudos
  • Perhaps information needed about your Driver program OR the coding used in Smartform .
  • I din't find any issues. I simulated your variable situation and it is working fine.
  • See here I am attaching the Driver program Internal table part and Smartform output.
  • As mentioned below, I always make a structure through SE11 for internal table of Driver program and use the Same structure for Internal table declaration of Smartform, which leaves no scope for inconsistencies.
  • See whether you can draw some clues?

0 Kudos

please note below what I have found

former_member185116
Active Participant
0 Kudos

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,

former_member185116
Active Participant
0 Kudos

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...

0 Kudos

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 .

0 Kudos

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.

0 Kudos

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. 

0 Kudos

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)

0 Kudos

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

0 Kudos

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

0 Kudos

Hello nabheet,

I use custom style, and didn't determine specific font.

0 Kudos

Yes in that smart style what settings you are using.some screen shot of those will help.

0 Kudos

fine,

above is general setting, below is the format I am using in the field.