Bapi / FM to create VL01N
any Bapi / Fm to create DO
hi all,
i have did this coding:
append '0000010952' to wno.
CALL FUNCTION 'SHP_GET_SD_DATA'
EXPORTING
IT_VBAK_KEY = wno
IS_ORDER_VIEW =
IF_DO_DYNAMIC_CALC = 'X'
CHANGING
CX_SD_ORDER = worder
if sy-subrc = 0.
if_ledat = sy-datum.
CALL FUNCTION 'RV_DELIVERY_CREATE'
EXPORTING
selektionsdatum = if_ledat
vbsk_i = cs_vbsk
i_lieferart = space
if_no_enqueue = is_control-no_enqueue
if_no_deque = is_control-no_commit
if_no_commit = is_control-no_commit
if_synchron = is_control-synchron
it_vorgabe_daten = it_vorgabe_daten
if_vbls_pos_rueck = 'X'
if_nur_vorgabe_pos = if_nur_vorgabe_pos
is_delivery_extend = is_delivery_extend
if_check_spevi = 'X'
IMPORTING
vbsk_e = cs_vbsk
TABLES
lvbak = worder-vbak
lvbap = worder-vbap
lvbep = worder-vbep
lvbfa = worder-vbfa
lvbfs = ct_vbfs
lvbkd = worder-vbkd
lvbls = ct_vbls
lvbpa = worder-vbpa
lvbuk = worder-vbuk
lvbup = worder-vbup
EXCEPTIONS
error_message = 1
OTHERS = 2.
if sy-subrc = 0.
endif.
endif.
where can i get the DO no?
Similar Messages
-
Is there IDoc to create Vl01n delivery on posting it to SAP ???
hi,
I've made quite extensive search and finally landed in posting this query again....is there any standard idoc provided by sap tht can be used to create outbound deliveries (vl01n) in sap via idocs?
this question reflects to my thread in "Data transfers"
IDoc for creating VL01N (outbound) delivery
As far i have seen only inbound deliveries (vendor delveries: vl31) could be used...any advice on it pls.
i refrain from using bapi's for now.....no process code found for posting customer delivery...so using own process code with bapi in it
-
Bapi's for creating Maintenance order in IW31 with notification
Hi All,
Is there any bapi's for creating Maintenance order with Notification number in the transaction iw31.
Also is there any bapi's for creating measurement document.
Points will be awarded.
Regards,
vinothRFC MeasDocument: Individual Processing, Create
MEASUREM_DOCUM_RFC_SINGLE_001
RFC MeasDocument: Individual Processing, Change/Display or Read
MEASUREM_DOCUM_RFC_SINGLE_002 -
BAPI/FM to create commitment item which can be commit/roll back externally
Hi experts,
Is there any BAPI/FM to create commitment item????
I can use BDC but problem is that it can't be roll back. In my requirement i want to roll back based on condition.
i am creating GL and commitment item, if GL creation is failed commitment item should be roll back.
Is there way to solve this issue ? please help me.
Thanks in advance.
Regards.Hi ,
There is no fm for commitment item, In BDC what you can do is create two recording with 'SAVE' button clicked & not clicked. For test run use the recording where save button is not clicked and for actual run the other.
You can also have a look into the program RFFMMDBI85 where the function FM_COM_ITEM_NO_SCREEN_CREATE is used. In that particular fm you have a parameter callsed i_flg_test
Edited by: Keshav.T on Feb 10, 2012 11:56 AM -
Is there any BAPI/FM to create a trasnport request and add objects into it?
Hi Experts,
Could anyone please assist me in finding a BAPI/FM to create a transport request and add objects to it.
I could find a BAPI BAPI_REQUEST_CREATE, it creates trasnport request but doesn't have option to add objects.
Thanks
Yogesh GuptaCreate a custom Function Module , in that write a BDC to create a transport request and add objects to it.
Thats it. -
Is there any BAPI that can create assignment in workforce planning (CMP2)
Hello,
I want to implement a batch input program in order to create assignment in workforce planning. But the screen is not actually proper for batch input. Is there any Bapi that can create assignment for a given network, Operation/Activity, suboperation/Subactivity, personel Number and work hours.
Thanks in advance.Hi Aselsan,
Please have a look into the below link
[Link 1|Re: BAPI to create network (T-code CJ21)]
[Link 2|Example code for BAPI_NETWORK_MAINTAIN]
[Link 3|BAPI_NETWORK_COMP_ADD]
Hope they are useful,
Thanks
kalyan -
Bapi to change/create condition record
hi,
is there a bapi to change/create a condition record? haven't found anything yet!
regards jackohi,
Please find the suggested steps in this....
BAPI for VK11,VK12,MEK1,MEK2
Regards,
Richa -
Finding FM/BAPI/RFC for Create Inbound Delivery(vl31n).
Hi all,
i need for a FM/BAPI/RFC for Create Inbound Delivery(vl31n) or ASN
where in import Parameter i have to pass -
*vendor no*
*PO no*
*External ID no*
*Delivery date*
*TransPlanngDate*
*BillOfLad*
*GR/GI Slip*
in Export i need ASN no and in tables we can use ITEM details.
Regards,
Sunil sahoo.Hi,
Check the below link
[https://forums.sdn.sap.com/click.jspa?searchID=16938983&messageID=5780492]
Regards,
Surinder -
Remote enabled BAPI/RFC to create VACANCY in Recruitment
Is there any Remote enabled BAPI/RFC to create VACANCY in Recruitment?
I need to create VACANCY from external .Net program.
Thanks.closing to post another question
-
BAPI needed to create invoice and creditmemo
Hi all,
Is there any BAPI available to create invoice and creditmemo when material no is not given.
My requirement is to create credit memo and invoice through FB75 or FB70 transaction. I am able to achieve the same through BDC. Is there any BAPI availabe for the same to create credit memo or invoice to avoid BDC.
Input given to the program is a excel file in which i have the following fields
Transaction -- which separates credit memo or
invoice
Company code, purchase order number, GL account
number, cost center, profit center, amount etc...
Please let me know some pointers.
Regards,
Karthik.GN_INVOICE_CREATE or BAPI_BILLINGDOC_CREATEMULTIPLE
Please find the sample code for Billing document BAPI.
t_billing-salesorg = vbak-vkorg.
t_billing-DISTR_CHAN = vbak-vtweg.
t_billing-DIVISION = vbak-spart.
t_billing-DOC_TYPE = vbak-auart.
t_billing-ref_doc = vbak-vbeln.
t_billing-ref_item = vbap-posnr.
t_billing-doc_number = vbak-vbeln.
t_billing-ITM_NUMBER = vbap-posnr.
t_billing-ordbilltyp = 'BILLING TYPE'.
t_billing-price_date = sy-datum.
t_billing-ref_doc_ca = vbak-vbtyp.
t_billing-sold_to = vbak-kunnr.
t_billing-material = vbap-matnr.
t_billing-plant = vbap-werks.
APPEND t_billing.
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
TABLES
billingdatain = t_billing
return = t_return
success = t_success.
commit work.
Regards -
BAPI needed to create Settlement Order through IW52..
HI All...
Is there any BAPI available for creating Settlement Order/Credit Memo Request through IW52 Transaction..???
Regards
PavanHi,
check these BAPI/Function Modules
BAPI_SETTLEMENTREQSLIST_CREATE
MAT_ORDER_SETTLEMENT_CREATE
Read the corresponding function module documentation.
Feel free to revert back.
--Ragu -
Gents,
We are in search for a BAPI for RFQ create like the one BAPI_PO_CREATE1 for PO. But we are not getting anyone like that. Please note that we are in ECC 6.0.
We don;t want to go for a BDC to do this.
Any options?
Regards
ShibuHi,
I tried this module, but it only works if DIMP is activated . See also : 1666702 - Syntax Error occurs when using BS01_MM_QUOTATION_CREATE .
This contains the remark: Please do not consider activating the Business Function Set DIMP because you only would like to use this specific function BAPI BS01_MM_QUOTATION_CREATE (for some custom development).
So I think, unfortunately this will not work on many installations.
I also tested BAPI_PO_CREATE1 : there is no field to pass the DocumentCategory (to set EKKO-BSTYP ='A' ).
EKKO-BSTYP is set internal to 'F' and as result the passed document type for the RFQ is invalid, when it is checked with table T161.
Does SAP plan to enable a workaround for this module or to develop and a new modul for RFQ-creation via BAPI?
And BAPI_PO_CREATE has an error in processing the passed currency-value. -
Bapi's to create/Edit Service Process - BUS2000116 - Very Urgent
Hi Experts,
I want ot know the BAPI's to create service process - Business Object - BUS2000116.
Its very urgent. Please help me.
regards,
arul jothi a.Hi Arul,
BAPI_BUSPROCESSND_CREATEMULTI:Bapi to create Service Contracts programmatically. Pass the inputfields to be created in the contract.
Note: BAPI_BUSPROCESSND_SAVE must be called after this function call to save the Service Contract.
Regards,
Arjun
Pl.Reward the points -
BAPI Sales Order create with reference Invoice document
Hi
I am using BAPI ''SD_SALESDOCUMENT_CREATE'' to create debit memo request with reference Invoice document.
First time its successfully created with reference Invoice.When i am going to create 2nd time debit memo request with same reference Invoice and item
no its giving following error.
Reference quantity:
10 EA (total referenced:
40 EA)
Error in SALES_ITEM_IN 000010
Condition ZSLS is not allowed as header condition
Sales document was not changed
Please help any one to resolved this issue.
Regards
ShyamSD_SALESDOCUMENT_CREATE is not a BAPI. Is there any specific reason you're using this FM when the actual BAPI exists?
ZSLS is a custom condition. There might as well be some user exit that attempts to add it [possibly incorrectly], how would we know this on SCN? There is enough information in the error message to troubleshoot on your own, it seems. What kind of analysis have you done before posting on SCN? -
BAPI does not create Sales order
Hi All,
I am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order.
It is working fine till now.
But I found that whenever there is a material whose condition price is maintained and doesnot match with the valuation type, the Sales order does not get created, neither it gives any error msg.
For e.g For Valuation type Consign , condition type ZPCS is valid and similarly for Turnkey , condition type ZPTK is valid.
if a material has valuation type consign and condition type ZPTK.. The SAP system ofcourse will not allow to create a SO unless we delete the ZPTK entry from the SO and create ZPCS...
BAPI also doesnot create the SO but doesnot return the error messge too.
I try to put the ZPCS value to BAPI thru BAPICOND..but still not working?
How do i handle such case?
Points will be awarded to useful ansHi,
If you are saying that you cannot create a sales order with the Valuation type and Condition type mismatch even through VA01 manually, then there is nothing much you can do in BAPI also.
2nd Case is you say that that BAPI RETURN table is not getting populated and it is empty in this issue which is not letting you know that Sales order is not Created.
The one work around for this issue is you can check the exporting parameter SALESDOCUMENT if it has the Sales Order number or not. if the RETURN table is empty and the SALESDOCUMENT field has SO Number, then SO is created and if RETURN table is Initial and SALESDOCUMENT is also Initial, then it is the issue that you are facing.
Also try posting a Query in OSS.
regards,
Mahesh
Maybe you are looking for
-
Ideapad A1 07 on a reboot loop
I recently got the tablet for a present. It works fairly well for the most part, but I have both noticed this: every time I start it up initially, it will go to my home screen, and then after a few seconds it will go through the startup screen with t
-
Performance in a sync-rfc -- xi -- rfc-call
hi, we are designing an web application where several systems are involved. A portal application (webdynpro) calls via jco in a sap system (sysA). sysA is connected to other sap systems (FI, HR, ...). My question: Is it advisable to put the XI betwee
-
Oracle-validated for RedHat ?
Has anyone got the source for the package and can we hack it around to make it pull off a standard channel ... ?
-
Stopping the buzz on my audio tracks for my digi 002 rack
So i've got a digi 002 rack and i've got logic pro 7. I've hooked up my rack to logic and it picks up all the audio tracks. However, as soon as i set it up every track has a crazy buzz that peaks the gain. Can anyone give me any tips of advice?
-
How to get the profit center nodes descriptions
Hi Experts, i have value of profit center 17007236. but i need to get the hierarchy above this profit center and their descriptions. previously i have done similar kind of problem, but i that case i have top level node from which i h