BDC Related to FB01
Hi,
This is regarding an issue related to Posting of a Document using FB01.A BDC has been created to Post the document based on the Tax A1 and the Calculation is happening pretty smmothly. Now when we use the the Tax code as A3 the posting does not take place instead it will be parked and will be displayed in blue.on double clicking on it, it posts the document.
pls give me a solution on how to go about creating a BDC.
if code is available pls post it
Thanks in advance
Naveen
You say this: The documentation for function POSTING_INTERFACE_DOCUMENT is quite good. It can create a batch or process immediately.
You call POSTING_INTERFACE_START to specify if a batch session is to be created or processing will be done immediately with All, Errors or No stopping.
1. i have a program use this function but my problem i don't know how in batch session specify will be done inmediately.
2. where is the official documentation. i can't find it!
Thanks for you answers!
Christian
Similar Messages
-
How to add long text in bdc for transaction fb01 ?
IN the existing program of bdc fb01
i have to add a long text field
but it gets stuck while i process in sm35
is there a fm to add the field directly
thanks in a advanceHi
You can upload the Long texts separately into the transaction using the CREATE_TEXT fun module
Need to pass the correct parameters like OBJECT,ID, OBJECTNAME and LANGuage with the proper declarations.
see the sample code and do accordingly
REPORT zmm_longtext_sm
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Description : This Program is used to Upload the Service Master
: Long Texts using the Fun Module CREATE_TEXT
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
asnum like asmd-asnum, " Service No
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras. " Language
Constants
CONSTANTS:
Object ID for Long Text of Service Master
c_best TYPE thead-tdid VALUE 'LTXT',
c_material TYPE thead-tdobject VALUE 'ASMD'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
Upload the Texts
SORT itab BY asnum.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
concatenate '00000000000' itab-asnum into dl_name.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Service No'(001),
itab-asnum.
ELSE.
WRITE:/ 'Long Text Created Successfully for Service No'(002),
itab-asnum.
ENDIF.
AT END OF asnum.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
<b>Reward points for useful Answers</b>
Regards
Anji -
Hi every one,
I want to know wat are the issues while doing a version upgrade.
I have the knowledge of Dynpro missing ,
Screen Field related problem and Program itself missing the target system.
Pls .. tell me .some other issues...
Thanks Everyone in advanceRun the BDC and check for errors is the only way.
If you can change the BDC to BAPI or another FM then you should not have this problem in the future. As you can get problems with Upgrade, the same can also happen for support packs.
Message was edited by:
Martin Shinks -
BDC upoad for FB01 always gives the same msg in output even when file is ok
Hi1
I have created a BDC upload program to upload data through a csv file . Whenever i run the program with teh file name with the data from teh csv file I just get the same error message in the output be it any data when its corect data .
the message is as follows.
Line 1 Error in document: BKPFF $ DEV010
Line 1 G/L account 924831 is not defined in chart of accounts TRLS
Line 1 G/L account 924831 is not defined in chart of accounts TRLS
Line 1 G/L account 924831 is not defined in chart of accounts TRLS
In this case the the file that I uploaded has the following information:
09042009;KR;2000;09242009;;USD;151278;001096;31;924831;11331.4;Z005;09042009;A;210903;40;3998;11331.4;1;EA;054;730019;730019
when I go and check in the FB01 transaction and put the posting key as 31 and drop down on the account number it gives me a list of vendor account numbers and maybe thats the reason for teh file saying 924831 does not exits in the chart of G/L accounts. I am not sure but thats what teh message showing up whenever I upload any file , when i go to posting key 40 it does have the account number.
Kindly help.
thanksHi!
I am refreshing the message table but the message appears for the first line of the data itself and also placing extra zeros in the data dosent resolve teh issue. What my code says is:
form validate_data using tp_rc.
clear tp_rc.
sort ta_upload by id bldat bukrs xblnr.
loop at ta_upload into tw_upload.
check tp_rc is initial.
clear: wa_gl, wa_curr,wa_header.
refresh: ta_gl, ta_curr.
clear wa_header.
wa_header-username = sy-uname.
wa_header-bus_act = 'RFBU'.
concatenate tw_upload-bldat+4(4) tw_upload-bldat+2(2) tw_upload-bldat(2)
into wa_header-doc_date. "Document Date(1)
wa_header-doc_type = tw_upload-blart. "Document Type(3)
wa_header-comp_code = tw_upload-bukrs. "Company Code(4)
concatenate tw_upload-budat+4(4) tw_upload-budat+2(2) tw_upload-budat(2)
into wa_header-pstng_date. "Posting Date(2)
wa_header-fis_period = tw_upload-monat.
wa_header-ref_doc_no = tw_upload-xblnr. "Reference
wa_header-header_txt = tw_upload-bktxt. "Header Text
wa_gl-itemno_acc = 1. "Item No
wa_gl-gl_account = tw_upload-newko. "General Ledger Account
wa_gl-item_text = tw_upload-sgtxt.
wa_gl-fis_period = tw_upload-monat.
wa_gl-pstng_date = wa_header-pstng_date.
append wa_gl to ta_gl.
clear wa_gl.
wa_gl-itemno_acc = 2. "Item No
wa_gl-gl_account = tw_upload-newko_2. "General Ledger Account
wa_gl-item_text = tw_upload-sgtxt_2.
wa_gl-fis_period = tw_upload-monat.
wa_gl-pstng_date = wa_header-pstng_date.
wa_gl-costcenter = tw_upload-kostl. "Cost Center
wa_gl-profit_ctr = tw_upload-prctr. "Profit Center
append wa_gl to ta_gl.
call function 'BAPI_ACC_DOCUMENT_POST'
Thanks
Edited by: Aarav Agnihotri on Nov 18, 2009 7:49 PM -
Hi All,
Can we mainatain call transaction and Session in a same BDC prog?
Pls send any model of example.
cheers.
ramHi Ram
After filling BDC table, you can use CALL TRANSACTION and the function to create a BDC Session (BDC_OPEN_GROUP, BDC_INSERT, BDC_CLOSE_GROUP).
You should use fm BDC_INSERT everytime you use CALL TRANSACTION, so your program should be structured so:
CALL FUNCTION 'BDC_OPEN_GROUP'
LOOP ITAB.
REFRESH BDC.
Here fill BDC table for every transaction
CALL TRANSACTION ' ' USING BDC
CALL FUNCTION 'BDC_INSERT'
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'.
Anyway the user should use or CALL TRANSACTION or SESSION, so your program should has a parameter in selection-screen where user can choose the way he prefers.
If user chooses CALL TRANSACTION, you should create a session only if CALL TRANSACTION fails.
Max -
Hi gurus,
when we exicute it will occure the runtime error( convertin
form process_data .
data : wa_vbco3 type vbco3.
data : i_vbplp like vbplp occurs 0 with header line.
data : v_str type string.
data : begin of i_lips occurs 0,
matnr type mara-matnr ,
lfimg type lips-lfimg,
end of i_lips.
clear : i_lips.
refresh : i_lips.
select matnr lfimg from lips
into table i_lips
where vbeln = p_vbeln.
loop at i_pack into wa_pack.
replace '|' with '' into wa_pack-huno.
v_str = wa_pack-huno.
shift v_str by 10 places circular right.
wa_proc-exidv = v_str(10).
unpack wa_proc-exidv to wa_proc-exidv.
condense wa_proc-exidv.
select single * into wa_vekp
from vekp
where exidv eq wa_proc-exidv.
if sy-subrc eq 0.
if wa_vekp-vpobj ne '12'.
pack wa_vekp-exidv to wa_vekp-exidv.
condense wa_vekp-exidv.
wa_error-text = wa_vekp-exidv.
wa_error-error = text-001.
append wa_error to i_error.
continue.
endif.
wa_final-exidv = wa_proc-exidv.
append wa_final to i_final.
wa_vbco3-venum = wa_vekp-venum.
call function 'SD_PACKING_PRINT_VIEW_SINGLE'
exporting
comwa = wa_vbco3
tables
vbplp_tab = i_vbplp
exceptions
shipping_unit_not_found = 1
shipping_unit_not_unique = 2
others = 3.
endif.
loop at i_vbplp where vemng is not initial.
wa_proc-matnr = i_vbplp-matnr.
wa_proc-vemng = i_vbplp-vemng.
select single maktx from makt
into wa_proc-maktx
where matnr = i_vbplp-matnr.
append wa_proc to i_proc.
wa_proc-exidv = space.
wa_proc-maktx = space.
collect wa_proc into i_proc1.
clear : wa_proc.
endloop.
clear : v_str,
wa_pack,
wa_proc,
wa_final.
refresh : i_vbplp.
endloop.
loop at i_proc1 into wa_proc.
read table i_lips with key matnr = wa_proc-matnr.
if sy-subrc eq 0.
if wa_proc-vemng ne i_lips-lfimg.
wa_error-text = i_lips-matnr.
wa_error-error = text-002.
append wa_error to i_error.
endif.
endif.
clear: i_lips.
endloop.
endform. " process_datawell I haven't finished my tinkering yet so that remains to be seen........
I spent an hour working out my ResultSet did not contain all the data I expected....... In the end it was because I was executing a ORM method in another of my classes that was reusing the statement, and hence closing the ResultSet...... but at least it gave me an excuse to refactor my classes.......
At least with my programming skills I should be good at debugging and anlysing problems.... ;)
Thanks again!!! -
Document numbers missing while posting a batch of GL documents via BDC FB01
Hi all,
While posting a batch of GL documents using a BDC program for FB01, all the documents are posted except for a few document numbers getting skipped while posting. For instance, in posting 100 documents, if 101-200 is the document numbers expected to be generated, we are getting a list of doc. numbers from 101-185 and 187-201 thereby skipping the document number 186. But when we post another set of GL documents, the skipped doc. number 186 is first taken and remaining from doc. number 202. Could any one have comes across this scenario or somebody can help to throw some light for the reason behind this. Thanks.Hi Mahalingam,
There could be various reasons for document number skipping. SAP has given various notes on this.
Note 175047 - Causes for FI document number gaps (RF_BELEG). The note is very comprehensive and has a reference of lot many notes.
Thanks
Aravind -
BDC for AR Posting (Tcode - FB01)
Dear All,
I am unable to post multiple line items while postnig AR Invoice using BDC recording of FB01.
Can anyone provide me the BDC program code to post multiple line items.
Thanks in Advance,
Harishhi,
please check your document type with tcode oba7
field cust./vend. check (t003-XKKPR) -> set value = X
pls reward useful answers
thx.
Andreas -
Hi,
Is it possible to use BDC session to update data for TC : PA40 using webdynpro application . ...If so could you provide some example how to achive this ...
Thanks,
KumarHi,
You can create a FM/BAPI for the BDC related stuff and then call these from your web dynpro application.
Thanks,
Abhishek -
Dear All,
I am unable to post multiple line items while posting AR Invoice using BDC recording of FB01.
Can anyone provide me the BDC program code to post multiple line items.
Thanks in Advance,
HarishHi,
Already created the program using BDC.
Last Document not getting saved due to screen error.
Is there any OK-CODE to post the final document and close the BDC session.
Suggestion will be very helpful from you all.
Thanks in advance.
Regards,
Harish -
Hi,
Generally BDC related to What type of projects like Support or Implementation,, plz give some details with business scenarios.
thanksHi,
BDC's will used all types of project. For example client have a third party system, in that system daily data will come and that data need to be update in SAP, in this scenario BDC will use to upload data from third party system. This BDC program will set in the back ground daily will update the data from third party to sap.
Regards
Srinu -
Inbound idoc for orders05 to create sales order
Hi all,
I am creating a sales order through idoc (ORDERS05). I am getting a flat file, which is being converted into idoc from XI side and i need to add certain things and validate inside the function module IDOC_INPUT_OREDERS. I am using the exit call customer function '002' (EXIT_SAPLVEDA_002) in it.
My confusion is regarding the population of control records. If some validation fails, i need to set current status as 51. Which field i need to update in this exit in order to achieve this. What are the other control fields that i need to update for an inbound idoc please specify.
Also, i have another doubt, what is the use of DXBDCDATA in that exit. Do i need to do any BDC related work in inbound idocs.
I am new to inbound idoc scenario. But havn't found enough tutorial related to standard idoc generation..
thanksHi,
I think, you should fill the validation errors in EXIT_SAPLVEDA_011 (SD EDI Incoming Orders: Final Processing of Internal Error Tables) which subsequently update the status records of IDOC. Check line NO 56 of function module "IDOC_INPUT_ORDERS".
Regards
Vinod -
Save as template kill the web part connection
Hi,
I have a Sharepoint web site and I would like to save it as a template in order to create several site with the same structure and the same web pages.
On some of my web part pages I have some webpart connected to each other (mostly BDC List web part and BDC related list web part). When I save the site as a template and create a new site based on this template most of the connection are not present in the
new site. Does anyone know what is the problem and how to solve it? I really need this to work as the site template will contains tens of pages with those connection and we will have to create tens of site with that template so manually recreating the connection
is not possible.
Thank you for your help.No web part connections are managed by sharepoint and are stored on the page on which the connected web part are as I know.
Any way I managed to find a solution. I deleted all the web part connections (Open sharepoint designer and deleted all the SPWebPartConnection tags.) and then I recreated all the connections within the browser. I don't know why but now it works.
The mysteries of SharePoint are endless. -
Hi guyz,
am working on a bdc program for FB01. there am getting all the data from prps and cosp table. can anyone please tell me how to get the tax code for the given company code. i tried in the table T001, T007A. there i cant find standard tax code for the company code. Please help me in this.
Regards
Shameem.Hi satish,
thats true. but i want to find out the tax code using company code. it can be done in the table T001, fields MWSKV,MWSKA. but it didnt work.is there any standard way to find the tax code? -
Standard BDC for t.code: FB01
Hi,
Is there any standard BDC available for T.code: FB01.
Thanks and Regards,
VKHi,
You can use standard program RFBIBL00 or BAPI BAPI_ACC_DOCUMENT_POST for this purpose.
Creating BDC for FB01 mainly depends on your need. A generic one is difficult to be created due to multiple alternative screeens.
Regards,
Gaurav
Maybe you are looking for
-
How do I control my fan speed?
Hello, I have a HP ENVY dv6 laptop, and from time to time it gets really hot, so i would like to have the opportunity to control my fan speed manual. Is there any way I can do that? Please Help Sincerely Crab
-
Course jumps after launch in LMS - how do I fix this?
First, let me preface by saying I have been using Captivate 4 Trial Version as I am waiting for my license for full version. I'm not sure if this is part of the problem or not. I uploaded my Captivate 4 quiz to an LMS, it contains 3 text-based screen
-
Why does my iPhone say that certain songs are not on my iPhone when they clearly are?
Using the new "Purchased" button on the bottom of the iTunes app on my iPhone, when I tap "Not On This iPhone", it lists songs that are definitely on my iPhone. Is there a way to fix this? Furthermore, there are 47 pending downloads that I want to cl
-
Hi , I have two PI server and one ECC server, Now the problem is after completion of development in one server i have to test the same interfaces in another PI server. But this not quality server, in this case what i have to do?. I exported the produ
-
Help Required - Upload Multiple Documents functionality sometimes disappears in SharePoint 2010
Hi All, We have a web application created in SharePoint 2010 & there we were facing an issue of not able to Upload multiple documents. After doing search on google, we have found that pre-requisites for this functionality to be working properly are a