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: 

Smartforms-modidifcations

kiran_k8
Active Contributor
0 Kudos
173

Hi Folks,

I am dealing with an requirement wherein I have to modify the existing Smartfrom RL_INVOICE.Kindly anyone here help how to deal with this.I just know the basics in this area.Will be glad if anyone here can help me through this.

All answers will be duly rewarded.

Thanks,

K.Kiran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
155

Hi kiran,

copy this smartform to the newly created zsmartform and proceed to make

changes in the z-program.

keerthi

8 REPLIES 8

Former Member
0 Kudos
155

Hi Kiran,

Please refer the links,

Best Regards.

    • Reward points if it is useful.

Former Member
0 Kudos
156

Hi kiran,

copy this smartform to the newly created zsmartform and proceed to make

changes in the z-program.

keerthi

0 Kudos
155

Kiran,

Nice to know that we both share the same atleast partly.

The problem is upto Copying part I am aware of but not about how to go with modifications.Anyway I will do my homework and get back to you if I have any(many) doubts.

Thanks,

K.Kiran

kiran_k8
Active Contributor
0 Kudos
155

Hi Folks,

I am doing some modification to RL_INVOICE to fit in the customer requirements.

1.As per the spec for INVOICE DATE, I need to pick budat from bkpf corresponding to the belnr in the same table

2.Invoice Number from VBRK .

Can anyone here please let me know how to write a select statement for the same.

3.Do I need to change anything in FORM INTERFACES and GLOBAL DEFINITIONS too,if so how?.

4.Where I have to write the select query? Is it in the program lines of the correspoing INVOICE window?

All answers will be duly rewarded.

Thanks,

K.Kiran

Former Member
0 Kudos
155

HI kiran,

Check out this example....( not for RL_IINVOICE)

&----


*& Report ZSMART_FORM_DEMO

*&

&----


*&

*&

&----


REPORT zsmart_form_demo.

DATA : form_name TYPE rs38l_fnam.

DATA : customer TYPE ZTY_CUSTOMERS,

bookings TYPE ty_bookings,

connections TYPE ty_connections.

DATA : wa_booking TYPE sbook,

wa_connection TYPE spfli,

t_sums TYPE TABLE OF sbook,

wa_t_sums TYPE sbook,

WA_CUSTOMER TYPE SCUSTOM.

  • DATA : WA_CUSTOMER TYPE SCUSTOM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZRAG_SF_EXAMPLE_01'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = form_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

SELECT * FROM KNA1 INTO TABLE CUSTOMER UP TO 100 ROWS.

IF SY-SUBRC = 0.

SORT CUSTOMER BY KUNNR.

ENDIF.

wa_booking-carrid = '1234'.

wa_booking-connid = '134'.

APPEND wa_booking TO bookings.

wa_booking-carrid = '144'.

wa_booking-connid = '1034'.

APPEND wa_booking TO bookings.

SELECT SINGLE * FROM spfli INTO wa_connection.

APPEND wa_connection TO connections.

*

*CALL FUNCTION

  • EXPORTING

  • customer = customer

  • bookings = bookings

  • connections = connections.

CALL FUNCTION form_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

customer = customer

bookings = bookings

connections = connections

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Hope this will give you some idea..

regards

raghavendra rao G

Former Member
0 Kudos
155

Hi Kiran,

As mentioned by you, this is a standard smartform so you need not make changes in the same. To make changes you can copy the standard smartform into Z and then you can proceed to make changes you wish to.....

This is the basic info i can share......for further info keep on mailing.....

Regards,

Kunjal

0 Kudos
155

Patel,

I had alrady copied the std form and gone ahead with modification in terms of windows and all,my problem is the picking the data and writing a select query?

This is what I had mentioned in my prev question.

Kindly help me in this regards,

K.Kiran

kiran_k8
Active Contributor
0 Kudos
155

problem solved