Bapi or Func for T-code LT0G
Hi, everybody,
Is there any bapi or function module for t-code: LT0G?
or anyone can show me how to do it using BDC?(we must generate a TO for every item, one item one TO)
hello,
i tried for u r tcode its working fine...
report ZTEST_12334
no standard page heading line-size 255.
include bdcrecx1.
parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting - DO NOT CHANGE ***
data: begin of record,
data element:
LGNUM_001(003),
data element:
LOW_002(010),
data element:
HIGH_003(010),
data element:
LOW_004(003),
data element:
P_VBELN_005(001),
data element:
P_TAPOS_006(001),
end of record.
End generated data section ***
start-of-selection.
perform open_dataset using dataset.
perform open_group.
do.
read dataset dataset into record.
if sy-subrc <> 0. exit. endif.
perform bdc_dynpro using 'RLLT0G00' '1000'.
perform bdc_field using 'BDC_CURSOR'
'P_TAPOS'.
perform bdc_field using 'BDC_OKCODE'
'=ONLI'.
perform bdc_field using 'LGNUM'
record-LGNUM_001.
perform bdc_field using 'VBELN-LOW'
record-LOW_002.
perform bdc_field using 'VBELN-HIGH'
record-HIGH_003.
perform bdc_field using 'BWLVS-LOW'
record-LOW_004.
perform bdc_field using 'P_VBELN'
record-P_VBELN_005.
perform bdc_field using 'P_TAPOS'
record-P_TAPOS_006.
perform bdc_transaction using 'LT0G'.
enddo.
perform close_group.
thank u,
santhosh
Similar Messages
-
Bapi or FM for T.Code CJIC
Hi ,
I need a BAPI or FM For T.Code CJIC to upload the data, for this BDC is not working.
Pls do the need full.
Regards,
KranthiHi Daniel,
Please try FM CO_IH_ORDER_GENER_2.
CALL FUNCTION 'CO_IH_ORDER_GENER_2'
EXPORTING
AUART = RIWO00-AUART
GEWRK = VIQMEL-ARBPL
GEWRK_OBJTY = VIQMEL-CROBJTY
VIQMEL_I = VIQMEL
IMPORTING
AUFNR = VIQMEL-AUFNR.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
hi all,
can any one help please..
i am searching for a bapi or RFC for t-code f-32..please help me if any one know about this.
regards,
devi....hi all,
can any one help please..
i am searching for a bapi or RFC for t-code f-32..please help me if any one know about this.
regards,
devi.... -
BAPI FUNCTIONAL MODULES FOR T codes FB50,FB60,KB31n,KP46
Hi friends
Can u suggest me BAPI function modules for T codes FB50,FB60,KB31n,KP46
Thanks in advanceUse BAPI_INCOMINGINVOICE_PARK
Import parameters HEADERDATA is mandatory in BAPI_INCOMINGINVOICE_PARK .
Also tables ITEMDATA and RETURN are mandatory.
Check the following sample code
LOOP AT i_ekbe INTO wa_ekbe.
CLEAR: wa_invoice_header,
i_invoice_item,
i_return,
v_inv_doc_no,
v_fisc_year,
wa_return.
REFRESH: i_invoice_item,
i_return.
Appending Invoice header Work Area
wa_invoice_header-invoice_ind = c_x.
wa_invoice_header-doc_date = sy-datum.
wa_invoice_header-pstng_date = wa_ekbe-budat.
wa_invoice_header-comp_code = c_100.
wa_invoice_header-gross_amount =
wa_invoice_header-currency = c_usd.
wa_invoice_header-calc_tax_ind = c_x.
Appending Invoice item data
i_invoice_item-invoice_doc_item = '0001'.
i_invoice_item-po_number = wa_ekbe-ebeln.
i_invoice_item-po_item = wa_ekbe-ebelp.
i_invoice_item-tax_code = ' '.
i_invoice_item-item_amount = '20.00'.
i_invoice_item-quantity = '10.000'.
i_invoice_item-ref_doc = '5600000634'.
i_invoice_item-ref_doc_year = '2006'.
i_invoice_item-ref_doc_it = '10'.
i_invoice_item-po_unit = 'EA'.
i_invoice_item-COND_TYPE = 'VPRS'.
APPEND i_invoice_item.
Calling module BAPI_INCOMINGINVOICE_PARK
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
headerdata = wa_invoice_header
ADDRESSDATA =
IMPORTING
invoicedocnumber = v_inv_doc_no
fiscalyear = v_fisc_year
TABLES
itemdata = i_invoice_item
NFMETALLITMS =
ACCOUNTINGDATA =
GLACCOUNTDATA = i_gla
MATERIALDATA = i_mat
TAXDATA =
WITHTAXDATA =
VENDORITEMSPLITDATA =
return = i_return.
READ TABLE i_return INTO wa_return
WITH KEY type = c_e.
IF sy-subrc EQ 0.
ENDIF.
ENDLOOP.
Reward if useful. -
BAPI: bapi or RFC for t-code f-28
Hi all,
can any one tell me bapi or rfc available for t-code f-28
please help me...
Regards,
devika G.Hi,
i dont think there is a BAPI for this Transaction...
you can do BDC on F-28
FORM fill_bdc_data_f-28_9005 USING p_i_mult_doc TYPE c.
**BDC from screen 9005
DATA : l_amt_bdc(13), l_amt_bdc_remain(13), l_amt_bdc_mult(13),
l_amt_bdc_mult_remain(13), l_assignment(14), l_period(2),
l_amount(13).
CLEAR t_bdcdata.
REFRESH t_bdcdata.
PERFORM bdc_dynpro USING 'SAPMF05A' '0103'.
PERFORM bdc_field USING 'BDC_OKCODE' '=AB'. "OK CODE - doc overview
**get user default date format and pass date in that format
PERFORM convert_date_to_user_format USING bkpf-bldat.
PERFORM bdc_field USING 'BKPF-BLDAT' w_date. "cheque date
CLEAR w_date.
PERFORM bdc_field USING 'BKPF-BLART' i_blart. "doc type
PERFORM bdc_field USING 'BKPF-BUKRS' i_bukrs. "comp code
**get user default date format and pass date in that format
PERFORM convert_date_to_user_format USING bkpf-budat.
PERFORM bdc_field USING 'BKPF-BUDAT' w_date. "posting date
CLEAR w_date.
l_period = sy-datum+4(2).
PERFORM bdc_field USING 'BKPF-MONAT' l_period. "period
PERFORM bdc_field USING 'BKPF-WAERS' 'INR'. "currency
PERFORM bdc_field USING 'BKPF-BKTXT' i_bankl. "doc. hdr. text
PERFORM bdc_field USING 'BKPF-XBLNR' i_xblnr. "Ref. Document No.
PERFORM bdc_field USING 'BSEG-ZUONR' i_zuonr. "Assignment(Depot Code)
PERFORM bdc_field USING 'RF05A-KONTO' i_bank_gl. "Bank GL acc
PERFORM bdc_field USING 'BSEG-GSBER' i_gsber. "Business Area
l_amount = bseg-wrbtr.
PERFORM bdc_field USING 'BSEG-WRBTR' l_amount. "Amount
PERFORM bdc_field USING 'BSEG-PRCTR' ''. "Profit Center
**open items data
PERFORM bdc_field USING 'RF05A-AGKOA' 'D'. "Acc type (D=customers)
PERFORM bdc_field USING 'RF05A-XNOPS' 'X'. "Std OIs check box
**end of first screen
**document overview screen
PERFORM bdc_dynpro USING 'SAPMF05A' '0700'. "Overview Screen
PERFORM bdc_field USING 'BDC_CURSOR' 'RF05A-AZEI1(01)'. "cursor
PERFORM bdc_field USING 'BDC_OKCODE' '/00'. "OK CODE
PERFORM bdc_field USING 'RF05A-NEWBS' '19'. "posting key
PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
PERFORM bdc_field USING 'RF05A-NEWUM' 'B'. "Spl GL Indicator
**for single document selected
CLEAR l_amt_bdc.
IF p_i_mult_doc = ''.
***new screen - next line item
PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
**for single document, use the bouncing amount calculated earlier
l_amt_bdc = w_amt_ant_bouncing.
PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc. "amount
**due date - same as posting date on screen
**get user default date format and pass date in that format
PERFORM convert_date_to_user_format USING bkpf-budat.
PERFORM bdc_field USING 'BSEG-ZFBDT' w_date. "due date
CLEAR w_date.
**assignment
CLEAR l_assignment.
CONCATENATE t_seldoc_ant_bouncing-belnr
t_seldoc_ant_bouncing-gjahr INTO l_assignment.
PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.
**if there is some remaining amount, then go for another line item
IF w_rem_amt_ant_bouncing > 0.
PERFORM bdc_field USING 'RF05A-NEWBS' '15'. "posting key
PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
**new screen
PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-ZTERM'. "CURSOR
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE-ENTER
l_amt_bdc_remain = w_rem_amt_ant_bouncing.
PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
PERFORM bdc_field USING 'BSEG-ZTERM' '0001'.
**AGAIN
PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-WRBTR'. "CURSOR
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE-SAVE
PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term -hardcoded
PERFORM bdc_field USING 'BSEG-SKFBT' l_amt_bdc_remain.
ENDIF.
**multiple documents
ELSE.
**initialize remaining amount to amt entered on screen
l_amt_bdc_mult_remain = bseg-wrbtr.
LOOP AT t_seldoc_ant_bouncing.
IF l_amt_bdc_mult_remain > 0.
IF bseg-wrbtr > t_seldoc_ant_bouncing-rem_amt.
l_amt_bdc_mult = t_seldoc_ant_bouncing-rem_amt.
ELSE.
l_amt_bdc_mult = bseg-wrbtr.
ENDIF.
**remaining amt = screen amt - amt calculated above.
l_amt_bdc_mult_remain = l_amt_bdc_mult_remain - l_amt_bdc_mult.
PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult. "amount
PERFORM bdc_field USING 'BSEG-GSBER' i_gsber. "Business Area
**due date - same as posting date on screen
**get user default date format and pass date in that format
PERFORM convert_date_to_user_format USING bkpf-budat.
PERFORM bdc_field USING 'BSEG-ZFBDT' w_date. "due date
CLEAR w_date.
**assignment
CLEAR l_assignment.
CONCATENATE t_seldoc_ant_bouncing-belnr
t_seldoc_ant_bouncing-gjahr INTO l_assignment.
PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
**posting key 19 for all but last document
PERFORM bdc_field USING 'RF05A-NEWBS' '19'. "posting key
PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
PERFORM bdc_field USING 'RF05A-NEWUM' 'B'. "Spl GL
ENDIF.
ENDLOOP.
ENDIF.
**post remaining amount
IF p_i_mult_doc = 'X'.
**new screen if there is some amount left
IF l_amt_bdc_mult_remain > 0.
**posting key 15 with remaining amount
PERFORM bdc_field USING 'RF05A-NEWBS' '15'. "posting key
PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
PERFORM bdc_field USING 'RF05A-NEWUM' ''. "Spl GL
**new screen
PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult_remain.
PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term - hardcoded
ELSE.
**if no amount is left, no need for a further line item
PERFORM bdc_field USING 'RF05A-NEWBS' ''. "posting key
PERFORM bdc_field USING 'RF05A-NEWKO' ''. "customer
PERFORM bdc_field USING 'RF05A-NEWUM' ''. "Spl GL
ENDIF.
ENDIF.
**clear variables
CLEAR : l_amount, l_assignment, l_amt_bdc,
l_amt_bdc_remain,l_amt_bdc_mult, l_amt_bdc_mult_remain.
ENDFORM. " fill_bdc_data_F-28_9005
Regards -
BAPI Extending Vendor for Company Code
Gurus,
Is anybody aware of a BAPI which can be used to extend a vendor for multiple compnay codes .
regards
jain>
J@Y wrote:
> in the fm goto> documentation
>
>
With this method you can create or extend a vendor online.
I think the issue here is that it is an online BAPI - you have to go through the screens. -
Hi all,
i need create service order for existing service notifications (like transaction IW34). I have already used bapi BAPI_ALM_ORDER_MAINTAIN to create service order, but i dont know link or connecting the generated order with the notification.
Please let me know Is there any process to do this ??
Best Regards,
Daniel PintoHi Daniel,
Please try FM CO_IH_ORDER_GENER_2.
CALL FUNCTION 'CO_IH_ORDER_GENER_2'
EXPORTING
AUART = RIWO00-AUART
GEWRK = VIQMEL-ARBPL
GEWRK_OBJTY = VIQMEL-CROBJTY
VIQMEL_I = VIQMEL
IMPORTING
AUFNR = VIQMEL-AUFNR.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
Finding BAPI/RFC/FM For ME41(Create RFQ)
Hi,
Plz help me for finding Bapi/Rfc/Fm for t-code ME41(Create RFQ).
Thanks,
Sunil Sahoohi
we have BAPI'S for many requirements like
BAPI_VENDOR_CREATE
BAPI_REQUISITION_CREATE.
BAPI_QUOTATION_CREATEFROMDATA
you try this BAPI
ME_CREATE_REQUISITION_EXT
hope this helps
regards
Aakash -
Standard or Customizing Bapi for T-code F-44
Hi
I need to clear vendor open invoices using BAPI's for T-code F-44 .I've got through various FM like <b>bapi_acc_document_post</b> and <b>bapi_ar_acc_getbalanceditems</b> but could'nt find solution because this FM's are for customer clearing the open items from table BSAD(cleared accounts of customer).Have any boby worked on this tcode to clear vendor accounts using bapi's or do we have any standard FM to use the scenario same as FM mentioned above for table BSAK(vendor clear items).
Its really simple working with bdc's to transfer data from flat file to the above transaction.But as known every vendor has huge sets of items and this could be a huge performance issue....so to avoid this in future we need to work on this using exclusively BAPI's......Any suggestions or sample codes wud surely be appreciated....
Thanks in Advance......hi,
look here
Re: BAPI for transaction F-03
<b>Reward points</b>
Regards -
Hi
I need to clear vendor open invoices using BAPI's for T-code F-44 .I've got through various FM like <b>bapi_acc_document_post</b> and <b>bapi_ar_acc_getbalanceditems</b> but could'nt find solution because this FM's are for customer clearing the open items from table BSAD(cleared accounts of customer).Have any boby worked on this tcode to clear vendor accounts using bapi's or do we have any standard FM to use the scenario same as FM mentioned above for table BSAK(vendor clear items).
Its really simple working with bdc's to transfer data from flat file to the above transaction.But as known every vendor has huge sets of items and this could be a huge performance issue....so to avoid this in future we need to work on this using exclusively BAPI's......Any suggestions or sample codes wud surely be appreciated....
Thanks in Advance......Thanks for ur response Anji Reddy garu,
I've tried to check up this given FM but could'nt find it here in my sap system both in QAS and in DEV more the FM <b>Bapi_payit_post_clearing</b> is also not available here in my sap system what could be the problem it should display this standard FM if available right but its say FM does not exit......Can u do me a favour of forwarding the source code for both the FM's so that i can create a new customizing FM if its fits my requirement..... -
Hi Friends,
Can anybody help me get the BAPI for t-code MIR7? Also, please provide the code if available.
Thanks and Regards
Abinash KumarHi Amit,
Can you give me a sample code for BAPI .. if you have any..... Also I need to know what all mandatory data I need to supply to HEADERDATA and ITEMDATA.
Thanks and Regards
Abinash -
IDOC/BAPI for T.code PIC01 to uplaod using LSMW
Hi friends,
I want to upload the data for T.code PIC01. can any one worked using IDOC/BAPI to uplaod using LSMW.
Thanks,
Sivaram.What T-code is that PIC01??
--Ragu -
Hi GURU ,
Is there any BAPI for T-Code PA30 .
Please reply me.Hi
Go through This link
bapi for pa30
Ranga -
Any one can tell me, is there any BAPI for t-code F-43.
I have a req to create BDC session for t-Code F-43.
I think instead of BDC,better BAPI.Please anyone knows,tell me.
Thanksthanks for bapi..but in this bapi,there is no field for payee(EMPFB),what it is in t-code f-43.
So if any other bapi,pls send me
Thanks in advance -
BAPI or FM for LT0G transaction
Hi all.
Could you pls let me know the BAPI or FM for LT0G transaction.
I want to choose TO item view and select Putaway Foreground.
Thanks in Advance.
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Aug 28, 2011 8:42 PMPlease check the below function modules
OIO_RT_DELIVERY_CHECK
OIO_RT_DELIVERY_POST
LE_DSP_CHANGE_RETURNS_DELIVERY
Maybe you are looking for
-
Data Quality for name and address
Hello, We have OWB10G and would like to use Name and Address operator. It seesm to me that we need to buy some Data Quality library from some 3rd party ( FirstLogic etc). Our client is not ready to pay money to buy these 3rd party libraries. How woul
-
Manipulation of Print form after generation
I am using Adobe Forms as print forms within the SAP ERP 5.0 without WebDynpro. I have requirement that I need to manipulate the generated PDF file by adding additional attachment files to the PDF generated by the function module. Technically this se
-
500 Internal Server Error message with youtube viewing
Ok. Here's the issue. Many-but-not-every-time I'm using Safari and go to youtube to view videos I click on to view and this message comes up instead of the video: 500 Internal Server Error and then a page full of computer code. This has just started
-
How can I add 3ds Model into After Effects with animation and camera rotation?
Hi all! I'm on my way to my final project of Multimedia Animation of my bachelor last year. I have good knowledge of After Effects & 3ds Max. I want to do a short movie with aliens being shot down. So, my question is: How can I import my 3ds model wi
-
Workaround for compressor HDV to DVD field issue?
I need a work around for the field issue apparent when down-converting HDV to DVD. The Bonsai method <http://www3.telus.net/bonsai/Welcome.html> will not work, as there is too much motion and a side effect of the "fastest" conversion is that it gives