Posting FI documents to FB01 transaction
Hi ,
My program collects data from database tables and sends the final data to a file in SAP directory.
Now my requirement is to post this data into FB01 transaction.
When the program runs, the following entry is posted
Dr 210001023
Cr 229001017.
SO which FM do I need to use to post these two GL accounts?Is there any other method to do so.
My file contains Vendor info and check details like no, date,amount...
I appreciate quick response.
Thanks in Advance.
Swathi.
Hi Rhea,
Have a look at my program below. Its has no customer no's.but dr and cr accounts.
*---SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_zbukr LIKE payr-zbukr OBLIGATORY, " Paying Company
p_hbkid LIKE payr-hbkid OBLIGATORY, " House Bank
p_hktid LIKE payr-hktid OBLIGATORY, " Account ID
p_file LIKE rlgrap-filename OBLIGATORY. " Output file name
SELECT-OPTIONS: s_prundt FOR sy-datum OBLIGATORY NO-EXTENSION,
" Previuos run date
s_crundt FOR sy-datum NO-EXTENSION.
" Current run date
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_chkvd AS CHECKBOX DEFAULT 'X'. " Update TVARV
SELECTION-SCREEN COMMENT 04(79) text-014.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 01(64) text-013 FOR FIELD p_mon.
PARAMETERS p_mon(2) TYPE n DEFAULT '24'. " Months considered
" for abandoned period of uncashed checks
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
*---INITIALIZATION
INITIALIZATION.
Initialize Unix File Path
PERFORM initialize_filepath.
*---AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Selection Screen Validations
PERFORM validations.
Populate current extraction date
PERFORM get_current_date.
*---START-OF-SELECTION
START-OF-SELECTION.
Get data from PAYR
PERFORM get_payr.
Get data from VF_KRED
PERFORM ger_vf_kred.
Process data
PERFORM process_data.
*---END-OF-SELECTION
END-OF-SELECTION.
IF f_data IS INITIAL.
Transfer data to file
PERFORM transfer_data.
Write report
PERFORM write_report.
ENDIF.
*---PAGE HEADING
TOP-OF-PAGE.
Write the Page Heading
PERFORM page_heading.
*& Form Initialize_filepath
Initialize Unix File Path
FORM initialize_filepath.
Output File
CONCATENATE '/int/'
sy-sysid
sy-mandt
'/out/'
INTO p_file.
ENDFORM. " Initialize_filepath
*& Form Validations
Selection Screen Validations
FORM validations.
Local variable
DATA: l_text(5). " variable to hold 5 char data
Validate paying company
SELECT SINGLE bukrs INTO l_text FROM t001 WHERE bukrs = p_zbukr.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Paying Company'(002) p_zbukr.
ENDIF.
Validate House bank
SELECT SINGLE hbkid INTO l_text FROM t012 WHERE bukrs = p_zbukr AND
hbkid = p_hbkid.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Hoouse Bank'(003) p_hbkid.
ENDIF.
Validate Account Id
SELECT SINGLE hktid INTO l_text FROM t012k WHERE bukrs = p_zbukr AND
hbkid = p_hbkid AND
hktid = p_hktid.
IF sy-subrc <> 0.
MESSAGE e003 WITH 'Invalid Account ID'(004) p_hktid.
ENDIF.
Validate File name
PERFORM validate_filename.
ENDFORM. " Validations
*& Form validate_filename
Validate File name
FORM validate_filename.
DATA : l_len TYPE i.
l_len = strlen( p_file ).
IF p_file CA space.
IF sy-fdpos < l_len.
MESSAGE e003 WITH
'File name should not contain spaces'(005).
ENDIF.
ENDIF.
IF p_file CA '\'. "File name should not contain '\'.
MESSAGE e003 WITH
'File name should not contain \'(006).
ENDIF.
IF p_file0(1) = '/' AND p_file1(127) = space.
MESSAGE e003 WITH
'File name should not contain only /'(007).
ENDIF.
ENDFORM. " validate_filename
*& Form get_payr
Get data from PAYR
FORM get_payr.
SELECT zbukr
hbkid
hktid
checf
laufd
lifnr
vblnr
zaldt
waers
rwbtr FROM payr INTO TABLE t_payr
BYPASSING BUFFER
WHERE zbukr = p_zbukr AND
hbkid = p_hbkid AND
hktid = p_hktid AND
zaldt IN s_crundt AND
bancd = '00000000' AND
voidr = '00'.
IF sy-subrc = 0.
SORT t_payr.
Get the sending company code from REGUH
SELECT laufd
zbukr
lifnr
vblnr
absbu FROM reguh INTO TABLE t_reguh
BYPASSING BUFFER
FOR ALL ENTRIES IN t_payr
WHERE laufd = t_payr-laufd AND
xvorl = space AND
zbukr = t_payr-zbukr AND
lifnr = t_payr-lifnr AND
vblnr = t_payr-vblnr.
IF sy-subrc = 0.
SORT t_reguh.
ENDIF.
ELSE.
MESSAGE i003 WITH 'No data exists for the given selection'(011).
f_data = c_f.
STOP.
ENDIF.
ENDFORM. " get_payr
*& Form ger_VF_KRED
Get data from VF_KRED
FORM ger_vf_kred.
IF NOT t_reguh[] IS INITIAL.
SELECT lifnr
bukrs
name1
ort01
ort02
pstlz
regio
stcd1
stras
qsrec
adrnr
FROM vf_kred INTO TABLE t_lfa1
BYPASSING BUFFER
FOR ALL ENTRIES IN t_reguh
WHERE lifnr = t_reguh-lifnr AND
bukrs = t_reguh-absbu.
IF sy-subrc = 0.
SORT t_lfa1.
ELSE.
MESSAGE i003 WITH 'No vendor data exists'(012).
ENDIF.
ENDIF.
ENDFORM. " ger_VF_KRED
*& Form process_data
Process data
FORM process_data.
LOOP AT t_payr.
Get the sending company code from T_REGUH
READ TABLE t_reguh WITH KEY laufd = t_payr-laufd
zbukr = t_payr-zbukr
lifnr = t_payr-lifnr
vblnr = t_payr-vblnr
BINARY SEARCH TRANSPORTING absbu.
IF sy-subrc <> 0.
CLEAR t_reguh-absbu.
ENDIF.
clear t_lfa1.
Get the vendor data from T_LFA1
READ TABLE t_lfa1 WITH KEY lifnr = t_payr-lifnr
bukrs = t_reguh-absbu
BINARY SEARCH.
IF sy-subrc <> 0.
CLEAR t_lfa1.
SELECT SINGLE name1 stcd1 adrnr INTO
(t_lfa1-name1, t_lfa1-stcd1, t_lfa1-adrnr)
FROM lfa1 WHERE lifnr = t_payr-lifnr.
IF sy-subrc <> 0.
CLEAR t_lfa1.
ENDIF.
ENDIF.
clear t_address.
clear : t_lfa1-ort01,
t_lfa1-ort02,
t_lfa1-pstlz,
t_lfa1-regio,
t_lfa1-stras.
Vendor Address
select single city1
str_suppl1
post_code1
region
street
from adrc into t_address
where addrnumber = t_lfa1-adrnr.
if sy-subrc = 0.
move-corresponding t_address to t_lfa1.
endif.
Vendor Type
CASE t_lfa1-qsrec.
WHEN c_01.
t_file-vend_type = c_s.
WHEN c_07 OR c_20.
t_file-vend_type = space.
Clear Vendot TIN
CLEAR t_lfa1-stcd1.
WHEN OTHERS.
t_file-vend_type = c_f.
ENDCASE.
Vendor TIN
t_file-vend_tin = t_lfa1-stcd1.
Vendor Name
t_file-vend_name = t_lfa1-name1.
Mail Address1
t_file-addr1 = t_lfa1-stras.
Mail Address2
t_file-addr2 = t_lfa1-ort02.
City
t_file-city = t_lfa1-ort01.
State
t_file-state = t_lfa1-regio.
Zip Code
t_file-zip = t_lfa1-pstlz.
Check ID
t_file-check_id = c_ms08.
Check Number
t_file-check_no = t_payr-checf.
Application Description
t_file-appl_desc = c_app_desc.
Check Date
t_file-check_dt = t_payr-zaldt.
*TPR 1944 : Begin "Vinay
Check Amount sign
IF T_PAYR-RWBTR GE 0.
T_FILE-CHECK_SIGN = C_POS.
ELSE.
T_FILE-CHECK_SIGN = C_NEG.
ENDIF.
IF t_payr-rwbtr GE 0.
t_file-check_sign = c_neg.
ELSE.
t_file-check_sign = c_pos.
ENDIF.
*TPR 1944: End "Vinay
Check Amount
UNPACK t_payr-rwbtr TO t_file-check_amt1.
t_file-check_amt2 = t_file-check_amt1.
t_file-amt = t_payr-rwbtr.
t_file-vend_no = t_payr-lifnr.
t_file-waers = t_payr-waers.
APPEND t_file.
CLEAR t_file.
ENDLOOP.
ENDFORM. " process_data
*& Form transfer_data
Transfer data to file
FORM transfer_data.
DATA : l_pgm_id LIKE sy-repid,
l_file_mode LIKE pppch-acces VALUE 'A'.
l_pgm_id = sy-repid.
Open data file
CALL FUNCTION 'ZZ_OPEN_OUTBOUND_INTERFACE'
CHANGING
file_name = p_file
pgm_id = l_pgm_id
mode = l_file_mode
FILE2 =
FILE3 =
FILE4 =
FILE5 =
FILE6 =
FILE7 =
FILE8 =
FILE9 =
FILE10 =
ABEND_ON_ERROR_IF_SPACE =
EXCEPTIONS
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.
Transfer data to the file
LOOP AT t_file.
TRANSFER t_file+0(1221) TO p_file.
v_count = v_count + 1.
ENDLOOP.
Close data file
CALL FUNCTION 'Z_CLOSE_INTERFACE_FILE'
EXPORTING
pgm_id = l_pgm_id.
ENDFORM. " transfer_data
*& Form get_current_date
Populate current extraction date
FORM get_current_date.
DATA: l_date LIKE sy-datum,
l_mon(2) TYPE n,
l_months TYPE i.
l_mon = sy-datum+4(2).
l_mon = l_mon - 1.
l_date = sy-datum.
l_date+4(2) = l_mon.
CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = l_date
IMPORTING
last_day_of_month = l_date
EXCEPTIONS
day_in_not_valid = 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.
Calculate date with no.of months considered for abandoned period of
uncashed checks
l_months = p_mon * -1.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = l_months
olddate = l_date
IMPORTING
newdate = s_crundt-high.
Begin of D02K921571
CALL FUNCTION 'SG_PS_GET_LAST_DAY_OF_MONTH'
EXPORTING
day_in = s_crundt-high
IMPORTING
last_day_of_month = s_crundt-high
EXCEPTIONS
day_in_not_valid = 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.
End of D02K921571
REFRESH s_crundt.
s_crundt-low = s_prundt-high + 1.
s_crundt-sign = 'I'.
s_crundt-option = 'BT'.
APPEND s_crundt.
CLEAR s_crundt.
ENDFORM. " get_current_date
*& Form write_report
Write Report
FORM write_report.
Selection Report
PERFORM select_report.
Audit Report
PERFORM audit_report.
Detail Report
PERFORM detail_report.
ENDFORM. " write_report
*& Form Page_heading
page heading
FORM page_heading.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
ULINE.
WRITE: /1 sy-vline,
2 sy-repid,
65 'ABBOTT LABORATORIES'(015) CENTERED,
146 sy-datum,
156 sy-vline.
WRITE: /1 sy-vline,
2 sy-sysid,
5 '/',
6 sy-mandt,
59 'SAP to Tracker Outbound Interface'(016) CENTERED,
148 sy-uzeit,
156 sy-vline.
WRITE: /1 sy-vline,
2 sy-uname,
(120) v_title CENTERED,
145 'Page:'(017), sy-pagno,
156 sy-vline.
ULINE.
IF v_title = 'Detail Report'(030).
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Paying Company'(031),
17 sy-vline,
18 'House Bank'(032),
29 sy-vline,
30 'Account ID'(033),
41 sy-vline,
42 'Current Extract Range'(034),
156 sy-vline.
FORMAT COLOR OFF.
WRITE: /1 sy-vline,
2 p_zbukr CENTERED,
17 sy-vline,
18 p_hbkid CENTERED,
29 sy-vline,
30 p_hktid CENTERED,
41 sy-vline.
LOOP AT s_crundt.
WRITE: 44 s_crundt-low,
58 'to'(035),
62 s_crundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Vendor Type'(036),
14 sy-vline,
15 'Vendor TIN'(037),
26 sy-vline,
27 'Vendor No.'(038),
38 sy-vline,
39 'Vendor Name'(039),
82 sy-vline,
83 'Vendor State'(040),
96 sy-vline,
97 'Check Number'(041),
118 sy-vline,
119 'Check Issue Date'(042),
136 sy-vline,
137 'Check Amount'(043),
156 sy-vline.
ULINE.
ENDIF.
ENDFORM. " Page_heading
*& Form select_report
selection-report
FORM select_report.
NEW-PAGE.
v_title = 'Selection Report'(028).
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Paying company code :'(018),
28 p_zbukr,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'House bank :'(019),
28 p_hbkid,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Account ID :'(020),
28 p_hktid,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 'Output file name :'(021),
28 p_file,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Previous extraction date :'(022).
LOOP AT s_prundt.
WRITE: 28 s_prundt-low,
42 'to'(035),
46 s_prundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'Current extraction date :'(023).
LOOP AT s_crundt.
WRITE: 28 s_crundt-low,
42 'to'(035),
46 s_crundt-high.
ENDLOOP.
WRITE: 156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'Update TVARV :'(024),
28 p_chkvd,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 text-025,
67 p_mon,
156 sy-vline.
ULINE.
ENDFORM. " select_report
*& Form audit_report
Audit Report
FORM audit_report.
NEW-PAGE.
v_title = 'Audit Report'(029).
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /1 sy-vline,
2 'No. of records extracted :'(026),
36 v_count,
156 sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE: /1 sy-vline,
2 'No. of records transferred to file:'(027),
36 v_count,
156 sy-vline.
ULINE.
ENDFORM. " audit_report
*& Form detail_report
Detail Report
FORM detail_report.
DATA : l_inten TYPE i,
l_date LIKE sy-datum.
NEW-PAGE.
v_title = 'Detail Report'(030).
LOOP AT t_file.
l_inten = sy-tabix MOD 2. " for alternate colors in report
IF l_inten = 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
l_date = t_file-check_dt.
WRITE: /1 sy-vline,
2 t_file-vend_type,
14 sy-vline,
15 t_file-vend_tin,
26 sy-vline,
27 t_file-vend_no,
38 sy-vline,
39 t_file-vend_name,
82 sy-vline,
83 t_file-state,
96 sy-vline,
97 t_file-check_no,
118 sy-vline,
119 l_date,
136 sy-vline,
137 t_file-amt CURRENCY t_file-waers,
156 sy-vline.
ENDLOOP.
ULINE.
ENDFORM. " detail_report
Similar Messages
-
How to Bypass Tax Jurisdiction Code while Posting FI Document
Hello All,
I have a requirement where I can enter Tax code along with Tax Jurisdiction for some of the cases while Posting FI Document using T code s FB01.. etc.
However for one scenario I need to BY pass the Tax Jurisdiction while posting FI Document . How to achieve this.
As per SAP once we define Tax Jurisdiction it is mandatory to enter as Input to Post the document.
But I need to control this Tax Jurisdiction as I dont want to enter while posting FI Document.It should not prompt for Tax Jurisdiction .
How to make an option field in this case (Based on Company code and Tax code combination).
Any BADI / User exit/BTE to Ignore the Error message Enter Tax Jurisdiction code).
Please help me as soon as possible.
Thanks.My Query is , when am posting a document in FB01 Transaction , when I enter Tax code at line item level, Tax jurisdiction is mandatory if we dont enter it give an error saying that ' Please enter a Tax Jurisdiction' .
My requirement is I would like to bypass that error without entering Tax jurisdiction I would like to proceed by providing default Tax Jurisdiction through any userexit/BADI/BTE. so that I will not get that error .
So any USER-EXIT/BTE/BADI is there which will trigger before the error(maintain tax jurisdiction ) at line Item leve ?????
I hope now requirement is clear. -
Hi Experts,
I am using below mentioned FM to post the document in FB01 and working fine when i am going for call transaction.
POSTING_INTERFACE_START
POSTING_INTERFACE_DOCUMENT
POSTING_INTERFACE_END
My requirement is i want to use the same FM to post the document in FB01 with batch input session method.
-Rajneesh GuptaHi Rajneesh ,
I also have the similar requirement if you have the solution please help with code as I have to record bdc for fb01 and post account document
Moderator Message: Please continue with your own post - BDC for FB01.
Message was edited by: Suhas Saha -
Posting Customer Document.
Hi,
When we post the document using FB01, i am getting an error message stating.
FIELD BSEG-MWSKZ does not exist in the screen SAPMF050301.
It's regarding tax code.. Please help me in rectifying this error.. and let us knowwhy we are getting this error..
Regards,Hi Raghavendra,
Thanks for the answer,
Under which tab, the tax code comes for example is it under General data,Additional account assignments,Payment transactions.Taxes
Please assist.
Thanks, -
Overflow in EXCEL title line routine - Error while posting FI document
Hi All -
We are getting an "Overflow in EXCEL title line routine" error message while posting SAP FI document thru FB01 transaction code. We are getting this error message while entering the coding block, can anyone please explain how this error message is coming and how to rectify it.
Thanks in advance.
Rds,
KHi,
Thanks for the reply.
The interesting part is, it is a standard message and there is no message class ZKV available in the system. We have gone live only six months back and not done a single enhancement in HR module till now.
As far as FICO is concerned, we have an internal control that we will not enhance any of the FI transactions in view of data accuracy and integrity. We don't have enhancements running in FI & CO modules also.
I am sure that it is a standard message. This message is arising out of the function module 'AC_DOCUMENT_CREATE' called internally in the program associated with posting run transaction.
Please hint, what could be the problem.
Regards,
Hema -
Posting COPA fields to FB01 using POSTING_INTERFACE_DOCUMENT
Hi All,
I am trying to post FI document through FB01 using POSTING_INTERFACE_DOCUMENT. All the FI fields are getting posted. But I am unable to post COPA fields. I am using BSEG-RKE* structure as suggested in other threads but still the COPA button is disabled for the document posted. I also checked in database, the fields are not populated. Could someone suggest if any additional information needs to be passed to enable COPA specific posting to the FM. Thanks.Hi SS ,
can you do like this , Pass all COPA field details in this format "BSEG_RKEXXXXX' ,let me know the results.
im ref : call function 'RKE_FILL_BDCDATA_WITH_CRITERIA' in that FM.
Edited by: Prabhu Peram on Sep 29, 2011 11:50 AM -
Posting intercompany items in FB01 (business area problem)
Hi guys,
Have you tried posting intercompany items in FB01?
My problem occured when i tried to post concur documents in FB01.
In line item1, i didn't enter a business area.
In line item2, i entered business area 0005.
I clicked simulation.
The business area in line item 1 is now populated with 0005.
When i debug the program, item 1's business area was populated because of OSS notes 566083.
I look for OSS notes that may solve this problem but i haven't found any.
I considered using the substitution exit that is called before simulation, but i'm afraid it might cause conflict in other modules!
Help.
Any suggestion is highly appreciated.
warm thanks,
naviHi Prabhu,
Thank you so much for sharing your thoughts.
Yes, i ikow I can manipulate the business area's value in a substitution exit.
But the problem is, the OSS note was called after the line item passed through the substitution exit.
Meaning the filling-up of the BA happens after the program executed the substitution exit.
It could have solved the problem if the substitution exit comes after the OSS note but its not the case, so I really can't use that exit.
I search for another exits that occurs when simulation was ticked, but there's none.
I asked my functional to ask SAP for OSS notes that may solve this problem and I am also conducting thorough investigation in my end.
Do you have any other idea regarding this problem?
Thanks again so much in advance.
Navi -
Posting with document splitting
What is posting with document splitting ? Transaction code for document splitting..
<b>Helpful posts will be rewarded</b>Hi
I have had this problem when there are multiple profit centres in a GR. We did try some configuration options like adding Expenses category to 600 but found that the GR IR line was also being split and that was not the requirement. It is in the Document Splitting Configuration that you will find the answer to this issue, though the results after configuration may not be exactly what you want. -
Reg Business tranx field in BAPI while posting ACC document.
Hi,
I am posting a accounting document through BAPI.
My requirement is to post a JV for Goods receipt.
While filling the Header level details to BAPI, we have BUS_ACT field in BAPI'BAPI_ACC_DOCUMENT_POST'.
What parameter i have to pass to it.
Thanks in advance,
Deepak.
Message was edited by:
KDeepakHi Deepak,
Try one of the following:
'RFBU'
'SD00'
'RMRP'
This will solve your problem. I posted the documents using second transaction.
Reward points if helpful answer.
Ashven -
Post parked document with display doc option instead of edit doc option
Hi SAP Guru's
Do you know if there is any tcode exist to post parked document in which user can display the document first and review it before posting it. There is a tcode FBV0 to post park document but this transaction takes you to the edit parked document(FV50) when user tries to review it. Which is the violation of SOX.
Per SOX if user has post access should not allowed to park and vise versa.
Is there any user exit for FBV0 where we can replace FV50(Edit parked doc) with FBV3(Display parked doc)? Or any other suggestion.
Thanks for any help,
SeemaHi Priya
Stuck with FIPP Workflow. You need to do Business Object Binding from Workflow to Task. This can be done by checking the Binding of TS20000166 in Workflow Template WS20000075. Once you do that you will get a link. If you click on the link you will get the TCODE in display Mode. I was expecting some mails from you regarding queries:)))). I have now turned into a Workflow Specialist in my company )). Please reward points if useful )). I thnk this wil be very useful.
Thanks
Arghadip -
Posting foreign currency document in fb01
HI i want to post foreign currency document in Fb01. i am facing following error as shown in screen shot
I have maintained exchange rate type M in OBA1 and even then its prompting for EURX .
Regards
kaushal ghediaHi Kaushal,
Are you posting in Local i.e Co Cd currency or foreign currency.
When ever we make posting in foreign currency, system automatically convert it into local currency because of this system is asking for exchange rate for this.
So please check below settings .
Go to transaction OBBS and check the ratio between the USD and EUR, than
Go to Transaction code OB08 and maintain the exchange rate for Type M, between USD and EUR.
Check the Controlling area currency too in OKEQ.
Check client currency in SCC4.
If above setting is fine then you need to take help of ABAPr to debug.
Regards
Atul -
Exit required while Posting an FI document in FB01
Dear All,
I have a requirement in transaction FB01 where when i post an FI document i.e on save instead of the accounting document number getting generated according to the number range maintained i want to maintain a different number range series for the same(based on some conditions i have a z table).I need to find a Customer exit/ BADI/ BTE which would satisfy this reqt.the reqt if for ECC 4.7.I tried finding but am not getting the one which satisfies my reqt.
Help me find the same.
Thanks & Regards,
Lailu PhilipHI,
While posting any document, a form pool will trigger (RGGBR000).
Copy that program into Zprogram and maintained the standard value in the program for the required fields.
maintained that Z program in the T80D table, then do setting in OB28 and activate it.
Regards,
sri -
BAPI as interface to post document in FB01
Hi all
We are transferring data from Biztalk(middleware) to SAP in xml format through the BAPI Z_BAPI_ACC_DOCUMENT_POST to post document in FB01. Biztalk is able to send the data to sap. But when the document fails it is not returning the Return table to Biztalk. It is sending export parameters as
<OBJ_KEY>$</OBJ_KEY>
<OBJ_SYS>DV1</OBJ_SYS>
<OBJ_TYPE>BKPFF</OBJ_TYPE>
Now when the bapi fails where can i see the log for that if it is called from BIzatalk. I mean when the RFC fails hw vl i knw the reasons for the failure.....
If i do the same scenario in sap it is workin fine..... the problem comes only when it is called from middleware.....
We copied the standard BAPI BAPI_ACC_DOCUMENT_POST to a ZBAPI....
n used BAPI_TRANSACTION_COMMIT in my ZBAPI....
Can anyone please help me on this......Wild guess, though I doubt it will be of much help: In the olden days when you called RFC Function modules via external RFC clients, SAP did not return any TABLES function module parameters that were not specified. I.e. instead of not passing the parameter at all, you had to specify an empty table for any TABLES that were returned by the RFC call. I wonder if something similar happens in your case with the RETURN table (though I have no clue how if you're calling RFC via SOAP or RFC protocol).
-
Idoc for Posting data to FB01 transaction
Hi,
In my Interface, i need to post data to a SAP FI system->FB01 transaction from XI. The scenario is nonSAP system->XI->SAP FI.So what are the possibilites to post data to SAP FI->FB01 transaction. Is there any Idocs for that or any other method.
Please share your ideas..Ponts will be rewarded for good inputs...
ThanksHi,
You need to get the file with the required format from the sender system and there shouldn't be any mapping in PI. Also please check the below link on how to get the file structure.
Re: File for 'RFBIBL00'
There is also a help for the RFBIBL00 program. Check this too.
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm
The file should be placed in the ECC application folder and this program needs to be scheduled with that file path. If you are not able to get the file in the required format then you may need to go with the IDOC or BAPI solution.
~Vaas -
Can any one help me in posting documents in FB01...
i am using session method only..
Please help mehi,
i prefer to use 'BAPI_ACC_DOCUMENT_POST' for creatin a financial document i try to give to u how to set the minimum value in the structure/tables of the bapi.
> DOCUMENTHEADER
> BUS_ACT = 'RFBU' "for FI document
> USERNAME = sy-uname
> HEADER_TXT = your text
> COMP_CODE = Company code
> DOC_DATE = Document date
> PSTNG_DATE = Posting date
> FISC_YEAR(1) = The year of posting date
> FIS_PERIOD(1) = the period of posting date
> DOC_TYPE = document type
if you set a different year or period from the value that you have in the posting date the bapi trigger an error
> ACCOUNT GL
> ITEMNO_ACC = progessive number
> GL_ACCOUNT = G/L Account
> ITEM_TEXT = item text
> DOC_TYPE = document type (the same of the header for all item)
> COMP_CODE = company code (the same of the header for all item)
> BUS_AREA = business area
> TAX_CODE = tax code
if you set a different doc_type or company code for each item the bapi trigger an error
> ACCOUNTTAX
> ITEMNO_ACC = progressive number
> GL_ACCOUNT = G/L Account referred to TAX CODE
> TAX_CODE = TAX CODE
> TAX_RATE = TAX RATE
> ITEMNO_TAX = progressive number which tax item is referred
>CURRENCYAMOUNT
> ITEMNO_ACC = progressive number
> CURRENCY = currency
> CURRENCY_ISO = iso currency that you find in TCURC-ISOCD table
> AMT_DOCCUR = amount with sign the sign +/- identify Debit/Credit Indicator
> - this field only for tax record
> AMT_BASE = is the AMT_DOCCUR of the line which ypu want to calculate the tax with sign
> TAX_AMT = tax amount
usually for calculate the correct value i use these functions 'CALCULATE_TAX_FROM_GROSSAMOUNT'.
for example:
DOCUMENTHEADER
> BUS_ACT = 'RFBU'
> USERNAME = sy-uname
> HEADER_TXT = 'my_text'
> COMP_CODE = '0001'
> DOC_DATE = '20080115'
> PSTNG_DATE = '20080115'
> FISC_YEAR(1) = '2008'
> FIS_PERIOD(1) = '01'
> DOC_TYPE = 'SA'
ACCOUNT GL
>Record 1
>ITEMNO_ACC = 0000000001
>GL_ACCOUNT = 0290111010
>ITEM_TEXT = ITEM_TEXT
>DOC_TYPE = SA
>COMP_CODE = 0001
>BUS_AREA = GS1
>Record 2
>ITEMNO_ACC = 0000000002
>GL_ACCOUNT = 0500103900
>ITEM_TEXT = ITEM_TEXT
>DOC_TYPE = SA
>COMP_CODE = 0001
>TAX_CODE = V2
ACCOUNTTAX
> Record 3
>ITEMNO_ACC = 0000000003
>GL_ACCOUNT = 0221103001
>TAX_CODE = V2
>TAX_RATE = 20.000
>ITEMNO_TAX = 0000000002
CURRENCYAMOUNT
>Record 1
>ITEMNO_ACC = 0000000001
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = 150.00
>AMT_BASE = 0.00
>TAX_AMT = 0.00
>Record 2
>ITEMNO_ACC = 0000000002
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = -125.00
>AMT_BASE = 0.00
>TAX_AMT = 0.00
>Record 3
>ITEMNO_ACC = 0000000003
>CURRENCY = EUR
>CURRENCY_ISO = EUR
>AMT_DOCCUR = -25.00
>AMT_BASE = -125.00
>TAX_AMT = -25.00
hope that is useful.
Bye
Marco
Maybe you are looking for
-
Is there any way to prevent the OS from querying the Superdrive when start
Just a random question. Whenever my MacBook Pro starts up (either from sleep or a complete/fresh start, the OS queries the drive slot to see if there is a disc present. While this may be normal behavior, it seems to slow down the start up process. (I
-
How can i delete the itunes account
i have just recently created mt itunes account not to download music but to use it to download my free digital copy dvd and upload it to itunes for free. and i have used the codes for the dvd but when it downloads when it finishes it disappears and i
-
Problem in Scheduling Agreement
Dear All, I have the following issue in Scheduling Agreement (VA31). I have entered the Customer Schedule as on 01.09.2009 07.09.09 -- 500 Nos 14.09.09 -- 500 NOs 21.09.09 --500 Nos 28.09.09 --500 Nos All the above requirements are displa
-
Deletion of duplicated table entry
Hi! I am facing with the following error after the system copy of SAP ERP 2005 on Windows migrated from MS SQL to SAP DB. By entering into the db-relevant tcodes (DB13, dbacockpit, etc.) the following error appears: Runtime Errors ITAB_DUPLICATE_KEY
-
How to trigger a standard workflow task in customizing program?
Hi experts, Does any1 have any ideas about how to trigger a standard workflow task in customizing program? Is there any FMs can be used to do this? Thx in advance. Points will be rewarded. Vincent