cancel
Showing results for 
Search instead for 
Did you mean: 

sales return register in smartform

former_member383741
Participant
0 Kudos

Hi,

I completed sales return register report in ALV-GRID.Now i want to do it smartforms . How will link that driver program(sales return register report in ALV-GRID) in smartforms.Please advice me.

Regards,

K.Karthikeyan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a smart form for displaying fields. Then call the Fm in u r program insted of ALV GRID function Module. Pass the final table to that FM.

Former Member
0 Kudos

hi

in Smartform-->Specify the internal table and workarea

Create tables and assign the fields.(in text)

In driver program.Call the smarform using the fm.(ssf_function_module_name)(FM_NAME TYPE RS38L_FNAM)

pass the final internal table which you want to display in smartform and get it.

[Smartform Creation|https://wiki.sdn.sap.com/wiki/display/ABAP/Smartformcreation]

former_member383741
Participant
0 Kudos

Hi Dharma Raj,

Thank you for your Answering.

And also i have one more problem.

FORM INTERFACE AND CHOOSE TABLES in that i declared

parameter name Type assignment Associated type

IT_SALES TYPE ?

In that ? what i have to declare.

My coding is given below.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = 'ZSR_REGISTER'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
* IMPORTING
     FM_NAME                  = FM_NAME
   EXCEPTIONS
     NO_FORM                  = 1
     NO_FUNCTION_MODULE       = 2
     OTHERS                   = 3
            .
  CALL FUNCTION FM_NAME
    TABLES
      IT_SALES         = IT_FINAL
    EXCEPTIONS
      FORMATTING_ERROR = 1
      INTERNAL_ERROR   = 2
      SEND_ERROR       = 3
      USER_CANCELED    = 4
      OTHERS           = 5.

Regards,

K.Karthikeyan.

Former Member
0 Kudos

hi

CALL FUNCTION FM_NAME

TABLES

IT_SALES = IT_FINAL

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

In smartform IT_SALES type is same as the structure of IT_FINAL in Program.

You have to declare IT_SALES type as IT_FINAL structure(EX:zaaa_str_final)

former_member383741
Participant
0 Kudos

Hi Dharma Raj,

i have to create Structure for it_final.

Regards,

K.Karthikeyan.

Former Member
0 Kudos

hi

Yes ,You have to create lt_final structure in SE11 and use it in smartform.

former_member383741
Participant
0 Kudos

Hi Dharma Raj,

Is there any possible Without creating the structure i can pass the data to smartforms.

Please Advice me.

Regards,

K.Karthikeyan.

Former Member
0 Kudos

hi

if you want to do then you have write the whole logic in smartform itself(Coding).

Now you are using in globally so you have create a structure in se11.

[SMARTFOM ITSELF CODING|http://wiki.sdn.sap.com/wiki/display/ABAP/LearnmakingFirstSmartformStepbyStep]

former_member383741
Participant
0 Kudos

Hi Dharma Raj,

I created the structure and i assigned to associated type but its showing error like...

Node                    Error
Forminterface     Only table types may be used as the reference type for a table parameter.

Please advice me.

Regards,

K.Karthikeyan.

Former Member
0 Kudos

hi

Please change Karhick,(sorry for wrong info)

In the form interface(Internal Table) you have to use Table type

in global definitions you have to use structure.

In se11-->Create table type use this in global definition(if you are using work are)

former_member383741
Participant
0 Kudos

Hi Dharma Raj,

Now i have to create table .................

Regards,

K.Karthikeyan.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This is the example for driver Program for Voucher Printing after displaying a list output follow the similar way.

[http://vjkvijaya.blogspot.com/2010/03/smarform-driver-program-for-displaying.html]

Regards,

Vijaya Lakshmi.T