Hi,
I just checked that in ides there is a field with the name lc_amount. I want this in the report. Kindly tell me where I am lacking.
Regards
Purnand
Hi,
I just checked that in ides there is a field with the name lc_amount. I want this in the report. Kindly tell me where I am lacking.
Regards
Purnand
Ok fine..
Now declare it_final as; data: it_final type bapi3007_2,
And then pass it to the FM. Try this and let me know if you find any complexity.
Also take a screenshot of your code and upload it here in case of further assistance.
Thanks
Jula
Hi,
Sorry, cannot attach the screenshot but following is the code:
report zrough.
tables: bsad, bsid.
data: it_bsad type STANDARD TABLE OF bsad,
it_bsid type STANDARD TABLE OF bsid.
data: wa_bsad type bsad,
wa_bsid type bsid.
data: it_final type STANDARD TABLE OF BAPI3007_2,
wa_final type bapi3007_2.
SELECT-OPTIONS: so_bukrs for bsad-bukrs,
so_kunnr for bsad-kunnr,
so_budat for bsad-budat.
BREAK-POINT.
CALL FUNCTION 'BAPI_AR_ACC_GETOPENITEMS'
EXPORTING
companycode = so_bukrs
customer = so_kunnr
keydate = so_budat
* NOTEDITEMS = ' '
* SECINDEX = ' '
* IMPORTING
* RETURN =
tables
lineitems = it_final.
.
loop at it_final into wa_final.
write:/ wa_Final-lc_amount.
endloop.
How to get the value of lc_amount?
Thanks
Purnand
Hi all.. If we have a situation like, we have to upload data to database(here we have to options like BAPI or RFC) which one we go for? and why?
which one is faster whether BAPI or RFC?
Don't use BDC_OPEN_GROUP and BDC_CLOSE_GROUP and CALL SM35, but use a CALL TRANSACTION USING bdc_tabMESSAGES INTO itabstatement.Then store error/success message(s) into your ztable.
Regards,
Raymond
Use the IN RANGE option in the select statement.
Did you use the FOR ALL ENTRIES (for I EQ records only) because there were too much values for SQL execution, if yes try to extract the Exclude records in another range ?
Regards,
Raymond
In the SAP system, BAPIs are stored as RFC-capable function modules, so your question may be perplexing ![]()
Regards,
Raymond
First check for OSS note at your system level like Note 94699 - Prod. order/network/proc. order: Objects w/o status object. Error can come from an error in standard, so you could find corrections, else that can be caused by wrong customer coding, e.g. COMMIT WORK in a BAdI, Enhancement spot or Customer Exit or wrong usage of non released FM.
Some OSS notes contain correction reports, but if the error comes from a customer development, you have to identify and correct your code.
Regards,
Raymond
Hello,
When using BAPI BAPI_PR_CREATE I am getting the following error: T16FS: no release code for group and strategy bapi_pr_create.
I looked table T16FS but I do not see how or what to update?
Using BAPI BAPI_REQUISITION_CREATE everything is fine, but the client requested me to use the latest IDOC type.
Any idea?
Thanks in advance.
Primo.
Hi,
bapi is also rfc enabled fm.....bapi stored in BOR(business object repository). when a bapi is created then it stored in API method. ...
Thanks
Sabyasachi
HI Zakir ,
For finding Opening MARD table will help you.
But for finding Closing , I guess its not maintained in any table externally .
You need to process all the intermediate transactions and calculate the same.
Thanks again Sumanas,
Managing the issue temporarily using the FM you've suggested.
Case1 (Adopted temporarily)
The problem, when the FM (progress indicator) is used in the calling program is, it is not integrated with the called program.
Means the progress indicator either ends before the new window appears OR continues even after the new window appears.
(Depending upon the number of DO times specified in the FM)
Case2
If the FM is used in the called program, there is no use, because this works in the window which would appear after the progress is completed, hence no indicator.
regards
Jogeswara Rao
Hello Gurus,
when i am trying to send mail through SAP , i am able to send mail to sap inbox along with PDF attachment, but not to internal /external mail id's. SCOT is already configured from Basis side
below is my code of the same program..
pls suggest me any solution.
data: fm_name type rs38l_fnam.
data: it_otf_final type itcoo occurs 0 with header line.
data: bin_filesize type i.
data: it_pdfdata type table of tline.
data: it_pdf type table of solisti1.
* MAIL RELATED DECLARATIONS
data : g_sent_to_all type sonv-flag,
g_tab_lines type i.
types: t_document_data type sodocchgi1,
t_packing_list type sopcklsti1,
t_attachment type solisti1,
t_body_msg type solisti1,
t_receivers type somlreci1,
t_pdf type tline.
data : w_document_data type t_document_data,
w_packing_list type t_packing_list,
w_attachment type t_attachment,
w_body_msg type t_body_msg,
w_receivers type t_receivers,
w_pdf type t_pdf.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
data: var_a.
data : i_document_data type standard table of t_document_data,
i_packing_list type standard table of t_packing_list,
i_attachment type standard table of t_attachment,
i_body_msg type standard table of t_body_msg,
i_receivers type standard table of t_receivers,
i_pdf type standard table of t_pdf.
ssfctrlop-no_dialog = 'X'.
ssfctrlop-preview = 'X'.
ssfctrlop-getotf = 'X'.
ssfcompop-tddest = 'LP01'.
call function l_v_fm_name
exporting
control_parameters = ssfctrlop
output_options = ssfcompop
wa_header = wa_header
v_tot = l_v_tot
v_tot2 = l_v_tot2
i_v_name2 = i_v_name2
flag = flag
user_settings = space
importing
job_output_info = it_otf_data
tables
i_mat_dtl = l_i_mat_dtl
i_qty = l_i_qty
i_amnt_dtl = l_i_amnt_dtl
i_tax = l_i_tax
i_ttxit = l_i_ttxit
i_stxh = l_i_stxh
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.
it_otf_final[] = it_otf_data-otfdata[].
* CONVERTING OTF DATA INTO PDF DATA
call function 'CONVERT_OTF'
exporting
format = 'PDF'
importing
bin_filesize = bin_filesize
tables
otf = it_otf_final
lines = it_pdfdata[]
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
* To send data as email attachment, we need to have a table of SOLISTI1.
* This table contains line size of 255 characters. Below function module
* does the trick of changing the table from X character sized lines into
* any given Y character sized lines.
call function 'SX_TABLE_LINE_WIDTH_CHANGE'
exporting
line_width_dst = '255'
tables
content_in = it_pdfdata[]
content_out = it_pdf[]
exceptions
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
others = 4.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
* SUBJECT OF THE MAIL.
w_document_data-obj_name = 'MAIL_TO_HEAD'.
w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
* BODY OF THE MAIL
w_body_msg = 'This is body of mail msg.'.
append w_body_msg to i_body_msg.
clear w_body_msg.
* WRITE PACKING LIST FOR BODY
describe table i_body_msg lines g_tab_lines.
w_packing_list-head_start = 1.
w_packing_list-head_num = 0.
w_packing_list-body_start = 1.
w_packing_list-body_num = g_tab_lines.
w_packing_list-doc_type = 'RAW'.
append w_packing_list to i_packing_list.
clear w_packing_list.
* WRITE PACKING LIST FOR ATTACHMENT
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
describe table it_pdf lines w_packing_list-body_num.
w_packing_list-doc_type = 'PDF'.
w_packing_list-obj_descr = 'PDF Attachment'.
w_packing_list-obj_name = 'PDF_ATTACHMENT'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
*w_packing_list-doc_size = w_packing_list-body_num * 500.
append w_packing_list to i_packing_list.
clear w_packing_list.
* FILL THE DOCUMENT DATA &GET SIZE OF ATTACHMENT
w_document_data-obj_langu = sy-langu.
read table it_pdf into w_pdf index g_tab_lines.
w_document_data-doc_size = ( g_tab_lines - 1 ) * 500 + strlen( w_attachment ).
* RECEIVERS LIST.
w_receivers-receiver = 'ABC@XYZ.COM'.
w_receivers-rec_type = 'U'. "Internet address
*w_receivers-com_type = 'INT'.
*w_receivers-notif_del = 'X'.
*w_receivers-notif_ndel = 'X'.
append w_receivers to i_receivers .
clear:w_receivers.
* SEND MAILS TO RECIPIENTS
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = w_document_data
put_in_outbox = 'X'
commit_work = 'X'
importing
sent_to_all = g_sent_to_all
tables
packing_list = i_packing_list
contents_bin = it_pdf
contents_txt = i_body_msg
receivers = i_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 .
* wait UP TO 3 SECONDS.
submit rsconn01 with mode = 'INT' and return.
* commit work.
*MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
endif.
endif.
Hi
Do like this
Step 1 : Take a temporary table of same type.
Step 2 :Now you move the same data to temp table.
Step 3 : You have two tables now with same data.
Step 4 : Sort the original table by object id and value_new descending.(Max value on Top)
Step 5 : Sort the temporary table by object id and value_old ascending.(Min Value on Top)
If you use read statements of both the internal tables you can get the required output.
Regards,
Prakash.
Please check the log of the Failed job.
hi vamsi,
how to check in sm35 whether its synchronous r asynchronous... I havent used bdc method...
can u help out in this... when i checked in sm37 its showing
smart forms : formatting error
Hi KKP,
U can try below EXIT n BADI.
Enhancement
MGA00001 Material Master (Industry): Checks and Enhancements
MGA00002 Material Master (Industry): Number Assignment
MGA00003 Material Master (Industry and Retail): Number Display
Business Add-in
CDT_CHECK_MATERIAL Checks for Existence of a Material in a CDT
BADI_MM_MATNR Modification-Free Archiving Enhancement of MM_MATNR
BADI_MAT_F_SPEC_SEL BAdI for Material Special Field Selection
BADI_MATNR_CHECK_PVS Check Material for Use in iPPE
BADI_MATERIAL_REF Addition of customer-defined default data for material
BADI_MATERIAL_OD Integration of New Objects in Material or Article Master
BADI_MATERIAL_CHECK Enhanced Checks for Material Master Tables
BADI_GTIN_VARIANT User Exit for Customer-Specific GTIN Variant Check
BADI_EAN_SYSTEMATIC BAdI for Internal Control of EAN Logic
WRF_DISCONT_PARAMS_I BAdI: Parameters in Fashion Discontinuation
WRF_DISCONT_FACT_E BAdI: Follow-Up Actions in Discontinuation
WRF_DISCONT_CHECKS_I BAdI: Scope of Check in Material Reorganization
MG_MASS_NEWSEG User-Specific Fields & Segments in Mass Maintenance
MATGRP_SKU_UPD BAdI for Article Hierarchy Connection
Thanks
Tarak
Hi,
Please check this code,
sort itab by objectid ASCENDING value_new DESCENDING value_old ASCENDING.
delete ADJACENTDUPLICATESFROM itab comparing objectid.
Regards,
Suman
Hi Nagaraj,
U have used this :
append wa_fieldcat to wa_fieldcat.
clear wa_fieldcat.
so Fieldcatalog has been cleared here.
PLease do the below code.
take one Internal Table for Fieldcatalog.
DATA : it_fieldcat type slis_t_fieldcat_alv,
wa_fieldcat type slis_t_fieldcat_alv.
Now U can use the APPEND and CLEAR.
append wa_fieldcat to it_fieldcat.
clear wa_fieldcat.
And Use the IT_FIELDCAT into FM .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = 'X'
I_CALLBACK_PROGRAM = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
IS_LAYOUT = st_layout
IT_FIELDCAT = it_FIELDCAT[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
I_SAVE = 'A'
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_FINAL
* 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.
ENDFORM.
please check and let me know.
Thanks
Tarak
Hi,
You need to maintain the Mail Host ip address from SCOT , in your outgoing mail server (contact your network team).
Regards,
Madhumahesh.