BAPI for External Acqisition of Asset through vendor
Hi All,
Are their any standard BAPI / FM's to CHECK asset before saving and PARK the document.
Regards,
Gautham Paspala
Hi,
What is the transaction code you are using and what you are typing in
F-90.
Have you limit ttype 100 for non G/L posting depreciation area's
Dont know where we can limit the GL Posting.
When you don't make postings in FI use then the a asset transaction like abzon / abso
Able to post through ABZON.
But I want to post through vendor.
Thanks
Ravi
Similar Messages
-
External Acqisition of Asset through vendor
Hi,
Face the following error at the time of acquisition of asset through vendor.
"You cannot post with transaction type 100 here"
Message no. AA409
Diagnosis
You have entered a transaction type which only updates depreciation areas, which are not automatically entered in the General Ledger. Therefore, no document can be created for Financial Accounting. In the transaction you have selected, however, you can only post business transactions with documents.
Procedure
Via the menu bar 'Postings' and pull-down menu 'Miscellaneous', you can post without a document. Alternatively you can enter a transaction type which updates the depreciation area and has automatic entry to the General Ledger.
Thanks & Regards
Ravi
RaviHi,
What is the transaction code you are using and what you are typing in
F-90.
Have you limit ttype 100 for non G/L posting depreciation area's
Dont know where we can limit the GL Posting.
When you don't make postings in FI use then the a asset transaction like abzon / abso
Able to post through ABZON.
But I want to post through vendor.
Thanks
Ravi -
BAPI for Generating Gate Pass Number through LECI
Hi Experts,
Can anyone plz. tell me the BAPI for Generating Gate Pass Number through LECI.
Thanks in Advance.Yes, look this blog /people/gustavo.gil/blog/2011/03/25/leci-registrar-accesos-de-medios-de-transporte-y-visitantes-a-la-compantildeiacutea-register-means-of-transportvisitor
Regard, -
Dear Frnds,
In our scenario we are getting the alerts from external notifier server to CRM , some of the alerts are,......1)Send alerts when supply of a particular product is diminishing
2)Send alerts when excess inventory needs to be pushed
3)Send alerts when special deal is available for sale
4)Send alerts when sales has been made below a margin threshold
are any standard BAPI's available for the above or any STND RFC .
Thanks in Advance
Cheers
Ram> - "FI/CO interface: Line item entered several times":
> what does this mean? How can I get more info on an
> error (clicking on it does not work) + how can I
> solve this problem?
Does anybody have an answer to the above question?
Thanks! -
BAPI_ROUTING_CREATE for external operation
Hi,
I am using BAPI_ROUTING_CREATE to upload operations, and this method is working well as long as all my operations are in-house operations (PP01). But, when I want to upload external operations with control key PP02 or ZP02, I get an error "Cost element is not defined in the system" ( I am entering info-record, purchase org, cost element in addition to the fields for activity number, workcenter and so on during this upload).
But, when I create a routing manually using CA01, and enter the same data for external operation, I am able to save the routing with the exact same cost element.
Could you please help me with this error? Why am I not able to pass the same information using BAPI for external operations. Is there any other field I need to use?
Thanks.Hi,
Since you say the cost element exists & its possible to create via CA01. Add the below code before passing the value to your BAPI.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = itab-cost_elem
IMPORTING
output = itab-cost_elem.
Where itab is the name of my internal table & cost_elem is the field.
Check & revert if the above resolves the issue.
Regards,
Vivek -
BAPI for Vendor Non-PO Invoice processed through MIR7 Transaction
Hi All,
I have a requirement where i will get data from flat file. Using this data Vendor Non-PO Invoice
will be processed through MIR7 transaction with Multiple line items - Invoice Upload Parking the document for vendor non-po invoices.
The data is in below format in flat file:
Header fields in 1st line
Dr. Key related fields in 2nd line
Cr. Key related fields in 3rd line
Header fields in 4th line
Dr. Key related fields in 5th line
Cr. Key related fields in 6th line
etc .... in flat file
In these main fields coming in from flat file are: comp.code, doc.type, vendor no,
Debit/Credit indicatorSHKZG, G/L a/c no, inv/post dates etc..
My issues:
1. I am planning to use F.M BAPI_INCOMINGINVOICE_PARK is it the correct F.M!
But Here PO number seems to be mandatory for this F.M but it is not available as per our flat file,
if so can anybody suggest a BAPI for Vendor Non-PO Invoice parking for MIR7 transaction!
2. What are the parameters need to be used for from above flat file data especially for 2 line itemshttp://Dr./Cr. data other than header data. So as per Header & 2 Line items http://Dr. & Cr. Data which parameters will be updated with which data in above flat file! can anybody clarify!
3. Also in flat file WorkflowNo is available in which parameter this fields will need to be filled & also by doing this will it trigger workflow automatically!
Can anybody clarify about above points!
Thanks in advance.
Thanks,
Deep.Hello Deep,
I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
data: headerdata like bapi_incinv_create_header value is initial,
table_item type table of bapi_incinv_create_item,
gl_account like bapi_incinv_create_gl_account,
table_gl type table of bapi_incinv_create_gl_account.
* fill headerdata and table_gl, leaving table_item empty
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
HEADERDATA = HEADERDATA
* ADDRESSDATA =
IMPORTING
INVOICEDOCNUMBER = lv_docnr
FISCALYEAR = lv_year
TABLES
ITEMDATA = table_item
* ACCOUNTINGDATA = table_acc
GLACCOUNTDATA = table_gl
* MATERIALDATA =
* TAXDATA = table_tax
* WITHTAXDATA =
* VENDORITEMSPLITDATA =
RETURN = lt_return.
This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty. -
Bapi for vendor payment with details of tunover and blocked payment
Dear all
I want to know whether any BAPI available for the details of vendor payment made and the open item with blocked payment (with the reason for the blocked payment) and the turnover of the vendor for a particular fiscal year...................
The client want to get the output as mentioned below.
e.g...
PO no : 45629810
Inv.No : 73409 (Vendor's Invoice no.)
Payment : Paid amt with date and details
Payment : Outstanding (Due and Over Due with no.of days)
Blocked Payment : Amt with the reason for blocking the payment.
Turn Over : Total turn over for that fiscal year.
This is an urgent req. from my client,i will be very grateful if any one can help me over this issue ..............
Appreciate for any relevant answers and suggestion ...........
I am in ECC 6.0
Regards
PraveenHello Raj,
Unfortunately there is no BAPI for payment detals and other company code data. The only possibility is via direct input (external data transfer).
Please have a look at the following Easy-Access-path:
SAP Menu
-> Accounting
-> Bank Applications
-> Loans Management
-> Environment
-> External Data Transfer
Within this menu entry you find diverse functions. Please start the function KCLJ to transfer data. Before you can do this you need to
prepare the transfer by creating your own transfer structure and so on. You can get further information on what to do here by navigating to
"Help > Application help" within transaction KCLJ. From here you get to the right area of SAP library.
Thanks Amber -
BAPI for ABZU - Asset Write UP
Hi
I need to post asset write up documents through ABZU tcode. Can any one help me out with the appropriate BAPI for the same.
BDC will not solve my problem as the set of screen changes as per the 'Transaction Type'.
Regards,
Sudip Kumar Das.Write up is allowed only to the extent of accumulated depreciation from previous years. You can do write up "ABZU". however the accumulated depriciation balance has to carry forward from last fiscal year to current fiscal year and you can do writeup only upto the accumulated depr from the previous yr
-
BAPI for Vendor invoice Park FV60
Hi All,
Do you knwo any BAPI for vendor invoice Park through FV60, I have tried
BAPI_INCOMINGINVOICE_PARK - Got struck where It is asking to pass teh PO data in Itme level, where as i have to uplaod only
GLaccounts data.
and i tryed for another BAPI_ACC_DOCUMENT_POST but is not working its not related to my requiremment it seems...
Can any one know better about the process to do this.. pleas let me know..?
Can anybody did the same, if ues please share with me... its very urgent it need it...
Thanks,use bapi: BAPI_INCOMINGINVOICE_PARK
-
BAPI for FV60 tcode parking (Vendor Invoic)
Hi All,
I want to park Vendor invoice through FV60 tcode using BAPI
I got one BAPI (BAPI_INCOMINGINVOICE_PARK), which is doing for incoming invoice i.e. MIR7 only. but it is not suitable for FV60.
Please help me in finding BAPI for Vendor Invoic (FV60) parking.
Thanks,
Ramanjaneyulu ReddyHi. I know it is very late, but I was looking for an answer to this on SDN today and found your post amongst others, but could not find a solution so had to have a look through SAP in more detail.
I have managed to get a finance invoice to park just like FV60 using function module PRELIMINARY_POSTING_FB01.
To find the right data to pass the easiest way is to park an invoice manually in FV60, then call function PRELIMINARY_POSTING_DOC_READ and get the data for the parked invoice.
Then just populate all the same fields in PRELIMINARY_POSTING_FB01 apart from the document number and it should work fine.
I hope this was of some help.
Regards,
Dave. -
Hi!
I need a BAPI for extract the Vendor Balances and other for load the Vendor Balances.
Do they exist?try to search in Se37
BAPI_AP_ACC_GETBALANCEDITEMS Vendor Account Clearing Transactions in a given Period
BAPI_AP_ACC_GETCURRENTBALANCE Vendor Account Closing Balance in Current Fiscal Year
BAPI_AP_ACC_GETKEYDATEBALANCE Vendor Account Balance at Key Date
BAPI_AP_ACC_GETPERIODBALANCES Posting Period Balances per Vendor Account in Current Fiscal Year
regards
Prabhu -
GR/IR Account - one for internal vendor and another for external vendors
Hi Experts,
Can I have two GR/IR accounts - one for internal vendors and another for external vendors? Please let me know.
Thank you.
with regards,
Muthu Ganapathy.Hi Muthu,
GR/IR accounts are not dependent on Vendors, they are dependent on Materials, to be precise on Plant/Valclass.
You can post to 2 different GR/IR accounts if you set up 2 different classes. then it is possible.
For setting up the same. Go to T.code : OBYC, Transaction : WRX.
Here Setup different GR/IR accounts per val.class.
Letme know if you need further info
Thanks
Kalyan -
Bapi for vendor non po invoice parking
Hello,
We have a requirement to Create a Non PO Invoice and also parking invoice.
I could able to create Vendor Invoice (Non PO) using BAPI: BAPI_ACC_DOCUMENT_POST.
But i am unable to find a BAPI for Parking the Vendor Invoice (Non PO). When i try to use BDC on FB01 transaction for creating Parking Vendor Invoice, it is throwing an error that "Parking Invoice creation is not allowed in batch input".
Can anybody help me for creating Parking Invoice (Non PO).
Note: There is a BAPI: BAPI_INCOMINGINVOICE_PARK, which wont support for Non PO Invoice creation. It is PO based.
Thanks in Advance for your support.
Thanks & Regards,
Sreedhar.Hi,
Please see the given link, hope It will help you.
Re: BAPI to Park the Invoice Document
Regards,
Shamma -
Profit Center not getting uploaded through BAPI for MM01. Pls help
Hello all,
I am getting an errror while uploading a file through BAPI for MM01 , The error says
Error:
Profit center 1000/sslcommon does not exist
for material: AC2
*& Report ZBAPI_DUMMY
REPORT ZBAPI_MM01.
*& Report ZBAPI2
TABLES
FLAGS *
DATA: F_STOP. " Flag used to stop processing
DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
STRUCTURES & INTERNAL TABLES
*--- BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2, " Return Parameter
BAPI_MARDL LIKE BAPI_MARD,
BAPI_MARDX LIKE BAPI_MARDX.
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
SPART(2), " Division
EKGRP(3), " Purchasing group
PRCTR(10), " Profit Center
VPRSV(1), " Price control indicator
BKLAS(4), "Valuation Class
*stprs(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
LGORT(4) , " storage location
DISMM(2) , "MRP TYPE
VERPR(23), " Moving Average Price
MTVFP(2) , " Availability Check
DISLS(2) , "Lot Size
DISPO(3) , "MRP Controller
BESKZ(1) , "Procurment Type
FHORI(3) , "SCHEDMARGIN KEY
PERKZ(1) , "Period Indicator
END OF IT_DATA.
SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY " Input File
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 2 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
Form : validate_input_file
Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS> .
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS> .
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS> .
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
Header
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
BAPI_HEAD-storage_view ='X'.
bapi_head-mrp_view = 'X'.
bapi_head-COST_view ='X'.
Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
bapi_mara1-unit_of_wt = it_data-gewei.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARC1-PROFIT_CTR = IT_DATA-PRCTR.
BAPI_MARC1-MRP_TYPE = IT_DATA-DISMM.
BAPI_MARC1-AVAILCHECK = IT_DATA-MTVFP.
BAPI_MARC1-LOTSIZEKEY = IT_DATA-DISLS.
BAPI_MARC1-MRP_CTRLER = IT_DATA-DISPO.
BAPI_MARC1-PROC_TYPE = IT_DATA-BESKZ.
BAPI_MARC1-SM_KEY = IT_DATA-FHORI.
BAPI_MARC1-PERIOD_IND = IT_DATA-PERKZ.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-AVAILCHECK = 'X'.
BAPI_MARCX-PROFIT_CTR = 'X'.
BAPI_MARCX-MRP_TYPE = 'X'.
BAPI_MARCX-MRP_CTRLER = 'X'.
BAPI_MARCX-SM_KEY = 'X'.
BAPI_MARCX-LOTSIZEKEY = 'X'.
Storage Location.
BAPI_MARDL-PLANT = IT_DATA-WERKS.
BAPI_MARDL-STGE_LOC = IT_DATA-LGORT.
BAPI_MARDX-PLANT = IT_DATA-WERKS.
BAPI_MARDX-STGE_LOC = IT_DATA-LGORT.
Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-VAL_CLASS = IT_DATA-BKLAS.
BAPI_MBEW1-MOVING_PR = IT_DATA-VERPR.
bapi_mbew1-std_price = it_data-stprs.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA = BAPI_MARDL
STORAGELOCATIONDATAX = BAPI_MARDX
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,
IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN = BAPI_RETURN
ENDLOOP.
ENDFORM. " UPLOAD_MATMASthe Profit center 1000/sslcommon not created. first create the profit center and then upload your data.check tcode KE52 for created profit centers...
-
BAPI for Purchase Order Vendor Confirmations
Can any body suggest me the BAPI for the purchase order vendor confirmations transaction code me22n - Tab<b>-(Confirmations)</b> alone.
regs,
RajaDear Asha,
Pls find the below code, this handles only the BDC part of the program.Updates only the EKES table thru standard confirmation tab on ME22N.
Kindly clarify any doubts in this reg.
regs,
Raja.
FORM ins_stdtable .
DATA:var TYPE c LENGTH 30,
cstr(02) TYPE n value '01'.
data istr(02) type n value '00'.
DATA recno TYPE i.
data: eblc type c length 5,
ebli type i.
DATA: kebeln LIKE utab-ebeln.
DATA: BEGIN OF indx,
ebelp type ekes-ebelp,
eindx type i,
END OF indx.
DATA : CNT TYPE I value 1.
DATA: COUNTER(2) TYPE N VALUE '01',
ROWS TYPE P.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
data :waek like indx,
itabek LIKE TABLE OF waek.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
SELECT MAX( ETENS ) FROM ekes INTO zetens WHERE ebeln =
ekko-ebeln.
recno = zetens.
LOOP AT utab.
SELECT distinct ebelp INTO CORRESPONDING FIELDS OF TABLE
itabek FROM eket WHERE ebeln = ekko-ebeln.
loop at itabek into waek.
ebli = ebli + 1.
waek-eindx = ebli.
modify itabek from waek.
endloop.
loop at itabek into waek where ebelp = utab-ebelp.
eblc = waek-eindx.
condense eblc.
endloop.
AT NEW ebeln.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MECHOB'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MEOK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MEPO_SELECT-EBELN'.
PERFORM bdc_field USING 'MEPO_SELECT-EBELN'
utab-ebeln.
AT New EBELP.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_CURSOR'
'DYN_6000-LIST'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
perform bdc_field using 'BDC_OKCODE'
'=DDOWN3200'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TABIDT15'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'PICK'.
ENDAT.
ENDAT.
PERFORM bdc_field USING 'DYN_6000-LIST'
eblc.
recno = recno + 1.
cstr = recno.
counter = cstr.
*This is to check whether the scheduled line item exceeding 12 rows. if so, use *page up
if counter >= 13.
rows = counter MOD 13.
istr = ( ( counter - rows ) / 13 ).
do istr times.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=EINB_CREATE'.
enddo.
DO 2 TIMES.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
enddo.
COUNTER = '03'.
cstr = '03'.
ENDIF.
CONCATENATE 'EKES-EBTYP(' cstr ')' INTO var.
PERFORM bdc_field USING 'BDC_CURSOR'
var.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING var
utab-ebtyp.
CONCATENATE 'RM06E-EEIND(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-eeind.
CONCATENATE 'EKES-MENGE(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-menge.
CONCATENATE 'J_3ASZDI-J_3ASIZED(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-j_3asize.
AT END OF Ebelp.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MESAVE'.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CALL TRANSACTION 'ME22N' USING bdcdata MODE 'E'.
IF sy-subrc EQ 0.
savedone = 'Y'.
saveflag = 'Y'.
initflag = 'N'.
MESSAGE 'SAVED' TYPE 'I'.
else.
saveflag = 'N'.
savedone = 'N'.
initflag = 'Y'.
MESSAGE 'Not Saved' Type 'I'.
endif.
CLEAR: bdcdata.
REFRESH bdcdata.
ENDAT.
ENDLOOP.
ENDFORM.
Hope this will help u
Maybe you are looking for
-
Set up new iMac user accounts & storage locations
I just made the switch from Windows PC to a new iMac since it is still in the box I thought I would take some time to think about how I want to set it up before opening it and starting to dump all my files onto the new machine. I'd like to have an e
-
Video Card for Premiere and Photoshop?
Hi. I thought I was reasonably well set up when I got an nVidia GeForce GTX 470 for video editing. Unfortunately life throws us curve balls... I'm upgrading one of my current monitors to a much better quality IPS-panel monitor. At the top of my
-
TOC Layout in Printed Documentation
Morning chaps, Currently the Printed Documentation is chucking out a TOC that shows the Books, Topics and the Headings in the Topics. I was wondering if there is any way of formatting it so that it only generates Books and Topics? Luke.
-
How to convert Flat file(.txt) data to an Idoc format(ORDERS05)
Hi, How to convert Flat file(.txt) data to an Idoc format(ORDERS05). If any FM does the same work please let me know. thanks in advance, Chand Moderator message : Duplicate post locked. Read forum rules before posting. Edited by: Vinod Kumar on Jul 2
-
How can i create absolute symbolic links
The question is simply the Thread Topic, I want to create an Absolute Symlink, I have found some Apple Scripts that i think create relative Symlinks. I am not that familiar with Terminal, so any recomendations to go that route nned to be fully explai