BAPI for billing doc. creation with ref to outbound delivery
Hi,
I'm looking for BAPI to create pro forma invoice billing doc with red. to outbound delivery.
I have tried using BAPI_BILLINGDOC_CREATEMULTIPLE entering the outbound delivery as ref. document and all other required data. Pro forma is create but pricing is not copied since the bapi considers the delivery number as external doc.
It seems that BAPI_BILLINGDOC_CREATEMULTIPLE is designated to billing doc. with ref to sales orders
Would appreciate any suggestions,
Assaf
Hi,
In Function Module initial screen, there is no input parameter. Directly choose execute.
system will give the create billing document screen enter delivery document number and execute.
Why are using BAPI to create billing document with reference to delivery document.
you can create background job for billing through VF06.
Regards,
Chandrasekhar.S
Similar Messages
-
Bapi for partial good issue with ref to reservation
I have check the bapi for goods issue with ref to reservation. But how to take care scenario where good issue qty is less than reservation qty. How to map this in bapi.
Please provide input its urgent
Thanks
JENAHi Jena,
Implement a check in your program calling BAPI_GOODSMVT_CREATE.
If you call BAPI_GOODSMVT_CREATE in your own program you have to fill the interface of it (GOODSMVT_HEADER, GOODSMVT_ITEM ...).
So in the first step you have to select/colect all the required data for the interface. If you want to post a goods-issue with
reference to a reservation you can implement a quantity-check in you own program similar to the checks in transaction MB1A or transaction MIGO which lead to message M7064. All the required informations are stored in the table "RESB - Items of reservation".
This is the quantity-check implemented in transaction MIGO (... see note 409754):
Take only reservation items with open quantity > 0 or
or flag 'propose all items' is set (->default settings)
l_open_quantity = ls_resitem-bdmng - ls_resitem-enmng. >(1)
CHECK l_open_quantity > 0 OR
s_defaults-propose_all_items = abap_true.
l_open_quantity = open quantity -> is calulated here
ls_resitem-bdmng = Requirement Quantity ->
table RESB / field BDMNG
ls_resitem-enmng = Quantity withdrawn ->
table RESB / field ENMNG
Furthermore you could check, whether the quantity you want to post now is larger than the (remaining) open quantity. If this
not the case you could add this item to the interface-data. Otherwise you can ignore it and send a corresponding message or add the item to an error-log.
After the check has been carried out and the interface has been filled with the valid items you can call BAPI_GOODSMVT_CREATE.
In the customizing-transaction OMCQ you can maintain the category of messages. If you set the message M7 362 to the category "E - error message" the BAPI_GOODSMVT_CREATE will return with this (error-)message as soon as the requirement quantity is exceeded by the goods-issue("Reserved quantity exceeded by ...").
But: other processes/applications are using these settings too.
This means: these processes/applications might have a different behaviour after your changes (error-message instead of a warning- message ... for example).
I hope this helps,
Elaine. -
hi Gurus,
I am trying to create billing doc using the following bapi:'BAPI_BILLINGDOC_CREATEMULTIPLE'
Now, I am not pretty sure how the flat file structure should be and what are the values I should give in the BAPI function module.
So,If there is any sample program you can send it to me or show it would be great. If you click on my user id,you will get my id.
Thanks and Regards,
Vishwa.Hi,
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
posting = ''
TABLES
billingdatain = ti_billingdatain
errors = ti_errors
return = ti_return2
success = ti_success.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
Thanks
Vikranth -
BAPI for sales order creation with Reference
Hello Experts,
I have a order, with its reference I have to create a new sales order.
Am looking for BAPi, with which I can create a sales order with a Reference order (which is in my hand), so I checked SE37 with wild cards, but I did not find any!!
1) Pls. let me know a BAPI
2) And just like that I do not want to create a new order with the reference(existing) order, I have to change the PO number & order Reason(2 fileds) in newley creationg order, pls. let me know How to do it
Thank youHi,
First try to pass these two parameters to BAPI_SALESORDER_CREATEFROMDAT2
ORDER_HEADER_IN-REFDOCTYPE = Your Sch. Agreement No. (Please Check) and
ORDER_HEADER_IN-SD_DOC_CAT = 'E'.
If the above doesnt work ,than try using BAPI "BAPI_SALESDOCUMENT_COPY"
I hope you are working in SAP R/3 4.6C and above version because i am not sure whether this BAPI is available in lower version.
Let us know if this helps you..
Rgds,
Mayank -
BAPI for Service Notification Creation (with address)
Hi Friends,
Could any one help and let me know if there is a BAPI which helps to create a Service Notification and has the capability to update the address fields in that Service Notification. I am aware of the BAPI "BAPI_SERVNOT_CREATE" but it does not have the capability to update the address fields (like name1, name2, street, city, region, email address etc). Thanks in advance.
Regards
SidRavi ,
Thanks for your passing me the bapi , when i use it the program goes to dump , its regarding the category , what has to be passed to the category ,
As of now i m passing Notification type , Requestor , Code grp and activity code.
Sorry for not Rewarding points in time , i was at lunch , -
BAPI FOR Billing Document Creation
Hi ,
I want to create an Invoice from one or more Sales Orders. Is there a STD BAPI or FM to do this ?
Thanks in AdvanceHi
Try these Fm:
BAPI_BILLINGDOC_CREATEFROMDATA
BAPI_INCOMINGINVOICE_CREATE
PLZ REWARD POINTS IF HELPFUL -
Stop the Billing Doc creation for error confirmation
Hello Experts,
This is regarding the Billing issue.
Our Service Process: We create the Service Process and also create the followup confirmations.
For ex: I have created one SP and also created one followup two confirmations.
The second Confirmation contained an error and it has generated Billing Document
Actually The bill should not be generated until all confirmation contain no error and only one billing document should be generated per Service Call.
Could you help to stop ,the Billing Doc creation for Error Confirmations?
Regards
MadhuCheck the following thread: KEPM valuation K/(834) No standard cost estimate could be found for mat.
Shail -
BAPI for creating scheduling agreement with reference to Contract agreement
Hi All ,
Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
Thanks for your help.
VadivukkarasiHi,
Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
check these
BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
Regards -
Can u tell me any predefined BAPI for change and creation of Material
Hi,
Can anybody tell me predefined BAPI for change and creation of Materialmasterand Pricing?
Thanks & regards,
Gopianne.you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
When changing material master data, you need enter only the material
number.
In the header data, you must select at least one view for which data is
to be created. Depending on the view selected, you must maintain other
required parameters. If you do not enter values for all of the required
parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first
be supplied with data by the calling program. An indicator must also be
set for each of these fields so that the data is written to the database
by the method. This requires the calling program to supply the
corresponding field with the indicator in a checkbox table (for example,
CLIENTDATAX). Checkbox tables exist for tables that do not contain any
language-dependent texts (MAKT, MLTX), International Article Numbers
(MEAN), or tax classifications (MLAN). Several data records for a
material can be created in these tables.
regards
vivek
reward points if it helps -
BAPI for automatic Pr creation witth multiple files from excel sheet
I have written a programm for automatic PR creation with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
types : begin of x_file ,
key1(10),
pur_grp(4),
maktx(40),
plant(4) ,
req(10),
s_qty(13),
wbs(24),
gl(10),
trackno(10),
supl(4),
deladd(255).
types : end of x_file .
data : str5 type char10.
data : mm type char2.
data : yyyy type char4.
data : dd type char2.
data : str9 type char10.
data : str6 type char10.
data : month type char2.
data : year type char4.
year = sy-datum+0(4).
month = sy-datum+4(2).
dd = sy-datum+6(2).
yyyy = sy-datum+0(4).
mm = sy-datum+4(2).
dd = sy-datum+6(2).
clear str6 .
clear str5.
concatenate dd'.' month '.' year into str5 .
concatenate yyyy mm dd into str6 .
DATA : file type rlgrap-filename .
data : it_file type table of x_file .
data : wa_file type x_file .
data : it_header type table of x_file .
data : wa_header type x_file .
*& Internal Table For Define Row and Coloum Postion
data: col_start type i value 1 ,
row_start type i value 2,
col_end type i value 256 ,
row_end type i value 65000 .
*& Internal Table For Retrieve Data From Excel
*data: excel_bdcdata like kcde_cells occurs 0 with header line.
*data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
data: it_index type i.
DATA : IT_INDEX1 TYPE I.
*& Define Field Symbol
field-symbols: <fs> .
data : bdcdata like bdcdata occurs 0 with header line.
data : messtab like bdcmsgcoll occurs 0 with header line.
data : req_items type table of bapiebanc .
data : wa_req_items type bapiebanc .
data : req_acc_asg type table of bapiebkn.
data : wa_req_acc_asg type bapiebkn.
DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
*data : return type table of bapireturn.
*data : wa_return type bapireturn .
data : number type ebeln .
*****************************MOVE FILES******************************
data : xsource type string .
data : xdestin type string .
data : destin1 type string .
data : destin2 type string .
DATA : DEST1 TYPE STRING.
DATA : DEST11 TYPE STRING.
DATA : DEST2 TYPE STRING.
DATA : DEST22 TYPE STRING.
data : sou_dir_name like SALFILE-LONGNAME.
data : tar_dir_name like SALFILE-LONGNAME.
data : tar_dir_name1 like SALFILE-LONGNAME.
data : sou_filename like EDI_PATH-PTHNAM .
data : tar_filename like EDI_PATH-PTHNAM .
data : filename1 type string .
data : tar_filename1 like EDI_PATH-PTHNAM .
data : file_itab like SALFLDIR occurs 0 with header line.
data : wa_file_itab like SALFLDIR.
data : file_count type i .
data : dir_count type i.
data : dir_table like sdokpath occurs 0 with header line.
data : file_table like SDOKPATH occurs 0 with header line.
data : wa_file_table like sdokpath.
data : strr type string ,
str1 type string ,
str2 type string ,
str3 type string .
DATA : PA_VAL TYPE CHAR1.
sou_dir_name = 'D:\barcodes\files\'.
tar_dir_name = 'D:\barcodes\files-success\'.
"success folder.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = sou_dir_name
FILTER = '.'
IMPORTING
FILE_COUNT = file_count
DIR_COUNT = dir_count
TABLES
FILE_TABLE = file_table
DIR_TABLE = dir_table
EXCEPTIONS
CNTL_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
loop at file_table into wa_file_table.
clear : strr , str1 , str2 , str3 .
strr = wa_file_table-PATHNAME .
concatenate sou_dir_name strr into str1 .
concatenate tar_dir_name strr into str2 . " success
concatenate tar_dir_name1 strr into str3 . " failed
FILE = STR1 .
*start-of-selection.
*& Function For Retrieve Data From Excel
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = FILE
i_begin_col = col_start
i_begin_row = row_start
i_end_col = col_end
i_end_row = row_end
tables
intern = excel_bdcdata
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF sy-subrc NE 0.
WRITE : / 'File Error'.
EXIT.
ENDIF.
loop at excel_bdcdata.
translate excel_bdcdata to upper case .
move excel_bdcdata-col to it_index.
assign component it_index of structure wa_file to <fs> .
move excel_bdcdata-value to <fs>.
at end of row.
append wa_file to it_file .
clear wa_file.
endat.
endloop.
sort it_file by key1. "pur_grp maktx plant .
it_header[] = it_file[].
delete adjacent duplicates from it_header comparing key1 pur_grp maktx
plant .
data : h_item(5) type n .
data : h_pack(10) type n .
data : line_no(5) type n .
data : ln_no(5) type n .
loop at it_header into wa_header .
ln_no = 1.
h_item = h_item + 10.
h_pack = h_pack + 1.
wa_req_items-preq_item = h_item .
wa_req_items-doc_type = 'BOM'.
wa_req_items-pur_group = wa_header-pur_grp .
wa_req_items-MATERIAL = wa_header-maktx .
wa_req_items-plant = wa_header-plant .
wa_req_items-pckg_no = h_pack .
wa_req_items-deliv_date = str6 .
wa_req_items-item_cat = '0'.
wa_req_items-acctasscat = 'P'.
*wa_req_items-distrib = '2' .
**wa_req_items-gr_ind = 'X'.
wa_req_items-ir_ind = '2'.
wa_req_items-purch_org = 'TISL' .
wa_req_items-QUANTITY = wa_header-s_qty.
wa_req_items-PREQ_NAME = wa_header-req.
wa_req_items-SUPPL_PLNT = wa_header-supl.
wa_req_items-trackingno = wa_header-trackno.
append wa_req_items to req_items .
clear wa_req_items.
wa_req_acc_asg-preq_item = h_item .
wa_req_acc_asg-g_l_acct = wa_file-gl .
WA_req_acc_asg-wbs_elem = wa_header-wbs .
append wa_req_acc_asg to req_acc_asg .
clear wa_req_acc_asg.
h_pack = h_pack + 1 .
endloop.
clear ln_no .
***BREAK-POINT.
*& BAPI FUNCTION
call function 'BAPI_REQUISITION_CREATE'
importing
number = number
tables
requisition_items = req_items
requisition_account_assignment = req_acc_asg
return = return .Can someone please give me sol........
-
T-codes for accrual doc creation and posting
Hi,
Anyone knows the T-codes for accrual doc creation and posting?
Thanks,
CWHi,
Try with T Codes:
FBS1 - Enter Accrual/Deferral Document
F.81 - Reverse Accrual/Deferral Document
Thanks
Chandra -
IDOC/BAPI for Production order creation from Legacy system
Hi all
We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
thanks a bunchHi John,
For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
If there is an inbound IDoc available, I would recommend to use an IDoc.
IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
BAPI is also good approach to use and fast in term of processing.
For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
Hope this will help.
Regards,
Ferry Lianto -
BAPI for Service order creation
Hi ,
Please tell me if any Bapi for service order creation , T-code : IW31
regards,
PrakashHi Prakash,
Have a look on the following BAPIs:
BAPI_ISUSMORDER_CREATEMULTIPLE - Create Service Orders
BAPI_ALM_CONF_CREATE - Create confirmation for maintenance/service order
WTY04_CREATE_SERVICE_ORDER - Create Service order via function module.
Hope this will help.
Regards,
Nitin. -
Is there any Bapi for Physical Sample creation
Hi Folks,
Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a physical sample......
Any ideas or suggestions would be appreciated..
thanks
chaithanya.HI Chaitanya,
You can use : BAPI_BATCH_CREATE
it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
Regards,
-Venkat. -
BAPI for MIGO with respect to Outbound delivery or Stk trfer pur order
please let me know is there any standard BAPI for MIGO transaction with respect to Outbound delivery or Stock transfer purchase order
try these...
BAPI_OUTB_DELIVERY_CONFIRM_DEC
BAPI_OUTB_DELIVERY_SAVEREPLICA
BAPI_OUTB_DELIVERY_SPLIT_DEC
Maybe you are looking for
-
Disk error message in Organizer
When I open Organizer in Acrobat Pro 9, I get a No Disk error message: "There is no disk in the drive. Please insert a disk into drive \Devise\Harddisk\DR1" with buttons to Cancel, Try Again, Continue. If I cancel [and I have to cancel twice for each
-
Hi, have had to uninstall icloud/mobile me from my windows vista pc and now trying to re-install but it's saying I need minimum of windows 7 or 8?
-
Client Certification unknown login exception: no root LoginException found
HI, Am triyng to configure Client Certicate authentication in Portal. Am using SAP Passport CA to test the scenario. I've configured SSL I've done the necessary configurations in VA. ANd also mapped the certifcate to a portal
-
How to copy workbooks from Discoverer 4i to 10g
Hi guys Can somebody please help me. We've rolled out Discoverer 10G for users that are running on windows Vista (I believe that 4i does not work on Vista, please correct me if I'm wrong). We're still using Discoverer 4i for the users running on wind
-
I have tried finding info re how to send attachments...have tried clicking "paperclip" icon, can't seem to find any way to send attachments.