on 07-25-2009 6:55 AM
Hi..
Ive created a outputtype for vf22 tcode. but how to get the value entered in tcode to print program.. i'm new to forms..
Hi,
Try like this.
REPORT z_sd_rep_delivery.
TABLES:nast.
DATA: wa_fm_name TYPE rs38l_fnam,
wa_formname TYPE tdsfname.
DATA : v_vbeln TYPE lips-vbeln.
START-OF-SELECTION.
FORM entry USING return_code us_screen.
PERFORM get_data.
PERFORM processing.
ENDFORM. "ENTRY
&----
*& Form PROCESSING
&----
text
----
FORM processing .
wa_formname = 'ZSD_SSF_DELIVERY_CHALLAN'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = wa_formname
IMPORTING
fm_name = wa_fm_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.
CALL FUNCTION wa_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
v_vbeln = v_vbeln
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.
ENDFORM. "PROCESSING
&----
*& Form GET_DATA
&----
text
----
--> p1 text
<-- p2 text
----
FORM get_data .
v_vbeln = nast-objky.
ENDFORM. " GET_DATA
In V_vbeln u can get the 'Quotation Number'.
Based on this number u can fetch the data in Smart form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is there any smartform for vf22/..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe u shld have copied the SAP std Output type....
Output Type ==> LR00 Invoice list
Print Program ===> RVADIL01
Form ===> SD_INVOICE_LIST
To get data. Trigger the output from VF22,,, Place a break point in the Driver program - '_RVADIL01_'.
U can get the data
----
FORM PROCESSING *
----
........ *
----
--> PROC_SCREEN *
----
FORM PROCESSING USING PROC_SCREEN.
PERFORM GET_DATA.
Regards,
Bhargava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
each form has a print program that has data processing logic in it and fetches data.. u may use them...check the sdn wiki for the same....U may have to assign the Output Type the driver program(print program), routine and the form name...
-Karthik B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.