Upload Values to FB50
My requirement is to upload values to Transaction FB50 . Could any help me in getting the Method I have to use in LSMW?..
Thanks you
bdc
Re: Custom BAPI for FB50 or FB50L for Parking FI document..
else bapi
u can use the bapi 'BAPI_ACC_GL_POSTING_POST'.
and i think you can also write a bdc in your own bapi too.
Look at the sample code....................
loop at podoc_it.
clear: offset_it, it_hdr, it_gl, it_curr.
refresh: it_hdr, it_gl, it_curr.
read table offset_it with key bukrs = podoc_it-bukrs
saknr = podoc_it-hkont.
Header Data
it_hdr-comp_code = podoc_it-bukrs.
it_hdr-doc_date = sy-datum.
it_hdr-pstng_date = sy-datum.
it_hdr-doc_type = podoc_it-blart.
it_hdr-ref_doc_no = bkpf_it-xblnr.
it_hdr-username = sy-uname.
it_hdr-bus_act = 'RFBU'.
IF podoc_it-shkzg = 'S'.
First Item
Account number
it_gl-itemno_acc = '1'.
it_gl-gl_account = podoc_it-hkont.
it_gl-item_text = podoc_it-sgtxt.
it_gl-fis_period = v_monat.
it_gl-fisc_year = v_gjahr.
it_gl-acct_key = 'A00'.
APPEND it_gl.
Second Item
Account number
it_gl-itemno_acc = '2'.
it_gl-gl_account = offset_it-osaknr.
it_gl-item_text = podoc_it-sgtxt.
it_gl-fis_period = v_monat.
it_gl-fisc_year = v_gjahr.
it_gl-acct_key = 'A00'.
APPEND it_gl.
Set amount
it_curr-itemno_acc = '1'.
it_curr-currency = podoc_it-waers.
it_curr-amt_doccur = podoc_it-wrbtr.
APPEND it_curr.
it_curr-itemno_acc = '2'.
it_curr-currency = podoc_it-waers.
it_curr-amt_doccur = podoc_it-wrbtr.
it_curr-amt_doccur = it_curr-amt_doccur * -1.
APPEND it_curr.
ELSE.
First Item
Account number
it_gl-itemno_acc = '1'.
it_gl-gl_account = podoc_it-hkont.
it_gl-item_text = podoc_it-sgtxt.
it_gl-fis_period = v_monat.
it_gl-fisc_year = v_gjahr.
it_gl-acct_key = 'A00'.
APPEND it_gl.
Second Item
Account number
it_gl-itemno_acc = '2'.
it_gl-gl_account = offset_it-osaknr.
it_gl-item_text = podoc_it-sgtxt.
it_gl-fis_period = v_monat.
it_gl-fisc_year = v_gjahr.
it_gl-acct_key = 'A00'.
APPEND it_gl.
Set amount
it_curr-itemno_acc = '1'.
it_curr-currency = podoc_it-waers.
it_curr-amt_doccur = podoc_it-wrbtr.
it_curr-amt_doccur = it_curr-amt_doccur * -1.
APPEND it_curr.
it_curr-itemno_acc = '2'.
it_curr-currency = podoc_it-waers.
it_curr-amt_doccur = podoc_it-wrbtr.
APPEND it_curr.
ENDIF.
check posting
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
documentheader = it_hdr
TABLES
accountgl = it_gl
currencyamount = it_curr
return = t_result.
LOOP AT t_result WHERE ( type = 'E' OR
type = 'A' ).
EXIT.
ENDLOOP.
IF sy-subrc <> 0.
REFRESH t_result.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = it_hdr
TABLES
accountgl = it_gl
currencyamount = it_curr
return = t_result.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
move: podoc_it-bukrs to doc_it-bukrs,
podoc_it-belnr to doc_it-belnr,
podoc_it-gjahr to doc_it-gjahr,
podoc_it-shkzg to doc_it-shkzg,
podoc_it-hkont to doc_it-hkont,
offset_it-osaknr to doc_it-osaknr.
ENDIF.
Print Message
LOOP AT t_result.
WRITE: t_result-message.
Get Number
IF t_result-id = 'RW' AND
t_result-number = '605'.
belnr = t_result-message_v2(10).
gjahr = t_result-message_v2+14(4).
ENDIF.
move: belnr to doc_it-obelnr,
gjahr to doc_it-ogjahr.
ENDLOOP.
append doc_it.
clear: doc_it, podoc_it.
endloop.
loop at doc_it.
write:/ doc_it-bukrs,
doc_it-belnr,
doc_it-gjahr,
doc_it-shkzg,
doc_it-hkont,
doc_it-osaknr,
doc_it-obelnr,
doc_it-ogjahr.
endloop.
Look at the example code for that.......
Re: BAPI - - POINTS guarenteed !!!!
Similar Messages
-
Excel Planning Upload - Values are equally distributed
Hello Gurus,
I am doing Excel planning upload using KP06 for Cost Center and Cost Element planning. The issue I am having is the upload is not taking individual values of each period during the upload. It is only taking one period value and spreading equally across all 12 periods. I used distribution keys 0 and 2. But no use. I see there are few questions on this issue. But I could not get the right answer. Can any of you please guide me as to how to upload values for each period?
Thanks in advance.
VenkatNot sure how you define your File Description. Try this:
One column per month, e.g. column C = month1; column D = month2;... etc.
One row per cost element -
SAP LSMW to upload values against characteristics in CL20N
Morning,
I need to upload values against characteristics in transaction code CL20N using LSMW.
I have tried batch input recording method, but I receive the error below.
The setup of characteristics is as follows:
Plants – Upload all plants
Purchasing Groups – Upload all purchasing groups
Cost Centre – Upload cost centres specific to a strategy
Value of PR – Upload PR value specific to a strategy
Account Assignment - – Upload account assignments specific to a strategy
Document Type – Upload document types specific to a strategy
We have over 800 strategies and I need LSMW to upload the characteristics across all 800 strategies.
I started creating a LSMW program by recording the transaction CL20N, but I get the following error:
Error received "Runtime error DYNPRO_NOT_FOUND has occurred"
Please advise or send me user guide on what I need to do to successfully create the LSMW.
See attached screen shots.
Many thanks,
GeorgeHi George,
For Idoc CLFMAS / CLFMAS02: when updating nodes, add table for nodes OBTAB = 'PNODID'.
For CL24N recording it is the same as other LSMW recodings, use selects if all data isn't available to fill needed recoding fields.
Anete -
How to get form upload value...?
Hi, I'd like to know how to get form upload value?
I have my initial page, index.cfm that has a upload input box
(named "fileToUpload")that submits to action.cfm. In action.cfm I
tried to get the value of the input by doing
<cfoutput>#form.fileToUpload#</cfoutput> but instead I
got a string like
("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
I expected it to be the value that was in the upload input field
(i.e. "E:\My Pictures\Flowers.jpg"). How do I get this?
Thanks,
noijetCFFILE.ServerFile
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000192.htm#2712126
CFFILE ACTION=Upload variables
File variables are read-only. Use the CFFILE prefix to
reference file
variables; for example, CFFILE.ClientDirectory. The File
prefix is
deprecated in favor of the CFFILE prefix.
CFFILE.AttemptedServerFile
CFFILE.ClientDirectory
CFFILE.ClientFile
CFFILE.ClientFileExt
CFFILE.ClientFileName
CFFILE.ContentSubType
CFFILE.ContentType
CFFILE.DateLastAccessed
CFFILE.FileExisted
CFFILE.FileSize
CFFILE.FileWasAppended
CFFILE.FileWasOverwritten
CFFILE.FileWasRenamed
CFFILE.FileWasSaved
CFFILE.OldFileSize
CFFILE.ServerDirectory
CFFILE.ServerFile
CFFILE.ServerFileExt
CFFILE.ServerFileName
CFFILE.TimeCreated
CFFILE.TimeLastModified
Ken Ford
Adobe Community Expert
"noijet" <[email protected]> wrote in
message
news:efc7gq$n7s$[email protected]..
> Hi, I'd like to know how to get form upload value?
> I have my initial page, index.cfm that has a upload
input box (named
> "fileToUpload")that submits to action.cfm. In action.cfm
I tried to get
> the
> value of the input by doing
<cfoutput>#form.fileToUpload#</cfoutput> but
> instead I got a string like
>
("E:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\neotmp5263.tmp"),
> I
> expected it to be the value that was in the upload input
field (i.e.
> "E:\My
> Pictures\Flowers.jpg"). How do I get this?
> Thanks,
> noijet
> -
Hi All,
I am using call Transaction method to upload data for FB50. The data is being populated into the bdcdata internal table. But the docuement is getting posted with only 2 line item entries. Where as the document contains 4 line item entries.
Can anyone please help me out in this? I am attaching the code which i am using
LOOP AT it_data ASSIGNING <wa_data>.
w_d = sy-tabix.
W_TAB = SY-TABIX MOD 2.
IF sy-tabix EQ 1 OR ( W_TAB NE 0 or w_y eq 'x' ) .
get parameter id 'BUK' field w_bukrs.
if w_bukrs is initial.
set parameter id 'BUK' field w_bukrs_initial.
perform bdc_dynpro using 'SAPLACHD' '1000'.
perform bdc_field using 'BDC_CURSOR'
'BKPF-BUKRS'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'BKPF-BUKRS'
<wa_data>-bukrs.
write <wa_data>-budat to w_date.
perform bdc_dynpro using 'SAPMF05A' '1001'.
perform bdc_field using 'ACGL_HEAD-BLDAT'
w_date.
perform bdc_field using 'ACGL_HEAD-BUDAT'
w_date.
perform bdc_field using 'BDC_OKCODE'
'/00'.
else.
PERFORM bdc_dynpro USING 'SAPMF05A' '1001'.
WRITE <wa_data>-BUDAT TO W_DATE.
PERFORM bdc_field USING 'ACGL_HEAD-BLDAT'
W_DATE.
PERFORM bdc_dynpro USING 'SAPMF05A' '1001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'ACGL_HEAD-BLDAT'
W_DATE.
PERFORM bdc_field USING 'ACGL_HEAD-BUDAT'
w_date.
Endif.
PERFORM bdc_field USING 'ACGL_HEAD-WAERS'
<wa_data>-WAERS.
PERFORM bdc_field USING 'ACGL_HEAD-XBLNR'
<wa_data>-xblnr.
PERFORM bdc_field USING 'BDC_CURSOR'
'ACGL_ITEM-ZUONR(01)'.
PERFORM bdc_field USING 'ACGL_ITEM-HKONT(01)'
<wa_data>-hkont.
WRITE <WA_DATA>-wrbtr TO w_bdc_data .
SHIFT w_bdc_data LEFT DELETING LEADING ' '.
PERFORM bdc_field USING 'ACGL_ITEM-WRBTR(01)'
w_bdc_data.
PERFORM bdc_field USING 'ACGL_ITEM-TXJCD(01)'
<wa_data>-txjcd.
PERFORM bdc_field USING 'ACGL_ITEM-ZUONR(01)'
<wa_data>-zuonr.
PERFORM bdc_field USING 'ACGL_ITEM-SGTXT(01)'
<wa_data>-sgtxt.
PERFORM bdc_dynpro USING 'SAPMF05A' '1001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FIKP'.
PERFORM bdc_field USING 'BDC_CURSOR'
'ACGL_ITEM-HKONT(02)'.
PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-NEWKO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF05A-NEWBS'
<wa_data>-bschl.
PERFORM bdc_field USING 'RF05A-NEWKO'
<wa_data>-hkont.
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-MEINS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
WRITE <wa_data>-wrbtr TO w_amt .
PERFORM bdc_field USING 'BSEG-WRBTR'
w_amt.
WRITE <wa_data>-menge TO w_bdc_data.
SHIFT w_bdc_data LEFT DELETING LEADING ' '.
PERFORM bdc_field USING 'BSEG-MENGE'
w_bdc_data.
PERFORM bdc_field USING 'BSEG-MEINS'
<wa_data>-meins.
WRITE <wa_data>-valut TO w_date.
PERFORM bdc_field USING 'BSEG-VALUT'
w_date.
PERFORM bdc_field USING 'DKACB-FMORE'
'X'.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-PRCTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-PRCTR'
<wa_data>-prctr.
ELSE.
PERFORM bdc_dynpro USING 'SAPMF05A' '0700'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF05A-NEWKO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF05A-NEWBS'
<wa_data>-bschl.
PERFORM bdc_field USING 'RF05A-NEWKO'
<wa_data>-hkont.
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-MEINS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
WRITE <wa_data>-wrbtr TO w_amt .
PERFORM bdc_field USING 'BSEG-WRBTR'
w_amt.
WRITE <wa_data>-menge TO w_bdc_data.
SHIFT w_bdc_data LEFT DELETING LEADING ' '.
PERFORM bdc_field USING 'BSEG-MENGE'
w_bdc_data.
PERFORM bdc_field USING 'BSEG-MEINS'
<wa_data>-meins.
CLEAR W_DATE.
WRITE <wa_data>-valut TO w_date.
PERFORM bdc_field USING 'BSEG-VALUT'
w_date.
PERFORM bdc_field USING 'DKACB-FMORE'
'X'.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-PRCTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-PRCTR'
<wa_data>-prctr.
ENDIF.
w_x = w_d mod 998.
IF w_x EQ 0 or w_ln eq w_d.
w_y = 'X'.
PERFORM bdc_dynpro USING 'SAPMF05A' '0300'.
PERFORM bdc_field USING 'BDC_CURSOR'
'BSEG-WRBTR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'BSEG-WRBTR'
<wa_data>-wrbtr.
PERFORM bdc_field USING 'BSEG-MENGE'
<wa_data>-menge.
PERFORM bdc_field USING 'BSEG-MEINS'
<wa_data>-meins.
CLEAR W_DATE.
WRITE <wa_data>-valut TO w_date.
PERFORM bdc_field USING 'BSEG-VALUT'
W_DATE.
PERFORM bdc_field USING 'DKACB-FMORE'
'X'.
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-GSBER'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-PRCTR'
<wa_data>-prctr.
CALL TRANSACTION 'FB50' USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_MESGTAB.
ENDIF.
ENDLOOP.Check out the message coming in the IT_MESSTAB.
I suggest you to use the RFBIBL00 to post FI documnents, if possible.
You can read the documentaion of RFBIBL00 for more information.
Regards,
Naimesh Patel -
Invoice Upload Program in FB50
Hi Experts,
I need to develop an invoice upload program for transaction code FB50. The data will be from an Excel file.
As I'm new to program in accounting, is there anyone has sample code?
I'm not sure what function module to use to save the invoice.
Hope someone can help me. Many thanks in advance.Hi Sam,
It generally depends on what sort of postings you are doing.
You can refer to following code, it is for the posting of invoices.
Document Header
wa_document_header-comp_code = c_company_2001.
One time vendor
Concatenate the text and account number and pass it as a line item text
Check for the Payee name and use vendor number accordingly
Check if amount value is more than '0'
Vendor line item
GL Account line item
Get currency details for vendor line item
Get currency details for GL Account line item
Pass suitable posting key
Pass suitable posting key
When posting amount is less than zero
Vendor line item
Get currency details for vendor line item
Get currency details for GL Account line item
GL Account line item
Pass suitable posting key
Pass suitable posting key
Check if one time vendor data is available
Call the BAPI 'BAPI_ACC_DOCUMENT_POST' to create the invoices
Check if bapi return table is intial
Maintain a error log with all BAPI returned messages
Get only error\abort messages into error table
check if flag has been enabled
Check for the message type in the return table and
if it is success then commit the transaction.
Concatenate the message text and refund id into a variable
append success messge to the error table
Refresh the internal tables
Clear the work areas and variables
LOOP AT it_record INTO wa_record.
wa_document_header-username = sy-uname.
wa_document_header-comp_code = v_compcode.
wa_document_header-doc_date = wa_record-bkpf_bldat.
wa_document_header-pstng_date = sy-datum.
wa_document_header-doc_type = v_doctype.
wa_document_header-ref_doc_no = wa_record-bkpf_xblnr.
wa_customercpd-name = wa_record-bsec_name1.
wa_customercpd-name_2 = wa_record-bsec_name2.
wa_customercpd-postl_code = wa_record-bsec_pstlz.
wa_customercpd-city = wa_record-bsec_ort01.
wa_customercpd-country = v_country.
wa_customercpd-street = wa_record-bsec_stras.
wa_customercpd-tax_no_1 = wa_record-bsec_stcd1.
wa_customercpd-tax_no_2 = wa_record-bsec_stcd2.
wa_customercpd-region = wa_record-bsec_regio.
CONCATENATE text-008 wa_record-bseg_sgtxt INTO v_item_text " Refund for Acc no
SEPARATED BY space.
IF wa_record-bsec_name1 = c_name_heap.
v_vendor_no = v_vendor_heap.
ELSE.
v_vendor_no = v_vendor_onetime.
ENDIF.
IF wa_record-bseg_wrbtr GT 0.
wa_acc_payable-itemno_acc = c_itemno_1.
wa_acc_payable-vendor_no = v_vendor_no.
wa_acc_payable-item_text = v_item_text.
APPEND wa_acc_payable TO it_acc_payable.
CLEAR: wa_acc_payable.
wa_accountgl-itemno_acc = c_itemno_2.
wa_accountgl-gl_account = v_glaccount.
wa_accountgl-item_text = v_item_text.
APPEND wa_accountgl TO it_accountgl.
CLEAR: wa_accountgl.
wa_currency_amount-itemno_acc = c_itemno_1.
wa_currency_amount-currency = c_currency_usd .
wa_currency_amount-amt_doccur = - ( wa_record-bseg_wrbtr ).
APPEND wa_currency_amount TO it_currency_amount.
CLEAR: wa_currency_amount.
wa_currency_amount-itemno_acc = c_itemno_2.
wa_currency_amount-currency = c_currency_usd .
wa_currency_amount-amt_doccur = wa_record-bseg_wrbtr.
APPEND wa_currency_amount TO it_currency_amount.
CLEAR: wa_currency_amount.
wa_extension2-structure = c_structure.
wa_extension2-valuepart1 = c_itemno_1.
wa_extension2-valuepart2 = c_newbs_31. " Credit indicator( Vendor side )
APPEND wa_extension2 TO it_extension2.
CLEAR: wa_extension2.
wa_extension2-structure = c_structure.
wa_extension2-valuepart1 = c_itemno_2.
wa_extension2-valuepart2 = c_newbs_40. " Debit indicator( GL Account side )
APPEND wa_extension2 TO it_extension2.
CLEAR: wa_extension2.
ELSE.
wa_acc_payable-itemno_acc = c_itemno_1.
wa_acc_payable-vendor_no = v_vendor_no.
wa_acc_payable-item_text = v_item_text.
APPEND wa_acc_payable TO it_acc_payable.
CLEAR: wa_acc_payable.
wa_currency_amount-itemno_acc = c_itemno_1.
wa_currency_amount-currency = c_currency_usd .
wa_currency_amount-amt_doccur = wa_record-bseg_wrbtr.
APPEND wa_currency_amount TO it_currency_amount.
CLEAR: wa_currency_amount.
wa_currency_amount-itemno_acc = c_itemno_2.
wa_currency_amount-currency = c_currency_usd .
wa_currency_amount-amt_doccur = - ( wa_record-bseg_wrbtr ).
APPEND wa_currency_amount TO it_currency_amount.
CLEAR: wa_currency_amount.
wa_accountgl-itemno_acc = c_itemno_2.
wa_accountgl-gl_account = v_glaccount.
wa_accountgl-item_text = v_item_text.
APPEND wa_accountgl TO it_accountgl.
CLEAR: wa_accountgl.
wa_extension2-structure = c_structure.
wa_extension2-valuepart1 = c_itemno_1.
wa_extension2-valuepart2 = c_newbs_21. " Debit indicator( Vendor side )
APPEND wa_extension2 TO it_extension2.
CLEAR: wa_extension2.
wa_extension2-structure = c_structure.
wa_extension2-valuepart1 = c_itemno_2.
wa_extension2-valuepart2 = c_newbs_50. " Credit indicator( GL Account side )
APPEND wa_extension2 TO it_extension2.
CLEAR: wa_extension2.
ENDIF.
IF wa_customercpd IS NOT INITIAL.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = wa_document_header
customercpd = wa_customercpd
TABLES
accountgl = it_accountgl
accountpayable = it_acc_payable
currencyamount = it_currency_amount
return = it_return
extension2 = it_extension2.
IF it_return IS NOT INITIAL.
LOOP AT it_return INTO wa_return WHERE type = c_msgtype_e OR
type = c_msgtype_a.
CONCATENATE wa_return-message text-013 wa_record-bkpf_xblnr INTO v_msg_text
SEPARATED BY space.
MOVE v_msg_text TO wa_return-message.
APPEND wa_return TO it_error.
CLEAR: wa_return,
v_msg_text.
f_error_ind = c_true.
ENDLOOP.
IF f_error_ind EQ c_true.
EXIT.
ELSE.
DESCRIBE TABLE it_return LINES v_tabix.
READ TABLE it_return INDEX v_tabix INTO wa_return.
IF sy-subrc = 0.
v_total_amount = ABS( wa_record-bseg_wrbtr ) + v_total_amount. " Total posting amount
CONCATENATE wa_return-message text-013 wa_record-bkpf_xblnr INTO v_msg_text
SEPARATED BY space.
MOVE v_msg_text TO wa_return-message.
APPEND wa_return TO it_success.
CLEAR: wa_return,
v_msg_text,
v_tabix.
ENDIF.
ENDIF.
ENDIF.
ELSE.
wa_return-type = c_msgtype_e.
wa_return-message = text-009. " One time vendor details are not found
APPEND wa_return TO it_error.
CLEAR: wa_return.
EXIT.
ENDIF.
REFRESH: it_return,
it_acc_payable,
it_currency_amount,
it_accountgl,
it_extension2.
CLEAR: wa_document_header,
wa_customercpd,
wa_record,
v_vendor_no,
v_item_text.
ENDLOOP.
Sam, before making the postings directly, try using 'BAPI_ACC_DOCUMENT_CHECK' so that
you will get to mo
I hope, it will be helpful to you.
If you want any more help, get back to me.
Regards,
Jallu -
Asset Initial Upload & reporting for uploaded value
Hi SAP Gurus,
I have uploaded the asset data using AS91 and also updated the GL values in OASV.
The initial upload seems to be all correct in this manner since TB is tallying.
However when i view the FA reports for the date of upload i am finding discrepancies in the Accumulated Depreciation values as shown in the report & the values uplaoded in AS91.
Let me explain further, say for eg. the Cost of the asset was Rs. 10,000/- and Accumulated Depreciation as per legacy (as on date of upload) is Rs. 1858/-. However the actual Accumulated Depreciation should have been Rs. 1863 --- the diffference in legacy data was due to runding offs in previous months.
Now when i uploaded the intial data i used the legacy figures i.e. Rs. 10,000 & Rs. 1858 since trial balance had to be tallied.
However when i run reports in FA for the initial upload date, i find that the reports are showing the Acc. Depn (plan values) as Rs. 1863 & not the value that i have uploaded.
What possibly is the reason for this ?
Can anyone tell me any report to view only the uploaded information ?
Points will be awarded for useful answers.
Thanks & Regards
Piyush KothariHi,
There is an error appearing as below:
"Report date 31.08.2007 is invalid for this report.
Reports of this kind can only be run for the last day of the period in which the last depreciation posting run took place (or in a subsequent period) in the relevant fiscal year.
It is not possible to run a report on posted depreciation in a fiscal year in which no depreciation posting run has yet taken place."
My legacy upload date was 31.08.2007.
When i run for 31.12.2007 (last period in the fiscal year for which dep. run has taken place) then the results are ok.
But still i would like to assign some points to you since this would have helped indeed.
Thanks
Piyush Kothari -
Uploading values for an image field in a web app. Nothing displays in layout.
I've uploaded the values (using the import) for a field defined as an image in a web app. When I try to display the field, nothing shows up. The value correctly shows up when I look at Web App items after the upload / import. I've uploaded the same value in a text field, just to learn what was happening, and the text field displays the image just fine when added to the layout.
I would like to use the image field type, as it's easier to correctly create the link when the web app is updated in the future.
Here is what works in the layout: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_image thumb}" /></a>
Note that {tag_image thumb} is a text field with the link stored in it. The value for each Web App Item which populates this field is a link to the image. (i.e. /Awards/139.jpg)
Here is what I want to work: <a href="{tag_link to page}"> <img alt="" class="column66_award_thumb" id="thx" src="{tag_thumbnail image_value}" /></a> , where {tag_thumbnail image_value} refers to a field defined as an image in the web app. It has the exact same value as {tag_image thumb}. I just copied the field values in the Excel spreadsheet (saved as .csv) when I uploaded it.
It looks like the image field works fine only when I manually create it in the web app. If this is the case, using the upload capability disables any ability to use the image field type.
Is there a workaround for this? Am I missing something?
The page I'm working on is http://www.e-a-a.com/awards When you view the source, you can see that the small thumbnail images are displaying just fine. (I'm using the text field). Whenever I substitute the image field name {tag_thumbnail image}, {tag_thumbnail image_nolink}, or {tag_thumbnail image_value}, the src value is always null.
How do I fix?Hi there,
To do it properly you need to resize the image. Prefably before you put it into BC. While you can for scale the image in CSS you do not want to do this. Why? Because the images are still very big and likely not optimised as they should be for the web.
This means the page with these images will take a very long time to load for people, and people wont be to happy about that viewing your site.
You need to use software such as photoshop if you have it or iphoto on a mac for example to edit, crop and size images before you upload them. If you do not have anything you can use free web based tools such as this one:
http://pixlr.com/editor/
You can also do this within BC itself in the file manager. If you click the image you can see options to resize it. The downside of that is that is done by pure math. It does not know what is in the photo and the results can make the image look squished etc. -
Upload value to SD billing VBRK-XBLNR
Hi All,
I need to develop a program to upload a value to the Reference(VBRK-XBLNR) of SD billing and related FI doc. Do any one have ideas on this requirements? Any function module I can used? Thanks in advance.Hi Seshu, Thanks nad it really works.
-
To upload values into material master table
Hi,
Can anyone tell me how to upload the changed values in a screen to material master table?Hi,
Actually my requirement is,there is an update screen.There are many fields in the update screen.When the user changes the value of a partiacular field and click on the checkbox beside it of which he wants to get uploaded into material master table,and click on the execute button,the values should get uploaded into material master table.
Can we upload all the field values at a time into material master table?How can we do that? -
Changes in depr. areau00B4s values when uploading values in a new depr. area
Hello, I need to create a new depreciation area in order to have paralell valuation in certain assets. This new valuation needs to be uploaded in the new area with the reference date 31.12.2007. I´m using transaction AS92 to enter new area´s value without touching the rest of the areas.
The problem comes when during the period 2008-2010 the asset was retired: first I need to remove deactivation date in orden to be able to enter values through AS92 and then when I enter the values, save and go to the explorer to check the asset´s values, the other area´s values have changed and ordinary depreciation and net value are recalculated like if removal had never happened.
What can I do in order that the other area´s values remain the same?Check in transaction OABC for your chart of depreciation. I think you have a rule where the other areas are taking over values from the area which you are updating.
Make the correct settings and your issue would be resolved.
Vishal. -
How to upload values for Territory attributes.
Hi Is there any standard SAP practice to upload territory attribute values. i could see we can upload territory structure in sap. but attribute values is there any way ?
thanks
chapHi Chap,
If you are planning to create territory attributes via CRM GUI then please refer to the below link. This is what immediately I can suggest. Meanwhile I will let you know the programmatic approach if I find one.
Re: To Add attribute in Territory Management
<b>Reward if helps</b>
Regards,
Paul Kondaveeti -
Hi Experts,
I have 4 fields in the flatfile which i am trying to upload.
They are PLANT (werks), MATERIAL(matnr),BRAND(atwrt) ,& BRAND DESCRIPTION (atnam)
I have done validation in a REPORT and after validation all the valid values are stored in an Internal Table.
Now I want to upload those things in to the database tables
For that I found RCCLBI03 standard program for uploading .
QTN 1:
I not getting how to use that standard program.
QTN 2:
Is there any other way ?
Urgent req.
waiting for early response ...
Thanks
Krushnalooks like these bapi might help you..
BAPI_BATCH_CREATE, BAPI_BATCH_CHANGE, BAPI_BATCH_REPLICATE, BAPI_BATCH_SAVE_REPLICA
check this [link |http://sapworld.proboards10.com/index.cgi?board=MaterialManagement&action=display&thread=163]for some more info -
Upload value mapping - migration from Requisite
Hi all,
We have some rules set up in Requisite that maps for example a category code provided by the supplier ot a material group code. Currenlty, I have been manually maintaining the value mapping in Import Manager. I am wondering whether there is a way to load the mappings (mainly the VALUE mapping) which we already have available in Requsition (exported may in excel or csv format)?
Appreciate any help on that.
Cheers!
SFHi SF
I dont think this is possible. for the first time you need to do the value mapping manually and save the map for the next uses.
A workyround can be to use conversion tables in XI/PI and convert the values before posting to MDM. this becomes more scalable as for any delta value conversions we need to add the netries in the conversion table instead of updating the import map.
best regards
Ravi Kumar -
Upload values from vb to tables bapi
Hi All,
I am uplaod the values as imports for a table in a bapi using bapi
oFunction.exports("field_name") is working fine
now i want to send the values to a table which is a export for the bapi I am using the below code but i am getting an error message as type mistach error
let me know how to send teh values to the table
oFunction.Tables.Item("ORDER_ITEMS_IN", "HG_LV_ITEM") = "000000"
ORDER_ITEMS_IN is the table and HG_LV_ITEM is the field in the table.
Thanks
cmkiranIts really very simple.
Go through the following links
How to connect SAP using Visual Basic.
SAP to VB integration
SAP Login from VB
Re: Hoe to connect to SAP from VB
Maybe you are looking for
-
List of users who were granted particular function in oracle apps R12 db?
Hi I need to list all users who were granted particular function (suppliers) from oracle apps R12 database. User -->Resp -->Menu --> Submenu/function. I have two queries like the following --Below sql query give all users those having Purchasing and
-
Dynamic font loading form diffent domain The value specified for argument font is invalid
Hi I am trying to dyanmiclly load domain from external swf First I Embed the font in an SWF called "FontsSWFList.swf" [Embed(source='Assets/fonts/ARIAL.TTF' , fontFamily='Arial Font' , embedAsCFF="true")] public static var ArialFont:Class; and then
-
How to extend the material in the material master?
hi all gurus i have to change and add the MRP tabs in the existing material which is not availble in the material. so, how can i add it in the master data. thnx in advance. rgrds, rajesh
-
Hyperlinks don't work once site is published
I have set up some text hyperlinks in my site - www.fullabullies.com. If you go to the site, you'll see on the home page the purple star that says "puppies". this should bring you to the "litters" page. I also have the red star that says "akc bulldog
-
Can't see objects from all db schemas in AV when creating a FGA Policy
Hi all, I have installed Audit Vault successfully but when I try to create a FGA policy, in the Object field the objects from certain schemas don't appear in the list. I tried to verify if the user that the Agent uses to connect to the source databas