How to achieve Quantity Control in purchasing?
Hi all,
My client company is controlling the purchasing quantity of consumable goods manually. Now in the new SAP system
they want to control from the system.
The scenario is , let us say diesel, they will prepare yearly estimated quantity for plant wise, then the quantity of diesel while purchasing for this plant should not be exceeded this quantity.
How to achieve this in SAP? Is there any settings in material master? If not able to control by quantity ,is it posiible to control budget from FI side for these goods?
Thanks,
Aravind
Hi Aravind,
Can make use of internal order with Budget functionality of Internal Order.
create Internal Order for each Asset Class / Services or Cost Center - KO01
assign Budget to the same as sanctioned by management - KO23.
You need to activate availability control for the above Order type and mark the activity control to 3 (Error Message) which will restrict the user from raising any PO/PR.
While creating PR/PO a buyer must maintain Internal Order number in account assignment field with account assignment category F.
if the PR/PO exceeds the budgeted value for the year, an error message is promopted.
Please refer the link:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/a9/ab73ee414111d182b10000e829fbfe/frameset.htm
Regards,
Bijoy Kumar
Similar Messages
-
How to achieve precise control of frames flv?
How to achieve precise control of frames flv?
Thanks for that suggestion, but still it did not work. I am working on a theory that certain adjustments to the embedded text pane didn't get properly propagated up the component hierarchy. I wouldn't be surprised if something broke the component communication.
The curious thing is that the scrollpane seems to know how big the viewport is, but the scrollbar finds the wrong "0" point.
I am making a little progress. I will post my solution here, if and when I find it. -
Delivery Quantity Control at Purchase Organisation Level
Hi All,
In this scenario, I would like to have a control on the Delivery quantity by a vendor.
Quantity released: 100 pcs for Vendor ABC
Total Number of Plants: 3
Out of this 100 pcs, it can be delivered to any of the 3 plants by vendor ABC. Quantity delivered by vendor to these 3 plants should not exceed 100 pcs in total. How can we have a control for total released quantity at Purchase Organisation level.
Breakup of quantity to be delivered to each plant cannot be given as releasing is done at corporate level.
We checked same scenario by using purchase Info record maximum quantity field. We created purchase info record at Purchase Organisation level.
Scenario 1. which i tested
Maximum Qty:100
PO creation
Plant 1: 100 qty-- No error/warning
Plant 2: 100 qty-- No error/warning
Plant 3: 101 qty-- warning maximum qty exceeded than 100 pcs.
Above scenario will not help me as I need to total release control on all plants together.
Scenario 2. Expected
Plant 1: 60 qty-- No error/warning
Plant 2: 45 qty-- Error, Total released qty exceed by 5 pcs.
Thanks and Regards,
VVHi
You cannot do GR for a plant which is not given in Purchase order. Corporate level you can have contract but not Purchase orders. If you have reference purchase organization create a corporate contract and try creating a po against that contract.
regards
Antony -
How to achieve an image loading affect?
Hello,
Before you continue, take note that this affect only seems to work in Mozilla Firefox and Google Chrome -
Website Link : http://boinx.com/
[Should work with most images on the website]
I am a web designer and when browsing the internet, I noticed this affect. When I visited a page on their website, I noticed that wenever an image first loads, It is shown as a matrix of squares that shrink/un - blur to the normal resolution of the image.
[Above Image] Look to the bottom of the image and you will see something like a pixelated image . . .
As The image continue to load, it looked like the rest of the above image . . .
Here you see the fully loaded image [Above Image]
Can you tell me how to achieve and control this affect?Hi There:
I don't think it is any effect.
The images used on the home page as the main graphics are all JPG images and they must be saved for progressive download when created. For example you can save an image in Photoshop and choose progressive as one of the option while saving.
Progressive download basically implies that images are downloaded pixel by pixel so that user feel something is happening (instead of downloading the whole image in one go which can take time).
To know more on this please refer to links below:
http://en.wikipedia.org/wiki/JPEG
http://www.faqs.org/faqs/jpeg-faq/part1/section-11.html
Regards,
Vinay -
How to achieve populating of price for regular purchases in PO
When using Purchasing module ( without/shared Inventory ) , i understand we can't create Item codes, my question is How to achieve populating of price for regular purchases.
Ex : If user requests Laptop for the same model more than one time in a year, i want the price to auto populate in PO and make buyer/requester life easy.I don't think you can do this.
However, if you are creating a requisition, you may be able to use the "Catalog" button to refer to old purchase orders. -
How to implement the promotional quantity on a purchase order
HI,
Good Afternoon,
Scenario on a procurement of every 10 Qty we receive 1 Promotional quantity.
How can we acheive the above
How to implement the promotional quantity on a purchase order
Regards
Kiran TCan you consider adding another line at $0?
Also look at Sundeep Sharma's presentation at http://www.ncoaug.org/NCOAUG%20Training%20Day%20Feb%202009/Sundeep%20Sharma%20-%20Integrating%20Advanced%20Pricing%20with%20Purchasing%20in%20Release12.pdf
Sandeep Gandhi -
How to achieve automated posted for invoice and stock transfers
Hi,
I have following queries for an RFP, can some one give hints on how to achieve them in SAP
o Receive self-billing documents from the customer, stating the deliveries and amounts that are settled and paid
o Automatic posting of invoice documents from the vendor, based on the data from the purchase order and goods receipts
o Process material stock transfers between two plants that use different SAP systems
Thanks & Regards
RaghuHi,
Normally when we do GR we take the cenvat credit by capturing & posting the excise invoice.
This can be done using the t.codes - MIGO or J1IEX.
So when the Material doc is posted the Part 1 register gets updated with Qty received.
If we post the excise inv using either MIGO or J1IEX the Part 2 register gets updated.
Now if you have done both the above then inorder to cancel the excise inv.
1. You have to cancel the Material Doc (so system wil use the Mov type 102)
2. Now Post your excise inv using J1IEX so that your Part1 reg will be updated ( i.e you are reversing the Cenvat Credit that you have availed).
3. Finally you have to cancel the Excise inv document using J1IEX so that your Part 2 register wil be updated.
Make sure that you do the above steps as per the above sequence else system will show the error as you mentioned.
Hope its clear.
Regards,
Kiran -
How to reopen a particular closed purchase order
Hi all,
In our company when AP_MATCHING is run, we got some matching exceptions. one of them is RULE_S210, which states that invalid POs. So we went to those POs, and found that the PO Status is Completed. I guess they were closed. so i am thinking by making those purchase orders' status to Dispatched will not give any matching exceptions.
But i am not sure how to reopen a close purchase order.
Can any one please tell me how to re-open a particular purchase order that is closed.
I have gone to Purchasing -> Purchase Orders -> Reconcile POs -> Reopen POs.
But according to my research in peoplebooks, that Reopen POs will just reverse the last run of PO_RECON(the process, which is used to close the purchase orders) of the PO process. I dont think it will not Re-open a particular PO. There are no parameters in the run control page fo reopen a PO.
Please help me. It's a production issue.
Thank you,
Bye.What I heard it it it is an issue with FS 8.8.
They fixed it in 9.0 so that you can re-open any purchase order. -
How to change IDoc control record
Hi all,
How to change the control record of the ORDERS (purchase order) outbound IDoc? The partner type and partner number is always the logical system. I want to change it to other partner type, e.g. KU.
Is there any user exits availalbe?
Thanks!
Regards,
HuiHi,
<b>Option-1</b>
User user-exit<b> EXIT_SAPLEINM_001</b> of <b>enhancement MM06E001</b> to change the control record.
But make sure that whatever control record you put here, there should be a corresponding partner profile exist in partner profile ( WE20 ).
<b>Option-2</b>
You are saying that you are always getting 'LS'. This is because the output type is only configured with partner function 'LS'. We are using Purchase order idoc and we generate our all idocs for partner type 'KU'.
To do this, follow these steps.
- go to transaction <b>NACT</b>
- enter application 'EF' and select 'maintain'.
- select the output type you are using in PO for EDI.
- with this output type selected, select "partner functtions" from left hald side options.
- Hit "new entries" button on the top
- create an entry with, MEDIUN = 6 (EDI) ; Funct = VN ( vendor )
- Save your settings and come out
- Now on WE20, remove the partner profile you have created under partner type 'LS' and instead create a same partner profile for your vendor under partner type "KU".
Now it is upto you to decide, either to user the user-exit i have mentioned to change the control records OR create a outout config and partner profile for "KU".
Let me know if you have any question.
Regards,
RS -
How to use table control in bdc, plz somebody tell me.
Hi Gurus,
Ples tell me
how to use table control in bdc, plz somebody tell me.
And send Sample CODE also. Thnaks in advance.hi,
Table control / step loop in BDC
Steploop and table contol is inevitable in certain transactions. When we run BDC for such transactions, we will face the situation: how many visible lines of steploop/tablecontrol are on the screen?
Although we can always find certain method to deal with it, such as function code 'NP', 'POPO', considering some extreme situation: there is only one line visible one the screen, our BDC program should display an error message. (See transaction 'ME21', we you resize your screen to let only one row visible, you can not enter mutiple lines on this screen even you use 'NP')
we can determine the number of visible lines on Transaction Screen from our Calling BDC program.
Demo ABAP code has two purposes:
1. how to determine number of visible lines and how to calculte page number;
(the 'calpage' routine has been modify to meet general purpose usage)
2. using field symbol in BDC program, please pay special attention to the difference
in Static ASSIGN and Dynamic ASSIGN.
Step1: go to screen painter to display the screen 121, then we can count the fixed line on this screen, there is 7 lines above the steploop and 2 lines below the steploop, so there are total 9 fixed lines on this screen. This means except these 9 lines, all the other line is for step loop.
Then have a look at steploop itselp, one entry of it will occupy two lines.
(Be careful, for table control, the head and the bottom scroll bar will possess another two fixed lines, and there is a maximum number for table line)
Now we have : FixedLine = 9
LoopLine = 2(for table control, LoopLine is always equal to 1)
Step2: go to transaction itself(ME21) to see how it roll page, in ME21, the first line of new page is always occupied by the last line of last page, so it begin with index '02', but in some other case, fisrt line is empty and ready for input.
Now we have: FirstLine = 0
or FirstLine = 1 ( in our case, FirstLine is 1 because the first line of new page is fulfilled)
Step3: write a subroutine calcalculating number of pages
(here, the name of actual parameter is the same as formal parameter)
global data: FixedLine type i, " number of fixed line on a certain screen
LoopLine type i, " the number of lines occupied by one steploop item
FirstLine type i, " possbile value 0 or 1, 0 stand for the first line of new " scrolling screen is empty, otherwise is 1
Dataline type i, " number of items you will use in BDC, using DESCRIBE to get
pageno type i, " you need to scroll screen how many times.
line type i, " number of lines appears on the screen.
index(2) type N, " the screen index for certain item
begin type i, " from parameter of loop
end type i. " to parameter of loop
*in code sample, the DataTable-linindex stands for the table index number of this line
form calpage using FixedLine type i (see step 1)
LoopLine type i (see step 1)
FirstLine type i (see step 2)
DataLine type i ( this is the item number you will enter in transaction)
changing pageno type i (return the number of page, depends on run-time visible line in table control/ Step Loop)
changing line type i.(visible lines one the screen)
data: midd type i,
vline type i, "visible lines
if DataLine eq 0.
Message eXXX.
endif.
vline = ( sy-srows - FixedLine ) div LoopLine.
*for table control, you should compare vline with maximum line of
*table control, then take the small one that is min(vline, maximum)
*here only illustrate step loop
if FirstLine eq 0.
pageno = DataLine div vline.
if pageno eq 0.
pageno = pageno + 1.
endif.
elseif FirstLine eq 1.
pageno = ( DataLine - 1 ) div ( vline - 1 ) + 1.
midd = ( DataLine - 1 ) mod ( vline - 1).
if midd = 0 and DataLine gt 1.
pageno = pageno - 1.
endif.
endif.
line = vline.
endform.
Step4 write a subroutine to calculate the line index for each item.
form calindex using Line type i (visible lines on the screen)
FirstLine type i(see step 2)
LineIndex type i(item index)
changing Index type n. (index on the screen)
if FirstLine = 0.
index = LineIndex mod Line.
if index = '00'.
index = Line.
endif.
elseif FirstLine = 1.
index = LineIndex mod ( Line - 1 ).
if ( index between 1 and 0 ) and LineIndex gt 1.
index = index + Line - 1.
endif.
if Line = 2.
index = index + Line - 1.
endif.
endif.
endform.
Step5 write a subroutine to calculate the loop range.
form calrange using Line type i ( visible lines on the screen)
DataLine type i
FirstLine type i
loopindex like sy-index
changing begin type i
end type i.
If FirstLine = 0.
if loopindex = 1.
begin = 1.
if DataLine <= Line.
end = DataLine.
else.
end = Line.
endif.
elseif loopindex gt 1.
begin = Line * ( loopindex - 1 ) + 1.
end = Line * loopindex.
if end gt DataLine.
end = DataLine.
endif.
endif.
elseif FirstLine = 1.
if loopindex = 1.
begin = 1.
if DataLine <= Line.
end = DataLine.
else.
end = Line.
endif.
elseif loop index gt 1.
begin = ( Line - 1 ) * ( loopindex - 1 ) + 2.
end = ( Line - 1 ) * ( loopindex - 1 ) + Line.
if end gt DataLine.
end = DataLine.
endif.
endif.
endif.
endform.
Step6
using field sysbol in your BDC, for example: in ME21, but you should calculate each item will correponding to which index in steploop/Table Control
form creat_bdc.
field-symbols: , , .
data: name1(14) value 'EKPO-EMATN(XX)',
name2(14) value 'EKPO-MENGE(XX)',
name3(15) value 'RM06E-SELKZ(XX)'.
assign: name1 to ,
name2 to ,
name3 to .
do pageno times.
if sy-index gt 1
*insert scroll page ok_code"
endif.
perform calrange using Line DataLine FirstLine sy-index
changing begin end.
loop at DataTable from begin to end.
perform calindex using Line FirstLine DataTable-LineIndex changing Index.
name1+11(2) = Index.
name2+11(2) = Index.
name3+12(2) = Index.
perform bdcfield using DataTable-matnr.
perform bdcfield using DataTable-menge.
perform bdcfield using DataTable-indicator.
endloop.
enddo.
example 1
BDC table control is an area on the screen in which you can display data in tabular form. You process it using a loop. Table controls are comparable to step loop tables. While a table control consists of a single definition row, step loop blocks may extend over more than one row. Table controls are more flexible than step loops, and are intended to replace them
When you need to handle a scenario like in sales order,it may contain more than one material,if you have more than one material We have to use table control,it will have number of columns and number of rows.
Table controls allow you to enter, display, and modify tabular data easily on the screen
Check this code,
PARAMETERS: file1 LIKE rlgrap-filename.
*Internal Table Declarations
DATA: BEGIN OF itab OCCURS 0,
matnr(18) TYPE c, "MaterialNumber
werks(4) TYPE c, "Plant
vdatu(10) TYPE c, "Valid From Date
bdatu(10) TYPE c, "Valid To Date
lifnr(10) TYPE c, "Vendor Number
ekorg(4) TYPE c, "Purchasing Organization
feskz TYPE c, "Fixed
autet TYPE c, "MRP Indicator
END OF itab.
DATA: bdcdata LIKE TABLE OF bdcdata WITH HEADER LINE.
*VARIABLES Declarations
DATA: wa1 LIKE LINE OF itab. "Workarea for ITAB
DATA: n TYPE i, "Check
count TYPE i.
DATA: cnt(2), "Counter
wa(15). "Workarea to hold concatenatedvalue
DATA v_msg(100).
DATA: flag.
DATA: file TYPE string.
*Initialization event
INITIALIZATION.
*At-selection-screen event
*To provide Input help for file name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR file1.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = file1.
*START-OF-SELECTION EVENT
START-OF-SELECTION.
MOVE file1 TO file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*To populate BDCDATA and start data transfer
LOOP AT itab .
To validate Plant range
IF itab-werks = '1000' OR itab-werks = '2000'
OR itab-werks = '1008'.
AT NEW werks.
CLEAR: n.
cnt = 1.
PERFORM bdc_dynpro USING 'SAPLMEOR' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EORD-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'EORD-MATNR'
itab-matnr.
PERFORM bdc_field USING 'EORD-WERKS'
itab-werks.
PERFORM bdc_dynpro USING 'SAPLMEOR' '0205'.
CONCATENATE 'EORD-EKORG(' cnt ')' INTO wa.
PERFORM bdc_field USING 'BDC_CURSOR'
wa.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
ENDAT.
IF n = 12.
READ TABLE bdcdata WITH KEY fval = '=BU'.
bdcdata-fval = '=NS'.
MODIFY bdcdata INDEX sy-tabix TRANSPORTING fval.
PERFORM bdc_dynpro USING 'SAPLMEOR' '0205'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EORD-VDATU(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
cnt = 2.
n = 2.
ENDIF.
CONCATENATE 'EORD-VDATU(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-vdatu.
CONCATENATE 'EORD-BDATU(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-bdatu.
CONCATENATE 'EORD-LIFNR(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-lifnr.
CONCATENATE 'EORD-EKORG(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-ekorg.
CONCATENATE 'RM06W-FESKZ(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-feskz.
CONCATENATE 'EORD-AUTET(' cnt ')' INTO wa.
PERFORM bdc_field USING wa
itab-autet.
IF n <> 12.
n = cnt.
ENDIF.
cnt = cnt + 1.
AT END OF werks.
CALL TRANSACTION 'ME01' USING bdcdata
UPDATE 'S'
MODE 'A'.
CLEAR:bdcdata,bdcdata[].
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = sy-msgid
lang = 'EN'
no = sy-msgno
v1 = sy-msgv1
v2 = sy-msgv2
v3 = sy-msgv3
v4 = sy-msgv4
IMPORTING
msg = v_msg.
WRITE:/ v_msg.
CLEAR: bdcdata,bdcdata[],flag.
ENDAT.
ENDIF.
ENDLOOP.
Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM.
Insert field values
FORM bdc_field USING fnam fval.
IF NOT fval IS INITIAL.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDIF.
CLEAR wa.
ENDFORM.
Sample code 2
THis is example to upload the Bank details of the Vendor which has the TC.
REPORT zprataptable2
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFB1-AKONT'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNA'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-WAERS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFM1-WAERS'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
Header file:
1 63190 0001 0001 0001 mr bal188 b in 31000 a1 inr
2 63191 0001 0001 0001 mr bal189 b in 31000 a1 inr
TC file:
1 in sb 11000
1 in sb 12000
1 in sb 13000
1 in sb 14000
1 in sb 15000
1 in sb 16000
1 in sb 17000
1 in sb 18000
1 in sb 19000
1 in sb 20000
1 in sb 21000
1 in sb 22000
2 in sb 21000
2 in sb 22000
Regards -
How to change Quantity in LQ02
Hi,
We have a requirement for transferring from blocked stock into Un-Res Stock. This is initiated from a bin to bin transfer transaction. So when the users are doing bin to bin transfers, the program should check the source storage type and if it is XXX then it should convert that material, batch, qty into un-res stock.
We thought we could use LQ02 BDC for this. But we couldn't find a way to select the partial quantity in LQ02. Any suggestions on how to achieve this?
Thanks
VenkatThis is how I'd do it...
1) Copy (program/includes and t-code) to e.g. ZLQ02 and make your custom changes in the code.
2) Next to the quantity field in details screen (where you can select items), I would put an editable field, with quantity to be posted. When you select the items and enter the quantity in this field, you would only need to substitute that quantity in the functions that do the actual posting, instead of full item quantity displayed/processed by the default.
So basically, I'd modify the program in a new ZLQ02, and put a new field on the item screen.
If you populate this filed it should be the quantity posted, if not it should post the total quantity as the LQ02 works by default.
That would be the most flexible solution IMO. -
How to access the control menu
How to access the control menu(Restore,move,minimize,maximize,close) of JFrame and JInternalFrame can be accessed using Keyboard like in windows(Using space bar for any window we can access the control menu of that window in Windows OS).
How to achieve this feature in Java for JFrame and JInternalFrame
Any sample code will be helpfultry search the forum with topic: control menu on-off
-
How to achieve print functionality in OA Framework page
Hi All,
I have created one page in OA Framework.
There is one print button on page for printing the page
How to achieve print functionality thruoug Print button in OA page.
Please help me in this if some one has use thif functionality before or if someone knows about it.
Thanks
NishaHi Nisha,
Have u checked out "printable page" in OA Developer guide??
Step 1: Add a page-level button as described in the Buttons (Action/Navigation) document.
Step 2: Assuming your button label is the standard "Printable Page," apply the OA Framework attribute set /oracle/apps/fnd/attributesets/Buttons/PrintablePage.
Step 3: Set the button's Destination URI property to point to the current page and set the UIX facet parameter (OARF) to printable as shown in the following example (if you don't know what a "facet" is, please see Controlling UIX Rendering Output for additional information). Remember to retain your application module.
OA.jsp?page=<CURRENT_PAGE>&retainAM=Y&OARF=printable
Step 4: Set the button's Target Frame property to _blank. This ensures that the printable page opens in a new window.
Regards,
Devang -
HT201359 How can I get an iTunes purchased item invoice ?
How can I get an iTunes purchased item invoice ?
Hi Mikih,
If you need to get a copy of your iTunes Store purchase history, you may find the following article helpful:
iTunes Store: See your purchase history and web order numbers
http://support.apple.com/kb/ht2727
Regards,
- Brenden -
How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them before updating.
Thanks. This seems to have worked easily.
Maybe you are looking for
-
Cannot connect to the Internet in Solaris 10
Hi, I've always been a Windows user and am now trying out some various Linux distros. This is mainly because I need to use the programming environment 'Poplog' for my University course, and would like to be able to work on things on my own computer a
-
Process is Running on the Taskbar instead of coming on the Forground
Hi Team, Recently i have used the ProcesStartInfo Class to launch one exe through the UI. It is opening currently in the Debug mode but when i am trying from the UI. The process is opening the Exe in the Taskbar. It should run the Exe in the Forgrou
-
Data extraction through generic data source
Hi sap-BI experts, i created the infoset query by using these transactions SQ01, SQ02, SQ03 and the tables used are EKKO,EKPO and MARA. and when i wanted to extract data from generic data source through infoset query i am getting an error like
-
Linux version for SAP ECC 6.0
Dear all, Please help me in finding the suitable Linux version for SAP ECC 6.0 version. Thanks & Regards Tavargeri Ganesh
-
Have PS6 with Camera Raw 7.0 Unable to open Canon 5D Mark III files. SNo support or upgrade available on the site but 6.7 upgrade.!Please advise