Billing plan in BAPI
Hi,
Am creating Sales orders through my program using the Function Module "BAPI_SALESORDER_CREATEFROMDAT2".
For every sales order i have to create an invoice of billing type F1. To create this billing type F1 invoice i must maintain billing plan in my sales order.
I couldn't find into which structure's(parameter's) field in the above BAPI funtion module should this Billing plan to be mapped.
When tried manually am able to fill in this billing plan but through this BAPI i couldn't.
I am working on ECC-6.
Thanks,
Adithya M.
Thanks Kiran I for your answer.
This function might be helpful but there is a strange control at the begining of the code.
(I guess VBAK must be filled somewhere..)
IF I_VBELN NE VBAK-VBELN.
MESSAGE A044 WITH I_VBELN VBAK-VBELN.
ENDIF.
But I've found another way to update the billing plan dates: using the function BILLING_SCHEDULE_SAVE (with BILLING_SCHEDULE_READ before). My point is solved.
Similar Messages
-
How to create Billing Plan in sales order using Function module /BAPI
hi,
How to create Billing Plan in sales order using Function module /BAPI
i hv check few FM such
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_GET_NUMBER
BILLING_SCHEDULE_SAVE
But unable to create billing plan for a sales order.....any other method to create???Hi,
Use this link.
Create sales order with billing plan via LSMW and BAPI BUS2032
BAPI or Function to update Billing Plan in Sales Order Items
Hope this will help you.
Regards,
Vijay -
Creating Billing Plan data for sales order using BAPI
Hello,
Someone ones if there is any way to create a sales order (BAPI) and then create a billing plan (by means of another BAPI)?
Or is there any way to create both at the same time?
Kind Regards.Hi David and Nisha here is the code for creating sales order with bapi
*& Report YOBJ_BAPI_SALESORDER
*& REPORT : CREATING SALES ORDER USING STANDARD BAPI
*& AUTHOR : S.PAVAN KUMAR INUMARTHY
REPORT YOBJ_BAPI_SALESORDER.
DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
*APPENDING VALUES FOR HEADER.
ORDER_HEADER_IN-DOC_TYPE = 'TA'.
ORDER_HEADER_IN-SALES_ORG = '1000'.
ORDER_HEADER_IN-DISTR_CHAN = '10'.
ORDER_HEADER_IN-DIVISION = '00'.
ORDER_HEADER_IN-SALES_GRP = '130'.
ORDER_HEADER_IN-SALES_OFF = '1030'.
APPEND ORDER_HEADER_IN.
*APPENDING VALUES FOR ITEM
ORDER_ITEMS_IN-MATERIAL = 'M-13'.
ORDER_ITEMS_IN-PLANT = '1000'.
ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
ORDER_ITEMS_IN-DIVISION = '07'.
ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
ORDER_ITEMS_IN-VOLUME = '0.780'.
ORDER_ITEMS_IN-VOLUNIT = 'M3'.
APPEND ORDER_ITEMS_IN.
*APPENDING VALUES FOR PARTNER
ORDER_PARTNERS-PARTN_ROLE = 'AG'.
ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
ORDER_PARTNERS-COUNTRY = 'DE'.
ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
APPEND ORDER_PARTNERS.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = ORDER_HEADER_IN
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = ORDER_ITEMS_IN
* ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDIF.
WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
I have tested and go it.
please go through it -
BAPI for billing plan and billing order
Hi Sap Guru, i need your help on bellow questions :
Are there any BAPIs or MF standard used to read billing plan from the business partner (header and lines) ? Are there any that permit to create, simulate, modifify or cancel a billing plan ?
Are there any BAPIs or MF standard used to obtain payment from a Busines Partner or Contract Account ? Are there any that allow to obtain views on the accounting records (header, extension, set of payments, discharges...)
Thanks in advance for all reply.Check the BOR object PAYSCHEME . You would find all the methods there
-
BAPI or Function to update Billing Plan in Sales Order Items
Hello all !
I have to update some fields in the billing plan data in sales order's item (VA02) with a program (receiving it's data form csv files).
I've searched a BAPI but infortunately there are no "Billing Plan" data structure to update thoses fields.
The transaction in VA02, the billing plan data is found in FPLT table, linked to VBKD table with key field VBKD-FPLNR.
I've tried theses Functions with no result :
BILLING_SCHEDULE_MAINTAIN
BAPI_SALESORDER_CHANGE
BAPI_SALESORDER_CHANGEBOS
BAPI_SALESDOCUMENT_CHANGE
For now I'm searching how VA02 is saving the billing plan data, but it's very tricky and maybe not reusable.
If someone have an idea for updating billing plan data in a abap program ( and not a batch input of VA02 because the line to update can have a variable position ).
Thanks a lot.
Message was edited by: Thomas B.Thanks Kiran I for your answer.
This function might be helpful but there is a strange control at the begining of the code.
(I guess VBAK must be filled somewhere..)
IF I_VBELN NE VBAK-VBELN.
MESSAGE A044 WITH I_VBELN VBAK-VBELN.
ENDIF.
But I've found another way to update the billing plan dates: using the function BILLING_SCHEDULE_SAVE (with BILLING_SCHEDULE_READ before). My point is solved. -
Is there any BAPI,direct input object in lsmw to create billing plan?
Hi experts,
Is there any BAPI,direct input object or idoc in LSMW to create sales order with billing plan?
Lanceby myself
-
BAPI or FM for changing billing plans of a sales order
Hi guys,
I tried the FMs BILLING_SCHEDULE_SAVE and BILLING_SCHEDULE_MAINTAIN for updating the billing plan of an SO but it doesn't work. Tried adding coomit work after calling the FMs but didn't affect the results.
Can anyone provide me with a BAPI or FM for updating the billing plan?Below is a sample code.
I am able to delete the details....
Take a look...:)...imp to add wait for few seconds
REPORT z.
PARAMETER: vbeln TYPE vbak-vbeln.
PARAMETERS: fplnr TYPE fplnr.
DATA: t_zfpla TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_zfplt TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fpla_new TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fpla_old TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fplt_new TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fplt_old TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
*DATA fplnr TYPE fplnr.
IF NOT vbeln IS INITIAL.
SELECT SINGLE rplnr INTO fplnr FROM vbak WHERE vbeln = vbeln.
ENDIF.
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = fplnr
TABLES
zfpla = t_zfpla
zfplt = t_zfplt.
LOOP AT t_zfpla.
MOVE-CORRESPONDING t_zfpla TO t_fpla_old.
t_fpla_old-updkz = 'D'.
APPEND t_fpla_old.
ENDLOOP.
LOOP AT t_zfplt.
MOVE-CORRESPONDING t_zfplt TO t_fplt_old.
t_fplt_old-updkz = 'D'.
APPEND t_fplt_old.
ENDLOOP.
BREAK-POINT.
*CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = t_fpla_new
fpla_old = t_fpla_old
fplt_new = t_fplt_new
fplt_old = t_fplt_old.
DATA fpltr TYPE fpltr.
CALL FUNCTION 'BILLING_SCHEDULE_MAINTAIN'
EXPORTING
I_FPLA =
I_FPLT =
i_upd_fpla = 'X'
i_upd_fplt = 'X'
i_fplnr = fplnr
IMPORTING
E_DATALOSS =
E_UPD_FPLA =
E_UPD_FPLT =
e_fplnr = fplnr
e_fpltr = fpltr
TABLES
fpla_new = t_fpla_new
fpla_old = t_fpla_old
fplt_new = t_fplt_new
fplt_old = t_fplt_old.
WAIT UP TO 2 SECONDS. -
Bapi or function to simulate billing plan
Hi,
I need to use a function module or a bapi to simulate (but no create) billing plan in the contract items. (VA42)
I know this function module : BILL_SCHED_GENER_UNTIL_HORIZON.
But even if i fill the different structures, i don't have any datas in the output tables.
Do you know another "moreeasy to use" function or bapi to simulate billing plan ?
I know this one : BILLING_SCHEDULE_GENERATE but it's harder to use it.
ThanksHi,
I progressed with the use of this function module.
I will try to explain how i used it and maybe someone could tell me if 'im wrong somwhere.
So i select a document in VBAK. I also get the corresponding datas in VBAP, VBPA, VEDA, VBKD, FPLA and FPLT.
I forced the field endat of FPLA at 2009/12/31 and the billing plan of this document is generated until 2008/12/31.
So, what i expect is to generate the missing datas in the internal table FPLT (i first only have datas until 2008/12/31 and would like to generate billing plan until 2009/12/31)
I get the KOMK and KOMP data with this FM :
CLEAR : s_komk, s_komp.
CALL FUNCTION 'SPR_KOMK_KOMP_FILL'
EXPORTING
pi_i_spr = s_pispr (Get with MF PISPR_FILL)
IMPORTING
pe_i_komk = s_komk
pe_i_komp = s_komp
EXCEPTIONS
org_structure_not_completed = 1
OTHERS = 2.
I filled the VEDA_HEADER strcture with FM :
CALL FUNCTION 'SD_VEDA_SELECT'
EXPORTING
i_document_number = veda-vbeln
i_item_number = veda-vposn
i_trtyp = 'A'
IMPORTING
e_vedavb = s_veda_header.
MOVE s_veda_header TO s_veda_header2.
CLEAR s_veda_header2-vposn.
I filled the internal tables fpla and fplt with this FM :
REFRESH : t_fpla_old, t_fpla_new, t_fplt_old, t_fplt_new.
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = s_vbkd-fplnr
TABLES
zfpla = t_fpla_old
zfplt = t_fplt_old.
So, here are the values passed to the function module :
CALL FUNCTION 'BILL_SCHED_GENER_UNTIL_HORIZON'
EXPORTING
i_fplnr = vbkd-fplnr
i_waers = vbak-waerk
i_komk = s_komk
i_komp = s_komp
i_kompax = kompax
i_fkrel = 'I'
i_absagen = 'D'
i_kfplan = ''
i_veda = s_veda_header
i_veda_kopf = s_veda_header2
IMPORTING
e_kompax = kompax
TABLES
fpla_new = t_fpla_new
fpla_old = t_fpla_old
fplt_new = t_fplt_new
fplt_old = t_fplt_old.
So, i have the correct generated lines in t_fplt_new, until 2009/12/31, but i dont' have any amount in netpr field, for all lines, even the first ones that had amount in t_fplt_old.
So if anybody knows if i forgot something or if i'm wrong somewhere, please tell me. Maybe it's not the good way to simulate billing plan.
Thanks
Ps : if you need more details or if i'm not clear, tell me. -
Hi all,
I am using [BAPI_SALESORDER_CREATEFROMDAT2] for creating Sales order
and i also have billing plans data to be updated in the sales order. But i dont find any structures for populating the Billing plan data into the BAPI.
But i found the SD_SALES_BILLINGPLAN_CHANGE function module for updating the Billing plan schedule data. But this function module needs [Billing plan number / invoicing plan number] assigned to the sales order from the table VBKD.
When i create the Sales order through BAPI, the [Billing plan number / invoicing plan number] is not getting updated and i dont know how to update the billing plan for the sales order created using BAPI.
Can anyone help out how to create the Billing plan data for a Sales order?
Regards
Dhanapal Shi Dhanapal
i ahve the same problem which u posted..
My scenarion is to create billing plan while creation of order using the BAPI_SALESORDER_CREATEFROMDAT2 but could not find any structure to pass billing plan details
pls can u let me know if u found any solution for this if so can u send me detailed mail..
i want to populate in both way header level and item level (by removing check header plan in the billing plan tab)
Pls let me know ASAP..
Thanks
anil -
Creating Billing Plan data for sales order using BAPI_SALESORDER_CREATEFROM
Hi All,
We are using BAPI_SALESORDER_CREATEFROMDAT2 to create the sales order.We are unable to get the fields for billing plan tab in this BAPI.
Kindly let me know the fileds in BAPI that corresponds to the fileds of billing plan in sales order.
Thanks in Advance,
Kiran I.Hi kiran
hi Dhanapal
i ahve the same problem which u posted..
My scenarion is to create billing plan while creation of order using the BAPI_SALESORDER_CREATEFROMDAT2 but could not find any structure to pass billing plan details
pls can u let me know if u found any solution for this if so can u send me detailed mail..
i want to populate in both way header level and item level (by removing check header plan in the billing plan tab)
Pls let me know ASAP..
Thanks
anil -
BAPI_CUSTOMERCONTRACT_CHANGE - Updating Line Item Billing Plan
Hi all,
We're using the BAPI_CUSTOMERCONTRACT_CHANGE to update Contracts, which is nothing but updating fields in VA42.
However for some reason it's not updating the Billing Plan date in the line items.
Version: SAP 4.7 R/3 Enterprise.
All OSS notes are up to date.
How to pass data for billing plan in the BAPI.
Any feedback regarding this matter is highly appreciated.
Thanks
Gopakumar
Sr.SAP Tech.Lead
[email protected]Hi Gopakumar,
There is no separate structure to be filled out for the Billing Plan Tab. Since it is coming under the Item level, you have to use the item structure to fill in the data.
Quickest way is, find out the "Data base structure field name" and check in the Item structure(BAPISDITM). i.e. for eg. for billing_block the field is "FAKSP" and the corresponding Item Structure field name is bill_block. you should fill this data in the structure (BAPISDITM) and set 'X' in the check_in structure (BAPISDITMX).
CALL BAPI_CUSTOMERCONTRACT_CHANGE using update mode. You will get the data.
Thanks and Regards
Ratish -
How to update Billing Plan using BAPI_SALESORDER_CHANGE
Hi,
In my case initailly sales order header data is created and saved, with reference to SO Project is created and then item level data is updated.
So clients requirement is to create any upload programme which can use for mass upload.
i.e to develop a program to upload,
i) Items in Sales Order.
ii) Billing Plan & Pricing Conditions in SO
I am trying to use BAPI_SALESORDER_CHANGE for this requirement. Problem is in this scenerio user exit is already used which validate "Amount" at item level and "Bill. value" in Billing plan tab should be same.
As observed Billing plan data can not be updated using this BAPI.
Even I've tried to use BDC for this requirement, but as we need to double click on line item while updating billing plan data and conditions it does not work while recording.
Incase anyone have worked on similar scenerio and found out solution, please share all your inputs.
Warm Regards,
NitishHi,
The following code will take you to Billing plan tab in BDC.
PERFORM bdc_dynpro USING 'SAPMV45A' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'VBAK-VBELN'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'VBAK-VBELN'
wa_vbap-vbeln.
PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ITEM'.
PERFORM bdc_field USING 'BDC_CURSOR'
itemno . "'RV45A-MABNR(wa_vbap-posnr)'.
PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=T\06'.
PERFORM bdc_dynpro USING 'SAPLV60F' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
Regards,
P Gomatheeswaran -
Using VA42, I have to create the Billing Plan for contract line items.
I find many Function Modules and BAPIs to update the existing Billing Plan for the contract line.
Any idea about how to create one? Any BAPI/FM?
PranuYou can update billing plan using following Function module.
*& UPDATE Billing Plan
i_bapi_view-header = 'X'.
i_bapi_view-item = 'X'.
i_bapi_view-partner = 'X'.
i_bapi_view-contract = 'X'.
i_bapi_view-sdcond = 'X'.
i_bapi_view-sdcond_add = 'X'.
i_bapi_view-billplan = 'X'.
i_bapi_view-configure = 'X'.
sales_documents-vbeln = v_order.
APPEND sales_documents.
CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
EXPORTING
i_bapi_view = i_bapi_view
TABLES
sales_documents = sales_documents
order_headers_out = order_headers_out
order_items_out = order_items_out
order_contracts_out = order_contracts_out
order_billingplans_out = order_billingplans_out
order_billingdates_out = order_billingdates_out
order_partners_out = order_partners_out
order_conditions_out = order_conditions_out.
LOOP AT order_billingplans_out WHERE itm_number = '000000'.
hfplnr = order_billingplans_out-bill_plan.
ENDLOOP.
LOOP AT tab WHERE kbetr IS NOT INITIAL.
LOOP AT order_conditions_out WHERE itm_number = tab-itm_number
AND cond_type = 'ZZRE'.
MOVE-CORRESPONDING order_conditions_out TO cond_ch.
IF order_conditions_out-cond_type = 'ZZRE'.
cond_ch-cond_value = tab-kbetr.
APPEND cond_ch.
ENDIF.
ENDLOOP.
ENDLOOP.
* Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = hfplnr
TABLES
zfpla = hfpla
zfplt = hfplt.
MOVE hfpla TO hfpla2.
*READ TABLE zfpla2 INDEX 1.
hfpla2-lodat = p_stat.
hfpla2-tndat = p_end.
hfpla2-rfpln = ''.
hfpla2-lodar = ''.
hfpla2-tndar = ''.
hfpla2-fpart = p_bplan.
hfpla2-perio = p_bplan.
hfpla2-horiz = p_hori.
*** Very important to set field updkz = 'U' ***
hfpla2-updkz = 'U'. "--> UPDATE!!
APPEND hfpla2.
CLEAR pos.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = hfpla2
fpla_old = hfpla
fplt_new = hfplt " --> NEW
fplt_old = hfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
EXPORTING
i_no_messages = ' '.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
*& END OF UPDATE Billing Plan Header level
*& UPDATE Billing Plan Item level
LOOP AT zbill.
MOVE v_order TO doc .
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
MOVE zbill-itm_number TO pos.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
* I_VFKDAT =
* I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt.
* Upddate the ZFPLT2 table with the new values
*MOVE zfplt TO zfplt2.
MOVE zfpla TO zfpla2.
*READ TABLE zfpla2 INDEX 1.
zfpla2-lodat = zbill-datesfrom.
zfpla2-tndat = zbill-datesto.
zfpla2-rfpln = ''.
zfpla2-lodar = ''.
zfpla2-tndar = ''.
zfpla2-fpart = p_bplan.
zfpla2-horiz = p_hori.
*** Very important to set field updkz = 'U' ***
zfpla2-updkz = 'U'. "--> UPDATE!!
APPEND zfpla2.
ENDLOOP.
CLEAR pos.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla2
fpla_old = zfpla
fplt_new = zfplt " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
EXPORTING
i_no_messages = ' '.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Edited by: Krupaji on Apr 9, 2011 7:21 AM -
Billing block removal in Billing Plan - Transaction VA02
Hi,
How can I remove the Billing Block in Billing plan for a single sales order? (header level)
What I need to remove/change to empty is the field FPLT-FAKSP (from Billing Plan tab) and not the FAKSK from table VBAK (in Billing Document tab).
Following example is only to remove the VBAK-FAKSK, but what i need is to remove the FPLT-FAKSP.
Please help.
Thanks
REPORT Z_BILLING_BLOCK.
PARAMETERS: p_vbeln TYPE vbak-vbeln.
DATA: l_header_inx TYPE bapisdh1x,
l_header_in TYPE bapisdh1.
DATA: lt_return TYPE STANDARD TABLE OF bapiret2.
update the flag.
l_header_inx-updateflag = 'U'.
l_header_inx-bill_block = 'X'. " Billing
l_header_in-bill_block = ''. " Remove Billing block.
Call the bapi.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = l_header_in
order_header_inx = l_header_inx
TABLES
return = lt_return.
check for errors.
LOOP AT lt_return TRANSPORTING NO FIELDS WHERE type = 'A' OR type = 'E'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error in updating'.
ELSE.
WRITE: / 'Billing block removed'.
COMMIT WORK AND WAIT.
ENDIF.Hi,
I don't want to use this is the sales order user-exit. What I really want is to have another different program running in background for example and removing this Billing Block (FPLT-FAKSP).
My code is only working for the billing block in Billing Document Tab and not for the one in Billing Plan.
Thanks a lot
Br
Anyone knows already a solution for this??
Edited by: Ninfx Ninfx on Feb 27, 2009 4:42 PM -
How to update billing plan date in contract
Hi guys!
I*m using the bapi BAPI_CUSTOMERCONTRACT_CHANGE to change some data in my contract
However, I want to set the date for the beginn of the billing plan. (Billing plan start date) and i don't find this field in the BAPI.
So is there a way to set and change this date?
...by the way. There is a rule initiated named "rule for origin of start date of billing plan". This should set the billing plan start date to the contract start date. - The contract start date is updated with BAPI_CUSTOMERCONTRACT_CHANGE - but the changes doesn't affect the billing plan startdate.
If i edit the contract, the changes to the billing plan occur automatically, but not in the BAPI
thanks!!
Edited by: tom54321 on Aug 6, 2009 9:36 AMHi,
Plz check the link given below:
BAPI_CUSTOMERCONTRACT_CHANGE is giving dump when start date of contract
It may help you.
Thanks & Regards,
Sarita Singh Rathour
Maybe you are looking for
-
Speech Platform 11 Recognition in a Desktop App
I'm doing some tests with speech recognition engine on my app, this is a sample grammar from my code: GrammarBuilder _Start = new GrammarBuilder("start action"); Grammar _Actions = new Grammar(_Start); This should recognize when i say "start action".
-
Why can't I open files from ACR to CS5?
I have been using CS5/Bridge/ACR for a year now and all of the sudden, I cannot get the RAW images from ACR into CS5. I always open my RAW files from Bridge, make my adjustments in ACR, then select all and open images into CS5. This has always work
-
To Filter Blank Records In Bex
Hello, We are developing a DashBoard On Bi Aging report. Data is matching with BI aging report, so no data issue. In Bi Query we have used Suppress Zero Records but In Dashboard all material are passed i.e Suppress Zero records is not working while d
-
Trying to setup ipad mini but all text is in chinese?
When I started up my new ipad mini all the text is in Chinese. How do I get the startup assistant in English?
-
HT4759 icloud is not supported on windows, but exe files can still be installed
why is icloud so damm hard to use on windows ? i have no apple devices, wont like one if thats will be so hard everytime to make a simple thing with apple