Bapi/fm for LT03
hi!
is there any bapi or FM for creating transfer order (LT03)?
REGARDS
YIFAT
check any one of these function modules based on your requirement.
L_TO_CREATE_2_STEP_PICKING
L_TO_CREATE_DN - Create a transfer order for delivery note
L_TO_CREATE_DN_MULTIPLE
L_TO_CREATE_MOVE_SU - Create transfer order for moving storage units
L_TO_CREATE_MULTIPLE
L_TO_CREATE_POSTING_CHANGE - Create transfer order for posting change
L_TO_CREATE_SINGLE - Create a transfer order with one item
L_TO_CREATE_TR - Create a transfer order for transfer requirement
Thanks,
Suryaprakash
Similar Messages
-
Anyone used BAPI/FM for LT03 create transfer order
Hi all,
Has anyone used BAPI/FM for <b>LT03</b> create transfer order based on delivery.
the BAPI/FM should accept <b>multiple line items for individual storage units</b>.
thanks,
Subbathanks Amit....
But it would be helpful to know the usage of this FM....and if anyone has used in their program....
thanks,
Subba -
Hi all,
Which BAPI can i use for LT03 trx.?
FM WS_LM_TRANSFER_ORDER_CREATE seems to be successfull, but i couldn't let it work. If it was the right BAPI, is there any example with it??
Thanks a lot..
KaanHi Kaan,
Function Module 'L_TO_CREATE_DN' should do it.
Example:
DATA lt_ltak TYPE STANDARD TABLE OF ltak_vb WITH HEADER LINE.
"TO Header
DATA lt_ltap1 TYPE STANDARD TABLE OF ltap_vb WITH HEADER LINE.
"TO Items
DATA lt_msg TYPE STANDARD TABLE OF wmgrp_msg WITH HEADER LINE.
DATA lt_delit TYPE TABLE OF l03b_delit.
DATA lt_wa_delit TYPE l03b_delit.
"TO Items with Pallet data
DATA lv_tanum TYPE ltak-tanum. "TO Number
LOOP AT t_pallet.
MOVE t_pallet-posnr TO lt_wa_delit-posnr.
MOVE t_pallet-curr_qty TO lt_wa_delit-anfme.
MOVE t_pallet-vrkme TO lt_wa_delit-altme.
MOVE t_pallet-charg TO lt_wa_delit-charg.
MOVE t_pallet-lgtyp TO lt_wa_delit-vltyp.
MOVE t_pallet-lgpla TO lt_wa_delit-vlpla.
UNPACK t_pallet-lenum TO lt_wa_delit-vlenr.
APPEND lt_wa_delit TO lt_delit.
CLEAR lt_wa_delit.
ENDLOOP.
Bapi to Create the TO
CALL FUNCTION 'L_TO_CREATE_DN'
EXPORTING
i_lgnum = t_user-lgnum
i_vbeln = zmilk_zlm26_str-vbeln
i_squit = c_true
it_delit = lt_delit
IMPORTING
e_tanum = lv_tanum
TABLES
t_ltak = lt_ltak
t_ltap_vb = lt_ltap1
t_wmgrp_msg = lt_msg
EXCEPTIONS
foreign_lock = 1
dn_completed = 2
partial_delivery_forbidden = 3
xfeld_wrong = 4
ldest_wrong = 5
drukz_wrong = 6
dn_wrong = 7
squit_forbidden = 8
no_to_created = 9
teilk_wrong = 10
update_without_commit = 11
no_authority = 12
no_picking_allowed = 13
dn_hu_not_choosable = 14
input_error = 15
OTHERS = 16. -
Need BAPI Name for updation of Subcontracting scheduling line agreement
Hi All,
Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
Note: BAPI_PO_CHANGE is not useful for me.
Thanks and Regards,
Atul.Hi Muralidhara,
Can you please give some more details for this BAPI..
I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
with regards,
Kirti -
Hi,
I want to use BAPI 'BAPI_ACC_GL_POSTING_POST' for G/L account posting (F-02). I need to populate the below fields at item level but i am not sure how to populate these fields at item level because not able to find last two fields in any structure of the BAPI.
Posting Key:
Account
Amount
Tax Code
Determine tax base (Checkbox in F-02)
Please let me know how to populate them and if i am using the wrong BAPI then please provide me the correct one.
Thanks a lot in adv.
Regards,
SheeleshHi
You can add fields that you don't have in the interface with EXTENSION. Please, see SAP Note 487722 - Using EXTENSION1 for accounting BAPIs.
I hope this helps you
Regards
Eduardo
Edited by: E_Hinojosa on Dec 15, 2011 6:21 PM -
Error in BAPI RETURN for Service Contract
Hi,
I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
Header1 Detail1 Text1
HEader1 Detail2 Text2
Header1 Detail3 Text3
So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
break-point.
*DATA : i_ce_goodsmovement TYPE REFERENCE
ALM_ME_CUSTOMER_ENHANCEMENT.
DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
*DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
CALL METHOD lr_badi_goods_movement->create
EXPORTING
ce_goodsmovement = ce_goodsmovement
IMPORTING
user_data = ls_user_data
custom_user_data = ls_ce_user_data
goods_movement = goods_movement
changing
return = return[].
CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
TABLES
return = return.
endmethod.
Please help me to get the data in this method. How do I call this. -
BAPI error for mvmt types 201 and 202
Hi all,
I'm using a bapi BAPI_GOODSMVT_CREATE for the movement type 201 and 202 with the gm_code = '03' for the transaction mb11- Goods movement. But it returns an error u201D Account 400000 requires an assignment to a CO object u201D...I'm unable to resolve this one....I have attached the code below. Please help me in fixing this issue...
if sy-subrc = 0.
loop at it_mchb into wa_mchb.
if wa_mchb-clabs gt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '201'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
elseif wa_mchb-clabs lt 0.
clear wa_header.
wa_header-pstng_date = sy-datum. " fill header data
wa_header-doc_date = sy-datum.
wa_code-gm_code = '03'. "fill code data
clear wa_item.
wa_item-material = wa_mchb-matnr. " fillitem data
wa_item-plant = wa_mchb-werks.
wa_item-stge_loc = wa_mchb-lgort.
wa_item-batch = wa_mchb-charg.
wa_item-entry_qnt = wa_mchb-clabs.
wa_item-move_type = '202'.
wa_item-entry_uom = wa_mchb-meins.
append wa_item to it_item.
endif.
endloop.
clear lv_lin.
describe table it_item lines lv_lin.
if lv_lin = 0.
write : / 'No records found'.
endif.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = wa_header
goodsmvt_code = wa_code
importing
materialdocument = lv_matdoc
tables
goodsmvt_item = it_item
return = it_return.
if it_return is initial. " if record created successfully
call function 'BAPI_TRANSACTION_COMMIT'. " commit work
write : / lv_matdoc, 'IS CREATED SUCCESSFULLY' color 5.
loop at it_item into wa_item.
write : / 'Mat :', wa_item-material,'bat :', wa_item-batch.
endloop.
else. " if record is not created successfylly
loop at it_return into wa_return.
write : / wa_return-message color 6.
endloop.
uline.
endif.
else.
write : / 'No Records found' color 7.
endif. " gt_s035 is not initial
Edited by: Arunmozhi_06 on May 30, 2011 12:48 PMHi,
Did you passing the leading 0's in the cost center field?
and check the below coding..
* Structures for BAPI
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
perform show_status using 'Scrapping(551) Material'.
* Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '06'. " MB11
* Write 551 movement to table
clear gm_item.
move '551' to gm_item-move_type .
move xresb-matnr to gm_item-material.
move p_bdmng to gm_item-entry_qnt.
move xresb-meins to gm_item-entry_uom.
move xresb-werks to gm_item-plant.
move xresb-lgort to gm_item-stge_loc.
move p_grund to gm_item-move_reas.
* Determine cost center per plant
case xresb-werks.
when '0004'.
move '0000041430' to gm_item-costcenter."pass leading zero's in the cost center field
when '0006'.
move '0000041630' to gm_item-costcenter.
when '0007'.
move '0000041731' to gm_item-costcenter.
when '0008'.
move '0000041830' to gm_item-costcenter.
endcase.
append gm_item.
* Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gm_header
goodsmvt_code = gm_code
IMPORTING
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
TABLES
goodsmvt_item = gm_item
return = gm_return.
Maybe there is some config missing for your cost center, or maybe something missing in your code. check above.
Regards,
Dhina,..
Edited by: Dhina DMD on May 31, 2011 8:02 AM -
BAPI/RFC for Service Complaints Creation in CRM 5.0
Hi,
We are working on the Complaints and Returns module in CRM 5.0. We have found the Transaction Code for the same. (CRMD_BUS2000120).
Not able to find the BAPI/RFC for the same.Let us know if any. Appreciate your comments on the same.
Thanks,
MoorthyHi,
Thanks for the response
I am not talking about Service Order. I have requirement to create a Service Complaint. For that the transaction is CRMD_BUS2000120. Now I need to find the function modules/RFC available for this requirement.
Hope it clarifies .
Even I have found function module called -CRM_COMPLAINT_API_CREATE but not sure right one
Thanks,
Moorthy -
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 -
How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K
HI Experts,
how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
Requirement:
Already the contract having two line items using ME31K.
Custom program has to add new line items in existing contract.
Thanks,
SendilI got the solution:
We can do like this:
1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
2. After getting results, append new line item. Then use your BAPI.
Check this posting program.. where this bapi is used, use the same coding technique.
IDOC_INPUT_PURCONTRACT_CHANGE -
BAPI functions for file upload
Hi All,
can anyone tell me Bapi functions for the file or image upload using?
With best regards,
SuneethaHi,
Uploading LOGO in SAP
http://www.sap-img.com/ts001.htm
Upload graphics on
The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
<b>ws_upload</b>
Transfer files from the frontend to the application server.
Rgds,
Prakash -
Bapi Names For Following Fields?
Hi All,
I Want BAPI names For Following Fields.
1.Personnel Area.
2.Personnel SubArea.
3.PERNER
4.OBJID.
5.LAND1
6.REGIO
Thanks
SubbaRao ChintaHi Subbu,
its very difficult to find out the BAPI useing the fileds .
At least you should know the Technical name of your BAPI when you are developing the application.
If you dont know the BAPI name then how can you map it to ur VC user and get the Data.
I think u got my point
Regards,
Govindu -
GETLIST BAPI Wrapper for Purchase Requisiton
HI All,
I want to know the GETLIST BAPI Wrapper for Purchase Requisition in ECC 6.0 . I am able to find GETDETAIL but not GETLIST.
It would be nice if anyone could help me out in this.
Regards,
Madhu.
Edited by: madhu kv on Jul 8, 2008 10:53 AMIn that case you could just write your own custom function module to do it. All you need to do is write a simple select statement to return a table of document numbers. It shouldn't take more than an hour to have it all up and running. You could add a parameter to the interface so that it either returns just a list of document numbers or if the parameter is set, it calls GET_DETAIL for each document and returns the full data.
Good luck -
How we can find BAPI's for a transactions?
hi
how we can find BAPI's for a transactions?
thanks in advancehi,
use this function module SXV_GET_CLIF_BY_NAME
function sxv_get_clif_by_name .
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(NAME)
*" VALUE(PREFIX) TYPE SEEX_CLIF_PREFIX
*" EXPORTING
*" VALUE(CLIF) TYPE SEOCLSNAME
call function 'SXV_ADD_PREFIX'
exporting
name = name
prefix = prefix
importing
new_name = clif.
endfunction.
debug the function module you will get name of bapi , badi used for transaction which ever operation you perform
it will call this function module and will give you name
regards
Deepak. -
BAPI/FM for Physcial Inventory
Please provide me the list for FM/BAPI avalilabe for Physcila Inventory Process.
Regards.
RickyHi,
MB_BUS2028 - Function group for BAPIs for phys. inv.
BAPI_MATPHYSINV_CHANGECOUNT Change count for particular items of a phys. inv. doc.
BAPI_MATPHYSINV_COUNT Enter count for particular items of a phys. inv. doc.
BAPI_MATPHYSINV_CREATE Create Physical Inventory Document
BAPI_MATPHYSINV_CREATE_MULT Create Physical Inventory Document
BAPI_MATPHYSINV_GETDETAIL Read items for a physical inventory document
BAPI_MATPHYSINV_GETITEMS Read list of physical inventory documents with items
BAPI_MATPHYSINV_GETLIST Read list of phys. inv. documents
BAPI_MATPHYSINV_POSTDIFF Post differences for certain items in a phys. inv. document
Maybe you are looking for
-
Which Account to Use for Family Sharing?
After reading the issues of being locked out, I am a bit apprehensive to set up the account. Here's my scenario: Husband & Wife accounts want family sharing Husband as owner - using @me.com Apple ID AND @gmail.com iTunes account (or in settings 'Fami
-
OBIEE EBS R12 Operating Unit security
Hi all, Previously I have integrated OBIEE 10.1.3.4.1 with EBS 11.5.10 and I have created 3 initialization blocks EBS Single Sign on Integration, Get EBS Security Context, Group EBS responsibility and 2 static repository variables ORA_EBS_OLTP_DSN,OR
-
Hi. Sorry to post this twice but I dunno if I shld post this at the MP3 or portable media player section. I had my ZVM at the latest firmware and set the eq to 2-2-3-2-2. When i listen to some songs, there seems to be some audible hissing sounds at s
-
Need help about xcode 6 in-house distribution.
I have enrolled developer enterprise program, download developer and distribution certificate, add two certificate to keychain. I created a single view app, app id is com.test.idonotknow. created app id using wildcard(just like: com.test.*),created a
-
Is it possible to have java and javafx project types combined ?.
Today, in NetBeans (not sure about the eclipse world) one has to decide between a "Java" project or a "JavaFX" project. Why can't these two be combined ?. For e.g, when I try to add JavaFX files (script, classes) to a Java Project it fails to compile