Regarding smartforms very urgent
Hi All,
I have created a smartfrom.In that I have converted smartform output to html.Now I am sending this HTML output as an attachment to an email address but here I am unable to add graphic to the HTML ouput.How can I do this.
Regards,
shravan
hi sharavan,
just try this code, u can get the solution.
*& Report ZINV_FORM
report zinv_form.
tables: vbrk,vbrp.
*TYPES: BEGIN OF t_itab,
vbeln TYPE vbeln_vf,
fkdat TYPE fkdat,
name1 TYPE name1_gp,
addr TYPE c.
*TYPES: END OF t_itab.
types : begin of ty_binary,
binary_field(1000) type c,
end of ty_binary.
data: g_name_itab type standard table of zinv_name.
data: g_name_wa type line of zinv_namet.
data: g_head_itab type standard table of zinv_str_head.
data: g_head_wa type line of zinv_ttype_head.
data: g_item_itab type standard table of zinv_str_item.
data: g_item_wa type line of zinv_ttype_item.
data: g_tot_tab type standard table of zinv_str.
data: g_tot_wa type line of zinv_ttype.
data: g_pay_tab type standard table of zinv_pay_str.
data: g_pay_wa type line of zinv_pay_tab.
data: l_index type i.
data: sf_name type rs38l_fnam.
data: ssfcrescl type ssfcrescl,
final_ssfcrescl type ssfcrescl,
xstring type xstring,
l_data_tab type standard table of ty_binary,
tline type table of tline with header line,
ls_out_opt type ssfcompop,
filesize type i,
l_pac_list type standard table of sopcklsti1,
l_pac_list LIKE sodocchgi1,
l_docu_data LIKE sodocchgi1-doc_size,
l_doc_chng type sodocchgi1,
l_receivers type standard table of somlreci1.
select-options: s_inv for vbrk-vbeln.
*PARAMETERS: p_inv LIKE vbrk-vbeln default '90005298'.
*PARAMETERS: p_email1 LIKE somlreci1-receiver.
start-of-selection.
perform get_header.
perform get_item.
perform get_name.
perform call_form.
PERFORM send_email.
*& Form get_header
text
form get_header.
select vbeln fkdat kunag zterm from vbrk into corresponding fields of table
g_head_itab where vbeln in s_inv.
loop at g_head_itab into g_head_wa.
select zterm text1 spras from t052u into table g_pay_tab where zterm = g_head_wa-zterm
and spras = sy-langu.
l_index = sy-tabix.
read table g_pay_tab into g_pay_wa index l_index.
move: g_pay_wa-text1 to g_tot_wa-text1.
move-corresponding g_head_wa to g_tot_wa.
append g_tot_wa to g_tot_tab.
endloop.
endform. "get_header
*& Form get_item
text
form get_item.
select vbeln posnr arktx fkimg netwr mwsbp from vbrp into corresponding fields of table g_item_itab
for all entries in g_head_itab where vbeln eq g_head_itab-vbeln.
loop at g_head_itab into g_head_wa.
l_index = sy-tabix.
g_item_wa-tot = g_item_wa-fkimg * g_item_wa-netwr.
MODIFY g_item_itab FROM g_item_wa INDEX l_index.
data: l_tab_item type standard table of zex_struct.
data: l_wa_item like line of l_tab_item.
clear l_tab_item[].
call function 'ZAPR_GET_COND_DETAILS'
exporting
i_vbeln = g_head_wa-vbeln
I_POSNR =
I_KSCHL =
tables
export_tab = l_tab_item.
EXCEPTIONS
INCORRECT_INV_NUMBER = 1
COND_REC_NOT_FOUND = 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.
delete l_tab_item where kschl ne 'PR00'.
loop at l_tab_item into l_wa_item.
l_index = sy-tabix.
move l_wa_item-kbetr to g_item_wa-kbetr.
modify g_item_itab from g_item_wa transporting kbetr where posnr = l_wa_item-posnr
and vbeln = g_head_wa-vbeln.
endloop.
endloop.
endform. "get_item
*& Form get_name
text
form get_name.
select name1 kunnr from kna1 into corresponding fields of table g_name_itab
for all entries in g_head_itab where kunnr = g_head_itab-kunag.
if sy-subrc = 0.
loop at g_name_itab into g_name_wa .
l_index = sy-tabix.
call function 'Z_DR_GET_CUSTOMER_ADDRESS'
exporting
customerno = g_name_wa-kunnr
importing
customer_city = g_name_wa-ort01
customer_street = g_name_wa-stras
customer_country = g_name_wa-landx
customer_zipcode = g_name_wa-pstlz.
modify g_name_itab from g_name_wa index l_index.
endloop.
loop at g_name_itab into g_name_wa .
move-corresponding g_name_wa to g_tot_wa.
modify g_tot_tab from g_tot_wa
transporting ort01 stras landx name1 pstlz where kunag = g_name_wa-kunnr.
endloop.
endif.
endform. "get_name
end-of-selection.
*& Form call_form
text
--> p1 text
<-- p2 text
form call_form .
data: wa_output type zinv_str,
gt_header type table of zinv_str_head,
gt_temp type table of zinv_str_item,
wa_header type zinv_str_head,
l_lines type i,
l_tabix type sy-tabix,
l_ssfctrlop type ssfctrlop.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZINV_FORM1'
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = sf_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.
CLEAR g_tot_tab[].
g_tot_tab[] = gt_output[].
gt_temp[] = gt_output[].
DELETE ADJACENT DUPLICATES FROM gt_header COMPARING order_number.
describe table g_head_itab lines l_lines.
gt_temp[] = g_item_itab[].
l_ssfctrlop-no_dialog = 'X'.
l_ssfctrlop-preview = 'X'.
l_ssfctrlop-getotf = 'X'.
ls_out_opt-tdnoprev = 'X'.
ls_out_opt-tddest = 'locl'.
loop at g_tot_tab into g_tot_wa.
g_item_itab[] = gt_temp[].
delete g_item_itab where vbeln ne g_tot_wa-vbeln.
loop at g_item_itab into g_item_wa.
move: sy-tabix to g_item_wa-sino.
modify g_item_itab from g_item_wa.
endloop.
add 1 to l_tabix.
if l_tabix gt 1 and l_tabix le l_lines.
l_ssfctrlop-no_open = 'X'.
endif.
if l_tabix eq l_lines.
l_ssfctrlop-no_close = space.
else.
l_ssfctrlop-no_close = 'X'.
endif.
call function sf_name
exporting
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = l_ssfctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = ls_out_opt
USER_SETTINGS = 'X'
is_inv_header = g_tot_wa
importing
DOCUMENT_OUTPUT_INFO =
job_output_info = ssfcrescl
JOB_OUTPUT_OPTIONS =
tables
l_itab = g_item_itab
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.
APPEND LINES OF ssfcrescl-otfdata TO final_ssfcrescl-otfdata.
endloop.
call function 'CONVERT_OTF'
exporting
format = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
importing
bin_filesize = filesize
bin_file = xstring
tables
otf = final_ssfcrescl-otfdata
lines = tline
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = xstring
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
tables
binary_tab = l_data_tab.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'C:\invoice.pdf'
filetype = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
tables
data_tab = l_data_tab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
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. "call_form
**& Form send_email
text
*FORM send_email.
Document information.
**wa_doc_chng-obj_name = 'Smartform'.
**wa_doc_chng-expiry_dat = sy-datum + 10.
**wa_doc_chng-obj_descr = 'Smart form output'.
**wa_doc_chng-sensitivty = 'F'. "Functional object
**wa_doc_chng-doc_size = v_lines_txt * 255.
**data:i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = l_doc_chng
put_in_outbox = 'X'
sender_address = sder_add
sender_address_type = 'U'
commit_work = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
SENDER_ID =
TABLES
packing_list = l_pac_list
OBJECT_HEADER =
CONTENTS_BIN =
CONTENTS_TXT =
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = l_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
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. "send_email
regards,
seshu.
Similar Messages
-
Page layout 360x305 to smartform***very urgent***
Hi,
I want to take print out from dot matrix printer Page size is 360x305.
Can u please help me
how to create and assign page layout to my smart form.
Very urgent.Go to SPAD transaction.
Click on the Full administration button.
Go to tab Device types.
click on page formats and create a new page format.
Close the thread once your question is answered.
Regards,
SaiRam -
Query Regarding ALV - Very Urgent
Hi experts,
I have defined a ALV grid in my program using the startdard function module as editable. Now I want the grid to be displayed in the screen with my pf-status. how can i do that?.
Here is the sample code.
REPORT zadvcformsub
NO STANDARD PAGE HEADING MESSAGE-ID zf
LINE-SIZE 255 LINE-COUNT 66.
INCLUDE zftsvar .
TYPE-POOLS : slis.
TABLES : zftsregstr, zftsintnum, zftscusttc,
zadvcform, konv, knvv, sscrfields.
DATA : it_fieldcat TYPE slis_t_fieldcat_alv.
DATA : w_layout TYPE slis_layout_alv,
w_fieldcat TYPE slis_fieldcat_alv.
DATA : BEGIN OF it_initial OCCURS 1,
bukrs(4) TYPE c,
wkreg(3) TYPE c,
zkunag(10) TYPE c,
validfrom(10) TYPE c,
validto(10) TYPE c,
vkorg(4) TYPE c,
aland(3) TYPE c,
zformtype(1) TYPE c,
frmintno(10) TYPE c,
uname(12) TYPE c,
datum(10) TYPE c,
uzeit(8) TYPE c,
END OF it_initial.
DATA : BEGIN OF it_part OCCURS 1,
zkunag LIKE zadvcform-zkunag,
frmintno LIKE zadvcform-frmintno,
validfrom LIKE zadvcform-validfrom,
validto LIKE zadvcform-validto,
END OF it_part.
DATA : w_sno(2) TYPE c,
w_cust(10) TYPE c,
w_cform(10) TYPE c,
w_from(10) TYPE c,
w_to(10) TYPE c,
w_blank1(10) TYPE c,
w_blank2(10) TYPE c,
w_blank3(10) TYPE c,
w_blank4(10) TYPE c,
w_string_len TYPE i,
w_sel_line(255) TYPE c,
w_indx(2) TYPE c.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS:
s_bukrs FOR zadvcform-bukrs NO INTERVALS NO-EXTENSION OBLIGATORY,
s_aland FOR zadvcform-aland NO INTERVALS NO-EXTENSION OBLIGATORY,
s_wkreg FOR zadvcform-wkreg NO INTERVALS NO-EXTENSION OBLIGATORY,
s_vkorg FOR zadvcform-vkorg NO INTERVALS NO-EXTENSION OBLIGATORY,
s_fmtyp FOR zadvcform-zformtype NO INTERVALS NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
AT SELECTION-SCREEN.
START-OF-SELECTION.
w_fieldcat-fieldname = 'ZKUNAG'.
w_fieldcat-tabname = 'IT_PART'.
w_fieldcat-ref_fieldname = 'ZKUNAG'.
w_fieldcat-ref_tabname = 'ZADVCFORM'.
w_fieldcat-seltext_l = 'Customer Code'.
w_fieldcat-ddictxt = 'L'.
w_fieldcat-input = 'X'.
w_fieldcat-edit = 'X'.
APPEND w_fieldcat TO it_fieldcat.
w_fieldcat-fieldname = 'FRMINTNO'.
w_fieldcat-tabname = 'IT_PART'.
w_fieldcat-ref_fieldname = 'FRMINTNO'.
w_fieldcat-ref_tabname = 'ZADVCFORM'.
w_fieldcat-seltext_l = 'C Form No'.
w_fieldcat-ddictxt = 'L'.
w_fieldcat-input = 'X'.
w_fieldcat-edit = 'X'.
APPEND w_fieldcat TO it_fieldcat.
w_fieldcat-fieldname = 'VALIDFROM'.
w_fieldcat-tabname = 'IT_PART'.
w_fieldcat-ref_fieldname = 'VALIDFROM'.
w_fieldcat-ref_tabname = 'ZADVCFORM'.
w_fieldcat-seltext_l = 'Valid From'.
w_fieldcat-ddictxt = 'L'.
w_fieldcat-input = 'X'.
w_fieldcat-edit = 'X'.
APPEND w_fieldcat TO it_fieldcat.
w_fieldcat-fieldname = 'VALIDTO'.
w_fieldcat-tabname = 'IT_PART'.
w_fieldcat-ref_fieldname = 'VALIDTO'.
w_fieldcat-ref_tabname = 'ZADVCFORM'.
w_fieldcat-seltext_l = 'Valid To'.
w_fieldcat-ddictxt = 'L'.
w_fieldcat-input = ' '.
w_fieldcat-edit = ' '.
APPEND w_fieldcat TO it_fieldcat.
DO 15 TIMES.
CLEAR it_part.
APPEND it_part.
ENDDO.
SET PF-STATUS 'ZADVCFORM_COPY'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'ZADVCFORM_COPY'
it_fieldcat = it_fieldcat
i_grid_title = 'Advanced C Form Submission'
TABLES
t_outtab = it_part[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE i039(zaba) WITH 'Error in ALV'.
ENDIF.
I am geting the editable ALV grid but how to set my gui status.
regards,
Arul Jothi.Hi,
Here is an sample code to handle events.
DATA: I_EVENTS TYPE SLIS_T_EVENT.
PERFORM F4000_EVENTS_INIT CHANGING I_EVENTS.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
IT_EVENTS = I_EVENTS
TABLES
T_OUTTAB = I_MARA
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM F4000_EVENTS_INIT USING I_EVENTS TYPE SLIS_T_EVENT.
DATA: LINE_EVENT TYPE SLIS_ALV_EVENT.
CLEAR LINE_EVENT.
LINE_EVENT-NAME = 'TOP_OF_PAGE'.
LINE_EVENT-FORM = 'F4001_TOP_OF_PAGE'.
APPEND LINE_EVENT TO I_EVENTS.
CLEAR LINE_EVENT.
LINE_EVENT-NAME = 'PF_STATUS_SET'.
LINE_EVENT-FORM = 'F4002_PF_STATUS_SET'.
APPEND LINE_EVENT TO I_EVENTS.
CLEAR LINE_EVENT.
LINE_EVENT-NAME = 'USER_COMMAND'.
LINE_EVENT-FORM = 'F4003_USER_COMMAND'.
APPEND LINE_EVENT TO I_EVENTS.
ENDFORM.
FORM F4003_USER_COMMAND USING UCOMM LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
CASE UCOMM.
WHEN '&CHNG'.
READ TABLE I_MARA INDEX SELFIELD-TABINDEX.
IF I_MARA-MATNR NE SPACE.
SET PARAMETER ID 'MAT' FIELD I_MARA-MATNR.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
CLEAR UCOMM.
ENDIF.
ENDCASE.
ENDFORM. -
Space issue in smartform(very urgent)
Hi ,
Im printing vendor address in a RFQ. In that i have to print different fields like,
company name
address
city, region postal code
responsible sales person
tel no.
if the "responsible sales person" field is blank then im getting a blank space there and after that tel no. is getting printed .
The issue is i dnt want that blank space. How to remove that space ?
Plz help me out.
thanks in advance,
Regards,
Shaheen.Hi,
Tell me one thing... From the output you shown..
company name
address
city, region postal code
responsible sales person
tel no.
Is it the case that only fourth line will be present or absent OR
is this the case with all the line. ?
If it is with only fourth line then you can do one thing...
create two text elements with in the Condition.
Check for forth line data. If it is empty then print the data in text element only for remaining lines as...
company name
address
city, region postal code
tel no
else (if it is not empty )
then print the data as you are printing right now i.e.
company name
address
city, region postal code
responsible sales person
tel no.
I think it will work..
Thanks
Swati. -
Smartform(very urgent )
Hi folks,
i am getting the barcode in my smartform correctly but it is too large in size.
so, i want to make it small in size. plz tell me , how can i do this??
correct answers will be rewarded???
Thanks
madhuhi,
U can change the size of barcode in SE73 ---> change. select ur barcode and double click on it.u will get barcode symbiology. After selected ur barcode type click ok.then change alignment and give linear height and width.then save in a new request. thats it.
u can also test ur barcode in EDIT ---> test barcode.
Thanks,
Senthil kumar -
Hi all,
I have displayed data in alv.and the error condition is that if for a material if it has more than one S as ok_status records then it should throw an error. This logic is working fine.
Now suppose at first time user had entered S through keyboard which fails the condition so it throws an error first time.
Now user can change the ok status back to I or O from S (through keyboard although f4 help is available) which satisfies the conditon so that record should be saved. but when user presses save button then in the ALV display the changed status I or O for that record again converted back to status S automatically. and again gives an error.
if we try third time then it allows to save with record other than s ok status i.e. I or O.
this problem is comming only when we change the value through keyboard. If we select value using f4 help then whole logic is working fine, no problem at all.
Can you please help me out in this regard
Its very urgent.
Thanks & Regards
Ashutosh.Hi,
to exclude toolbar buttons..
DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
DATA LS_EXCLUDE TYPE UI_FUNC.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
APPEND LS_EXCLUDE TO LT_EXCLUDE.
CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
<b> IT_TOOLBAR_EXCLUDING = LT_EXCLUDE</b>
IS_LAYOUT = GS_LAYOUT
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = IT_FINAL[].
and you told you are using REUSE_ALV_GRID_DISPLAY_LVC
then in the user_command do this....
then your problem will be solved.
in the top you declare this..
DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
*then insert the following code in your USER_COMMAND routine...
IF REF_GRID IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = REF_GRID.
ENDIF.
IF NOT REF_GRID IS INITIAL.
CALL METHOD REF_GRID->CHECK_CHANGED_DATA
ENDIF.
ENDFORM.
Regards
vijay -
Very Urgent Text Modules - Smartform in diff lang
Hi,
Could any one give me a detailed info on how to use one text module in Smartform to other languages <b>without logging</b> into the system in that language.
I <b>tried</b> Example in the thread containing as below nut unable to succeed.
/: INCLUDE z_txt OBJECT TEXT ID txt LANGUAGE &Variable&
Name: z_text
Object: Text
Text id: Txt (Text id from SO10)
Language: variable[/code][/code][/code]
Its very Urgent
Thanks
DanDan...
you want to give the Language for Text elemetn dinamically..
in genaral attributes of the Text Module winodow..
Text name: xxxxxxx
Text Object: Text
Text ID: ST
Language: as below...
so wht i am suggesting is give the &CONTROL_PARAMETERS-REPLANGU1& (if it contain the Language)..
in Language tab.. Press the button right side of this element ">" then the text box will be become large.. then enter &CONTROL_PARAMETERS-REPLANGU1&..
if it is not clear plese tell wht exactly you r requirement again
<b>Please Close this thread.. when u r problem ise solved</b>
Reward if Helpful
Regards
Naresh Reddy K -
Regarding error message.. very urgent
HI guys,
I am using an information message if any error..
IF sy-subrc <> 0.
MESSAGE i002 WITH iv_path.
ELSE.
iv_path contains the file path.. '//pmiasfvdev.aap.com/pmiasfvdev/sign_apo/SCIPIO/outbound/fplp1234.csv'
and message no002 = "The file '&' you are trying to write is open. Please close the file!!."
but when the error occured I am getting the information error as
<b>The file ''//pmiasfvdev.aap.com/pmiasfvdev/sign_apo/
SCIP' you are trying to write is open. Please close the file!!."</b>
But I need to get the full path in the information message..
<b>The file ''//pmiasfvdev.aap.com/pmiasfvdev/sign_apo/SCIPIO/outbound/fplp1234.csv'
you are trying to write is open. Please close the file!!."</b>
How can I do that,,its very urgent
Points will be rewarded..
thanks in advance!!
regards,
nazeerHi Nazeer ,
It is quite simple.Your problem is with the message qualifier .
Try this.
IF sy-subrc <> 0.
MESSAGE i002 WITH iv_path1 iv_path2
ELSE.
in the above statements no change.
change the message in 002 as
002 = "The file '&&' you are trying to write is open. Please close the file!!."
--Split your messages(iv_path) into 40char each as iv_path1 and iv_path2..
could be enough in your case but to satisfy all cases
002 = "The file '&&&&' you are trying to write is open. Please close the file!!."
Regards,
Raghav -
Material Regarding BAADI- VEry very Urgent
Hi Friends,
This is a very urgent Requirement, I am very new to BAADI and i might have to in-depth R& D in that
Can any one please send me the Material with good examples, with how to find BAADi and how to write code in that(If possbiel with sample code)
Thanks
RahulHi Munish,
check these <b>links</b> it will be very helpful
http://www.allsaplinks.com/badi.html
http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
http://support.sas.com/rnd/papers/sugi30/SAP.ppt
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
http://members.aol.com/_ht_a/skarkada/sap/
http://www.ct-software.com/reportpool_frame.htm
http://www.saphelp.com/SAP_Technical.htm
http://www.kabai.com/abaps/q.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://www.planetsap.com/download_abap_programs.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
Reward with points if it is helpful
Regards
Alfred -
Regarding tcode j1i2 its very urgent
hi experts,
i have problem in tcode j1i2 my invoice number(vbeln) is not coming i'll make my own report with name z try to solve this problem. and also add customer detail and basic value in the report .
plz help me its very urgent.
regards if useful.i know the program name n name is J_1ISTAX but we are not able to get the invoice no. so plz can u check the program n help me.regarding invoice no.(vbeln) n we want to add customer detail n basic value.
plz try to solve it. -
Very Urgent!...regarding selection criterion in Info Packages
Hi all,
This is very urgent requirement for the project now. Is there any way to indicate a field in selection criterion of a IP as blank.
Like if I want to select all the records which have a field 0WBS_element as blank from one ODS into another ODS. How do I indicate it in the IP( any solution apart from writing a routine!)
cheers
SudhirHi Sudhir,
Pls. refer to the earlier posted forums :
Rotuine in Infopackage for Data Selection---- Urgent
Thanks,
Raj -
Dear All,
Could you plz tell me how to generate continious sequential No.. Atually i have to print TC No. on the form, but it's not available in the SAP. TC No. should be in sequence i.e for first time say it 's 10, at the second time it should be 11, third time it should be 12 and so on.
Plz tell me ASAP. It's very urgent.
Looking forward to your earliest response.
thanks in Advance.
Gulrez AlamYou can create a number range(SNRO) to get the continuous numbers.You can use the FM 'NUMBER_GET_NEXT' to get the next number from number range.
-
Need help, MMC tree got deleted, very urgent.
Hi,
My sap MMC tree, got deleted in the server. I have been trying to restore since 2 days and couldnt succeed, please help me.
1) i have uncared the sapmmc.sar from Kernal\NT\I386\MMC\sapmmc.sar file
2) i got about 7 files, in which there is one sapmmc file i have tried to double click it, n check but no go.
3) i also tried to run the Sapstartsrv.exe file and fill in up the values in pop up window. & filled up the following values :-
SID: DEV
NR: 00
StartProfile: (entire start profile path given)
user: devadm
passwd; (given)
- but it says "the account name is invalid or does not exist or the password is invalid for account name specified"/
- no go in both the cases.
Please need help very urgent.
Regards,
Satish.siva,
I am getting same error since 2 days
SID: DEV
NR: 00
Start Profile: (entire start profile path)
User: <hostname>/devadm
passwd: ****
Error:
cannot install service
create service failed:421
The account name is invalid or doesnot exist, or the passwd is invalid for the account name specified.
Edited by: satish c on Jun 4, 2008 11:12 AM -
Manula Clearing of GR/IR a/cs -- very urgent
HI peers
How to do manual clearing of GR/IR a/cs. Plz explain me in detail how to do it. Also let me know the T.Code to clear it. Very Urgent.
Regards
RajaramHi,
U will clearning of GR/IR account to use t.code f.13. if you clearning same account for grouping u use t.code f.19
then will solve your problem
regards
cvsreddy -
Excise Duty Value in Export Invoice - Very Urgent
Hi Gurus,
I have created a Export delivery & Billing Documents. I am trying to create Excise Invoice in which Excise Duty values are coming as "0". We are using TAXINN Procedure , ECC 6.0
Is there any specific note or any customization required for this ?
Due to this ARE1 is also giving "0" values & subsequent "0" value in Bond Register.
Can anybody help me on this ? It is very urgent.
Thanks in advance
VikasHi Vikas,
Could you help yaar ...if you got solution for it ..I am facing same problem..We are going live very soon,
help of ur's could help me lot ..My mail id [email protected]
Thanks in advanec in for your help.
regards,
Vijay Khochare
Maybe you are looking for
-
Want to convert RDF output in Excel & Pdf Format.
Dear All, I want that when i run my report with showing the output report builder also convert that file or ask me an option in parameter that in which view you want to see the output of the report in Report Builder, In Excel, or In Pdf. when i choos
-
Regarding Application server file path browsing
Hi All, I have a issue regarding Application Server File Path browsing. Actually in my selection-screen i will declare a parameter as <b>Application Server File Path</b> now when i press F4 in that field it should be able to browse through <b>Applica
-
How can I download google earth onto my iPad 2 if I'm based in Kenya?
When I search fir it on the App Store Google Earth isn't the, but when I goggle it therebis an iPad app available. I'm based in Kenya and I'd like to know how I can I download it.
-
Photosmart c7180 paper jams & wrong paper size errors
About 5 weeks ago I bought an ASUS computer with Windows 7, 64 bit and installed the drivers for my printer from the hp website. The printer is hooked up to my wireless network. No problem. 3 weeks later I have constant paper jams, I did the standard
-
MMC crashes when attempting modification of a protection group in DPM 2012 SP1 RU3
Hi All, I've got a problem with my DPM 2012 SP1 server for a few weeks now. It's backing up and restoring fine, but when I attempt to modify any protection group, the MMC crashes. This happens even before the modify protection group dialog is display