Billing Document Function Module
Is there any function module to find out Billing Document is of which transaction type i.e. whether it is a Sales order Billing Document or it is a Service Order Billing Document or is an UBB Contract Billing Document.
I have a FI object to be generated so input screen variable are all FI fields. Now I have to connect this to the sales order. I can retrieve the GL account from the input given.
So now i need to find the billing document related to the GL account, which can be done through table BSEG. AS BSEG is a cluster table, at runtime it takes very long time to retrieve the data. So can u suggest me any other method to get billing document.
, like any Function module etc.
Similar Messages
-
Regarding a Change Document Function Module ----- VERY VERY Urgent
I am using a Change Document Function module "CHANGEDOCUMENT_READ". It is taking a long time.
I am using the parameters:
Start date is the first date of the current month
Enddate as last date of the current month
Object class as 'MATERIAL'
Table Name as 'MBEW'Hi ,
When you want to read the change documents, please follow the below process.
1. Read the change documents headers with function modules
call function 'CHANGEDOCUMENT_READ_HEADERS'
exporting
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = '000000'
username = cdhdr-username
tables
i_cdhdr = gt_cdhdr
exceptions
no_position_found = 1
wrong_access_to_archive = 2
time_zone_conversion_error = 3
others = 4.
2. From above step you will get data of change documents very quickly into Itab (gt_cdhdr)
3. Read the details on change documents with functiion module by using Itab in loop for each document.
loop at gt_cdhdr.
call function 'CHANGEDOCUMENT_READ_POSITIONS'
exporting
changenumber = gt_cdhdr-changenr
importing
header = cdhdr
tables
editpos = gt_cdshw
exceptions
no_position_found = 1
wrong_access_to_archive = 2
others = 3.
Above is the best way to read the change documents.
Rewards please if above info is useful.
Thanks. -
Accounting document not posted from billing document SD module
Dear Sir,
I am encounting a weird issue in SD module, that is when I am saving the billing document the system will generate accounting document automatically from my ID but when the same process will perform from the other ID having same rights and previligies then system prompt the folllowing message .
"Tax code C1 does not appear in any G/L account item"
It means the system allow a specific user to post accounting document with reference to billing document but not allowing to post from any other ID.
Apparently this issue related to basis module. we have checked in the basis area as well . still unable to get ane resolution for this issue.
Best Regards,
HASEEB KHAN
MM,PP,SD CONSULTANTHello Haseeb,
In that case, I would suggest you check Change Message Control for Taxes follow following path in SPRO:
IMG - Financial Accounting (New) - Tax on sales/purchases - Basic setting - Change Message Control for Taxes
Check corresponding doc to it and go through different Application Area, particularly, FF
Also refer SAP Note 495737 - Customizable messages in FI_TAX_SV_BSEG_BSET_GROSS
Hope this can assist you in understanding
Thanks & Regards
JP -
Code sample for using change document function modules
Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS? I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material. I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)
Thanks!hi check this..
CHANGEDOCUMENT_READ_HEADERS
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CHANGEDOCUMENT_READ_POSITIONS
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
Check this link.
http://www.sap-img.com/mm001.htm
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM -
FI Posting document - - Function module
hi,
<b>Problem:</b>
I've FI parked documents in system, n now i want to post them. I cant use batch input bcoz it inserts duplicate entry in controlling. so i need alternative of batch input, i mean any funcution module which will post all documents in bulk.
Transaction: FBV0
Thanks in advance.
Sal.Hi Salahuddin,
take a look to this link:
Duplicate Controlling Document (FI)
regards Andreas -
Billing Installation Function Module
Hi,
I have an requirement to crate Billing installation (EG34). I tried using FM 'ISU_S_WORKLIST_INSTALL'. But could not install it as it is asking me to enter Rate Type.
I gave rate type in the below field. But it is not taking it. Could anyone assist me in this.
gwa_xy_auto-auto_zw-tarifarto = 'Ratetype'.
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL'
EXPORTING
x_anlage = i_anlage
x_eadat = i_eadat
x_geraetneu = i_geraete
x_action = '04'
x_spartee = i_sparte
x_upd_online = 'X'
x_no_dialog = 'X'
x_no_event = 'X'
x_no_statistic = 'X'
x_no_change_doc = 'X'
CHANGING
xy_obj = gwa_xy_obj
xy_auto = gwa_xy_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
invalid = 3
internal_error = 4
not_qualified = 5
input_error = 6
system_error = 7
not_customized = 8
OTHERS = 9.
Thanks,
Sabari.Hi there,
here are the Customer Exits ( Smod/Cmod)
E07
EDMDI001
EDMDI002
EDMDI003
Ore the FM
CALL FUNCTION 'ISU_S_WORKLIST_INSTALL'
EXPORTING
" X_HAUS =
X_DEVLOC = AUTO-INTERFACE-DEVLOC
" X_KUNDE =
X_ANLAGE = AUTO-INTERFACE-ANLAGE
X_EADAT = AUTO-INTERFACE-EADAT
" X_GERAETNEU =
" X_EQUNRNEU =
" X_GERAETALT =
" X_EQUNRALT =
" X_MATNR =
" X_MATNRALT =
X_ACTION = AUTO-INTERFACE-ACTION
" X_SPARTEE =
" X_SPARTEA =
X_UPD_ONLINE = U_ONLINE
X_NO_DIALOG = N_DIALOG
X_NO_EVENT = 'X'
X_NO_STATISTIC = 'X'
X_NO_CHANGE_DOC = 'X'
" X_CALLED_BY_IDOC =
" X_NO_MR_REQUIRED = ' '
IMPORTING
Y_DB_UPDATE = DB_UPDATE
" Y_EXIT_TYPE =
" Y_RESULT_TAB =
CHANGING
" XY_OBJ =
XY_AUTO = AUTO
XY_EXT_CONT = GT_CONT[]
" X_GMVT_N =
" X_GMVT_O =
EXCEPTIONS
NOT_FOUND = 1
FOREIGN_LOCK = 2
INVALID = 3
INTERNAL_ERROR = 4
NOT_QUALIFIED = 5
INPUT_ERROR = 6
SYSTEM_ERROR = 7
NOT_CUSTOMIZED = 8
OTHERS = 9
hope it's usefull
regards
Chris
Edited by: Christian Fritsch on Jan 28, 2011 4:43 PM -
Regarding function module documentation
when iam clicking the function module documentation.it is displaying message as document function module is not available in EN.How to get the documentation in EN
Hi Rao,
Click on the Function module documentation in the application toolbar of function builder, it takes you to either PC editor or Line Editor, enter the corresponding documentation there and activate and come back, now activate your FM, it should work fine.
Regards:-
Santosh.D
P.S. Mark usefull answers -
Function Modules documentation.
Hello Hi,
I'm just wondering if there is any documentations about function modules?
I am looking at some ABAP codes and it is somehow calling some function modules such as FIAA_DEPR_RECALCULATE, DEPR_RECALCULATE, AM_SHOW_POST_DEPR but I'm not sure what exactly they are doing.
I know there is SE84 that i can check import / export / tables... but it's not a documentation explaining what the purpose of these function modules are. There is Documentation in the menu, but it always says "Document (function module) is not available in language EN" (I tried DE, but not working either)
May I ask where I can obtain more information about these?
thanks in advanced.
Regards
Matthew.Hi Mathew,
Not all function modules from SAP will have associated documentation, you will have to first check if the FM is released by SAP or not, this you can do by checking the Released on field on the attributes tab of the FM. If you have a date here, then it means it is released and it will have associated documentation, you can read this by clicking on the documentation button on the application toolbar of SE37.
For FMs that do not have documentation, and you want to know the functionality of it, sufficient comments are written in the code and these comments are in German most of the times, you might need to use Language on Google tools to translate it to English :).
Regards,
Chen
Edited by: Chen K V on Jul 5, 2011 11:00 AM -
Wher do find the function modules
hi all there are 5000 preexiting function groups and 30,000 function modules and more they say....... my question is where do we find them ? and is it explained in there ........how do we know their purpose....
thnk you
santo.
Message was edited by:
santhosh jagannathanWell -- have you ACTUALLY tried doing this. Most of the time you'll get a SAP message "Document Function module name in Language EN (or whatever) doesn't exist.
(Some of the newer fmods do have some documentation as well as the BAPI's but great swathes of the old FM's don't).
That still also doesn't relate to the original point --there isn't any point in learning what all these do --you are simply wasting "Brain Power and capacity".
It's much better to find out when you've got real problems to sort out or processes to analyze.
That's one of the HUGE differences between experienced developers and relative newbies.
With SAP there really is TOO MUCH info to absorb totally - especially in a short time.
Pick your area and just go through the forums, google, use colleagues etc etc.
The fact that i might know what a quantum computer is or that function module xxxxxx is used in say the PP module won't make me per-se a better devloper.
Cheers
jimbo -
Function module to get Pricing conditions of billing document
Hi All,
Please help me getting the pricing condition values for a billing document. I got values from KONV table against perticular Condition type. but i need to get the values against step number maintained in Conditions for my billing item. is there any function module to get all condition data maintained in document with totals and discounts aswell.
Please help me. if required i will give tou full details what i required.
Kumar.Hi Kumar,
Please check below mentioned Function Module for details:
RV_PRICE_PRINT_GET_BUFFER
RV_PRICE_PRINT_GET_MODE
RV_PRICE_PRINT_HEAD (Header)
RV_PRICE_PRINT_HEAD_BUFFER
RV_PRICE_PRINT_ITEM (Item)
RV_PRICE_PRINT_ITEM_BUFFER
RV_PRICE_PRINT_REFRESH
Regards,
Tutun -
Function Module to Edit Billing Document Header (table VBRK)
Hi all,
Can someone tell me if there is a function module that can edit the billing document header please? I do not need to created the billing document, it already exists. I just need to edit specific fields.
Many thanks.The requirement is to update these 2 fields in the table VBRK:
BSTNK_VF (customer po number)
ZUONR (assignment number)
The client uses these 2 fields for non-standard purposes.
Actually I was already trying to use the FM RV_INVOICE_DOCUMENT_UPDATE, but I am unable to make it work, for some reason.
For that function, I only passed VBRK as table, nothing else. Specifically, I retrieved the header from VBRK, modify the 2 fields, then pass it to the VBRK table parameter of the function. -
Function Modules Split Billing Documents
Hi expert,
Does anyone knwo some function modules can help to split billing document when it exceeding the limit. I did know in IMG we can configure the max amount to split the billing documents but it doesn't help. I want some function modules which can directly use in my source coding to split the given billing documents by amount and tax rates.
Many thanks.check these BAPI's
BAPI_BILLINGDOC_CREATEFROMDATA and
BAPI_BILLINGDOC_EDIT
Use the user exit and you need to determine the amount you want to split and feed to these BAPI (the first one).. -
Any functional module to get financial document based on billing document
hi all,
do we have any functional module to get accounting document (bseg-BELNR) based on billing document (bseg-VBELN)?
i have a requirement to retrieve the clearing document (bseg-augcp) & date(bseg-augdt) from BSEG with billing document.
billing document is not a key, so i would like to retrieve the accounting document from any function module and use that to get clearing document (bseg-augcp) & date(bseg-augdt).
thanks.hi all,
i got other option to get this....thanks.
select single * from bkpf
where bukrs = <data>-werks
and AWTYP = 'VBRK'
and AWKEY = billing doc.
if sy-subrc EQ 0.
select single * from bseg
where bukrs = bkpf-bukrs
and belnr = bkpf-belnr
and gjahr = bkpf-gjahr.
if sy-subrc EQ 0.
<data>-AUGDT = bseg-augdt.
<data>-AUGBL = bseg-augbl.
endif. -
Any BAPI/function module to change Billing document
Is there any BAPI / FM to change the Billing document once it has been created ?
Your help is appreciated.
Regards,
Ankur BhandariHi,
Go through the forums,
BAPI/FM for printing Billing doc.
Re: BAPI for creating billing document
VF02 - CHANGE BILLING DOCUMENT
Regards,
Azaz Ali. -
Function Module to know the Acc doc no for a Material document.
Dear Friends,
What is the Function Module to know the Acc doc no for a Material document? Please help. Thanks in advance.
Regards,
RAMANHi Raman,
I am not sure about your requirement,
But i remember when i required the same like you i went to vrpma table to get the account document,
I just did like a blind fold,
as my company does all the billing accounts in the same month, my search criteria was blind.
Also try with MKPF-XBLNR with the VBRK-XBLNR and get VBRK-VBELN
from there goto BSEG.
Thansk & regards,
Dileep .C
Maybe you are looking for
-
ITunes won't open OR close. Please help.
I have a brand new MacBook Pro. It's about a month old. iTunes was working fine on it and I have transferred all my music onto the new computer, but now I can't quit it and it won't open when I hit the icon. Should I uninstall it and install the new
-
Difference between Photoshop CS5 and Photoshop Elements 12
i currently use Photoshop CS5, but a friend of mine wanted to get Photoshop Elements 12. I don't want him to purchase it if I can't show him how to work it. Are there major differences? Is E12 an addition to a CS or can it be used by itself? I'm
-
I have tearing with flash and Youtube videos.
First, my specs. Windows XP Quad Core Nvidia 9600gt DDR3 2GB RAM Browsers: Firefox 3.6.12 and IE7 I have the newest Nvidia Drivers and Adobe Flash 10.1 Well the problem is that I have tearing with flash and videos in Windowed Mode, if I turn the full
-
If all pictures are updated, then print document
hi there, i'm new to this forum, so hi! i have to solve the following problem: i want an indesign document to be printed automatically, when three of four pictures have been updated. no dialog, just print the whole document... is this possible via in
-
Hi I know in iTunes we can change the sort order of albums. But how do you do change the sort order of albums on the iPod when you are in the 'Cover Flow' menu? Sam