Query for rg1 initial entry
hi gurus
i made initail entry for rg1 registers but now my query is wheather i have to update the RG23A-1 for value update or how it will be updated
in register for value
points will be rewarded for answer
regards
kunal
No need to update RG23A.
Just Update the RG1 Register in J1I5 and extract it using J2I5 if needed.
Points are useful.
Similar Messages
-
How to Enable the LOV to query for partial user entries in af:query in an ADF search form
Hi guys,
I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
Thanks,
TanmoyTo enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?
-
Steps for Excise Opening Balance for RG1
Hi,
Can anybody tell me the steps involved in uploading the stock balance involved for RG1 updates.
Rgds,
IndrajitDear Indrajit
The following is the sequence for RG1 updation:
1. Set the Loose pack Indicator in SE16 Table J_1IRG1BAL to P. You also have to specify the Excise Group, material Number, User Id and Time of Updation. This entry is to be done only once, the very first time.
2. Update RG1 in J1I5. For the initial entry, specify the Posting Date and the Classification. You need to be extremely careful on the Classification type you use. If the material is coming from MB1C (Initial Stock Upload, possibly because you have uploaded the existing Stocks based on Cutover data), use ROP. If the updation is because of Production, you need to use Classification type: RMA - Receipt from manufacture". There is a rare possibility you may not see any entry for the manufactured quantity. More on this in Point No: 6
3. Also update the outward movements of finished goods ( IDH for Domestic Sales and IWE for Exports under Bond/ IDE for Exports against payment of Duty).
4. Extract the RG1 Register using T Code: J2I5. You must get a Green checkmark.
5.Print the RG1 Register using J2I6.
6. Sometimes you may not be able to view the manufactured material when you use RMA indicator in J1I5.(MIGO would have been used with movement type 101). Verify, if in Logistics-General --> Tax on Goods Movement --> India --> Business Transactions --> Incoming Excise Invoices --> Specify which movement types involve Excise Invoices, you have maintained 'RG1 Register' against Movement Types 131 and 132.
thanks
G. Lakshmipathi -
RG1 register entries during GR for Finished goods- in tarde business
Hello Experts,
I have to configure trading business scenario, in which my client externally procures the finished good from his vendor and sale the same one with added overheads. I have configured Sales order that reflects item cataory TAB so auto PR generetes during sales order. Base on PR i can do PO followed by MIGO. But during MIGO system omittes error as: Excise Invoice cannot be captured for RG1(Finished Goods) material now here i have to change the material type in j1id from finished good to raw material.Then system allows the transaction.
Please enlight the issue, am i doing the right step or it needs to be corrected, if so please help me out with, how can i handle excise related entries in this transaction (specially for RG1 updation during initial GR)
Thank you in advance..Hi,
When FG trading is involved, RG1 should not be updated. In trading there cannot be CENVAT credit. It is for manufacturing activity only.
You need to update RG23D so that you can pass the exact Excise duty to the customer.
The process is receive Goods, Capture excsie invoice and create excsie invoice from depot for sales to the customer.
Hope this helps.
Regards,
Sharan -
Authority check in infoset query for field with multiple entries
how can i perform the authority check in sq02 "at selection screen" for a multiple entry field
e.g. EKORG low 0001 - high 0005
or EKORG 0001, 0004, 0005
I already added the following statements
How the field for EKORG check must be filled
if EKORG is initial.
message 'Bitte Einkaufsorganisation wählen' TYPE 'E'.
endif.
AUTHORITY-CHECK OBJECT 'M_BEST_EKO'
ID 'ACTVT' FIELD '03'
ID 'EKORG' FIELD ?????.
IF sy-subrc = 4.
MESSAGE 'Keine Berechtigung für EKORG sy-subrc 4' TYPE 'E'.
ENDIF.hi,
which event do you use for your coding ?
it must be AT SELECTION-SCREEN
A. -
Initial Entry for Exciseable Material
Dear Experts ,
I want to make an initial stock upload for the excisable material throuch 561 mvt type.
WHAT SHOULD I PUT IN EXCISE TAB AT HEADER LEVEL ??
As there is no excise invoice for the initial stock & there is no Capturing of the Excise duty , CAN I USE NO EXCISE ENRTY FOR IT ??
pls reply
Regards
Anis
Edited by: anis bazmi on Jan 23, 2009 1:26 PMThe material is excisable , FERT / ROH / ERSA etc . the tab appears owing to J1Id details that are bieing maintained .
Suppose I do a GR with 561 for an ROH which is excisable (RG23A) , what shud i select in the Excise Tab at header??
1. Caprure & Post Excise
2. Captute only
3. Part 1 Entries Only
4. No excise entry.
Pls not i am loading lumpsum stock of the material as initial entry . There is no specifuc excise invoice associated with it . Further there is no duty that we take credit on ( RG23A part 2 is updated separately thro table entry ) .
So . Should I use NO EXCISE ENTRY???
OR
SHOULD I USE PART 1 ENTRIES ONLY ??
PLEASE NOTE : In any case ( part 1 only / No excise ) the RG23A part 1 register gets updated .
Pls clarify -
Initial entry stock (561) is valuated for non-valuated material
Hi Gurus,
I am doing initial entry of stock balance (MvT 561) for several non-valuated material. But when I check the table MSEG, I got status of "X" in the field MSEG-WERTU, which mean the material is valuated. The consequence is the value is updated, so I get inconsistency in stock (stock value is updated, table MBEW)
So how can I can get valuated when I done my first initial entry of stock balance for non-valuated material?
How can I trace, where did I go wrong?
I have checked these:
- I checked the material type, and it is properly configured (quantity update only).
- No changes have been made in the material type.
- No changes have been made in the material master data.
Please help, and thanks!Hi,
Please refer the below links....
MB1C 561 With no Financial accounting Document created
Valuated material to Non valuated material movement
I am getting accouting Document when I do GR
Regards,
Udaya. -
How to find out Query Statistics for the initial selections
Hi,
Is there a way to find out the statistics for the initial query execution(without any navigations)
/SantoshHi,
For knowing the statistics of the Query (Responce performence). U can find out with T-Code RSDDSTAT. The base rule is U have to execute the Query atleast once. If you the aggrigates are there at DATA TARGET level u can get a details view with TCode RSDDV.
Best Regards -
Hello,
Here's some setup:
/* This object contains a Map that ties a
* Company (key) to a String ID (value).
public class MyObject {
private Map company2id = new HashMap();
Example Data:
MyObject1 map:
Key[Company1], Value["ID1"]
Key[Company2], Value["ID2"]
MyObject2 map:
Key[Company1], Value["ID2"]
Key[Company2], Value["ID1"]
Now I want to query for the MyObject instance that has an entry in that
map
with a key of Company1 and a value of "ID1". How do I do that?
I can't query for a map that has a key of Company1 and a value of "ID1"
because that would return both MyObject instances. Instead, I have to
query
for the entry that has those values as both key and value. I hope that
sentence made sense.
So this doesn't work: "company2id.containsKey(myCompany) &&
company2id.containsValue(myId)"
What I need is something like:
"company2id.containsEntry(myCompany, myId)" or
"company2id.containsKey(myCompany) && entry.value == myId"
What would you recommend I do? Is there a custom extension I can use?
Use
SQL?
It seems like this might be a common need.
thanks,
daveWhat would you recommend I do? Is there a custom extension I can use?
Use
SQL?
It seems like this might be a common need.You can use a pure SQL query, SQL embedded in the JDOQL query (with our
ext:sql extension in 3.2b2, or ext:sqlVal/ext:sqlExp for 3.1.x), or
write your own JDOQL extension that emits the right SQL. Our reference
guide has a section on query extensions you'll want to check out.
I agree, though, that it's a fairly common need, and we'd like to
include a standard Map.get() extension in the future (it may even become
a standard supported method in JDO 2). -
Hi Sapers
In doing the Migo for initial entry of the stock via 561, do we have to do material master of all those material first and then Migo and if we do then how come the migo does not have material number column for the same only the material short text.I need expert elaboration and details on this topic please.Thanks in advance for sparing valuable timeHi Ahmed,
To Receive /To Enter Initial Stock Entry through MIGO transaction code:
Yes, first you must have a Material master record in the SAP system (material master is required data). you can do thru MM01 (all materials should be there in the production system in SAP)
then
you do the GR using MIGO to receive Initial stock balances into SAP system
for that
Do the Goods Receipt (R10 -Others) with movement type: 561,
Enter all the mandatory inputs like Document date &Posting date (in Header data)
and Plant, Storage Location, and Quantity (in Item data) & Flag Item OK button and
Check /Press(F5) document for correct inputs once, and then Post the GR....
with a document (a number is allocated automatically from 49 series by the system) GR is created..
And if you want you can see the Stock Overview (by pressing the Stock overview push button in GR Item data of GR Display in MIGO) then press Execute..
In GR Item Data : in Where Tab ---> Stock Overview push button press it,
you can see the Stock. ( in Plant /Storage location)
and subsequently Material and Accounting documents are created automatically..
to See that,
Select the last line with Cursor in the stock overview and goto Environment (Menu option) or Press Shift+F7 then you can see the Material document.
and Press CtrlShiftF11 or Red &blue color push button for Accounting document. ( where you will see the account posting for the goods receipt)
Hope, it clarifies your query,
reward if it solves,
Regards,
Srinu.K
Message was edited by:
sapsrin -
How to use dynamic query for this ??
hi , i am new to ABAP. i got a requirement to write dynamic query for the following code.
kindly address. two set of queries are same.but condition is different.
.IF p_psd EQ ' '.
*C--End of change DF 1232137- (Transport # :CIDK980530 )
*C--FETCH THE Deliverd Quantiity and Material Number
SELECT aufnr "ORDER number
wemng "Quantity of goods received for the order item
matnr "MATERIAL NUMBER
pwerk "PLANT
dauat "Order Type
FROM afpo
INTO TABLE t_afpo
WHERE aufnr IN s_order
AND wemng IN s_dqt
AND matnr IN s_matnr
AND pwerk IN s_plant
AND dauat = c_ro.
IF sy-subrc = 0.
SORT t_afpo BY aufnr matnr pwerk.
*C--FETCH THE OBJECT NUMBER
SELECT aufnr "ORDER number
objnr "Object number
FROM aufk
INTO TABLE t_aufk
FOR ALL ENTRIES IN t_afpo
WHERE aufnr = t_afpo-aufnr.
IF sy-subrc = 0.
SORT t_aufk BY aufnr objnr.
*C--FETCH THE Target Quantiity
SELECT aufnr "ORDER number
gamng "Total order quantity target quantity
FROM afko
INTO TABLE t_afko
FOR ALL ENTRIES IN t_afpo
WHERE aufnr = t_afpo-aufnr
AND gamng IN s_tqt.
IF sy-subrc = 0.
SORT t_afko BY aufnr .
ENDIF.
ENDIF.
ELSE.
MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
LEAVE LIST-PROCESSING.
ENDIF.
*C--Begin of change DF 1232137- (Transport # :CIDK980530 )
ENDIF.
IF p_psd EQ c_x.
SELECT aufnr "ORDER number
wemng "Quantity of goods received for the order item
matnr "MATERIAL NUMBER
pwerk "PLANT
dauat "Order Type
FROM afpo
INTO TABLE t_afpo
WHERE aufnr IN s_order
AND wemng > 0
AND matnr IN s_matnr
AND pwerk IN s_plant
AND dauat = c_ro.
if sy-subrc = 0.
*C--FETCH THE OBJECT NUMBER
IF NOT t_afpo[] IS INITIAL.
SORT t_afpo BY aufnr matnr pwerk.
SELECT aufnr "ORDER number
objnr "Object number
FROM aufk
INTO TABLE t_aufk
FOR ALL ENTRIES IN t_afpo
WHERE aufnr = t_afpo-aufnr.
IF sy-subrc = 0.
SORT t_afko BY aufnr gamng.
ELSE.
MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
LEAVE LIST-PROCESSING.
ENDIF.
ENDIF.
IF NOT t_afpo[] IS INITIAL.
*C--FETCH THE Target Quantiity
SELECT aufnr "ORDER number
gamng "Total order quantity target quantity
FROM afko
INTO TABLE t_afko
FOR ALL ENTRIES IN t_afpo
WHERE aufnr = t_afpo-aufnr
AND gamng <> t_afpo-wemng .
IF sy-subrc = 0.
SORT t_afko BY aufnr gamng.
ELSE.
MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
LEAVE LIST-PROCESSING.
ENDIF.
ENDIF.
ELSE.
MESSAGE text-e03 TYPE c_s. " No data for the selection criteria
LEAVE LIST-PROCESSING.
ENDIF.
Edited by: Thomas Zloch on Jan 5, 2011 1:30 PM please use code tagsHi friend,
Try using MACRO and dynamic WHERE condition.
Group simialr Select statements under a Macro.
Build a dynamic where by checking conditions
Call macro passing dynamic where condition.
TABLES afpo.
DATA: str TYPE string.
*Macro definition
DEFINE operation.
select single *
from afpo into afpo
where (&1). " Dynamic condition
END-OF-DEFINITION.
*Build dynamic WHERE by checking some conditions
*If conditon
CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0001''' INTO str SEPARATED BY space.
*Else
CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0002''' INTO str SEPARATED BY space.
*Endif.
*Call Macro passing dynamic WHERE condition
operation str. -
Create dynamic report or query for piece count
Hi abaper's
This is a very straight forward requirement. so please give me code
First you have to get the corresponding plant from table T320 for the given warehouse numbers in the selection screen.
1. Get the sum of order qty of sales orders from the sales order tables for the given warehouse(Plant), distribution channel and the give date range.
2. Get the confirmed transfer orders qty from the TO master table where TO confirmation date is in the given date range and WH number.
3. Get the total PGIed qty from the delivery master table where PGI'ed date in the given date range, shipping point is in the corresponding plant of the WH and for the given distribution channel.
As you are going to use the major tables please try to write the select commands effectively to avoid further performance issues.How to improve the performance fo this code.....this very urgent.
& Issue Number : 22199 &
& Programmer : Anjaneyulu.Pabba &
& Transport Number : D01K962471 &
& Date of Creation : 19/03/2008 &
& Description : Dynamic report or query for piece count &
& Requested By : Parvati.Polisetty &
REPORT ZR_SD_PIECE_COUNT_ALV no standard page heading
line-size 255
line-count 65.
TABLES DECLARATION
*TABLES: T320, "Assignment IM Storage Location to WM Warehouse Number
VBAK, "Sales Document: Header Data
VBAP, "Sales Document: Item Data
TVKOV, "Org. Unit: Distribution Channels per Sales Organization
LTAK, "WM transfer order header
LTAP, "Transfer order item
LIKP, "SD Document: Delivery Header Data
LIPS. "SD document: Delivery: Item data
TYPE-POOLS DECLARATION
TYPE-POOLS: SLIS .
Internal Table Declaration
DATA : BEGIN OF TY_T320,
WERKS TYPE WERKS_D,
LGNUM TYPE LGNUM,
END OF TY_T320.
DATA : BEGIN OF TY_VBAK,
VBELN TYPE VBELN_VA,
VTWEG TYPE VTWEG,
WERKS TYPE WERKS_D,
KWMENG TYPE KWMENG,
VSTEL TYPE VSTEL,
END OF TY_VBAK.
DATA : BEGIN OF TY_LTAK,
LGNUM TYPE LGNUM,
TANUM TYPE TANUM,
VISTA TYPE LTAP_VISTA,
END OF TY_LTAK.
DATA : BEGIN OF TY_LIKP,
VBELN TYPE VBELN_VL,
WERKS TYPE WERKS_D,
LFIMG TYPE LFIMG,
END OF TY_LIKP.
DATA : BEGIN OF TY_ITAB ,
LGNUM TYPE LGNUM, "Warehouse Number / Warehouse Complex
WERKS TYPE WERKS_D, "Plant
VBELN TYPE VBELN_VA, "Sales Document
VTWEG TYPE VTWEG, "Distribution Channel
KWMENG TYPE KWMENG, "Cumulative order quantity in sales units
TANUM TYPE TANUM , "Transfer Order Number
VISTA TYPE LTAP_VISTA, "Source actual quantity in alternative
unit of measure
LFIMG TYPE LFIMG, "Actual quantity delivered (in sales units)
END OF TY_ITAB .
DATA: T_T320 LIKE STANDARD TABLE OF TY_T320 INITIAL SIZE 0 WITH HEADER
LINE,
T_VBAK LIKE STANDARD TABLE OF TY_VBAK INITIAL SIZE 0 .
DATA: T_LTAK LIKE STANDARD TABLE OF TY_LTAK INITIAL SIZE 0 WITH HEADER
LINE.
DATA :T_LIKP LIKE STANDARD TABLE OF TY_LIKP INITIAL SIZE 0 WITH HEADER
LINE.
DATA:T_ITAB LIKE STANDARD TABLE OF TY_ITAB INITIAL SIZE 0 WITH HEADER
LINE .
*& Fieldcatalog Declaration
DATA : T_FCAT TYPE SLIS_T_FIELDCAT_ALV,
W_FCAT TYPE SLIS_FIELDCAT_ALV.
DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
********Global Data Declaration***
DATA :G_REPID LIKE SY-REPID,
G_EXIT(1) TYPE C,
GX_VARIANT LIKE DISVARIANT,
X_SAVE, "for Parameter I_SAVE
GS_VARIANT TYPE DISVARIANT. "for parameter IS_VARIANT
data: g_lgnum type t320-lgnum,
g_vtweg type vbak-vtweg,
g_erdat type vbak-erdat.
*& Selection-Screen
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_LGNUM FOR g_lgnum, "Warehouse Number
S_VTWEG FOR g_vtweg, "Distribution Channel
S_ERDAT FOR g_erdat ."Date on which the record was
**********"created
SELECTION-SCREEN END OF BLOCK B1 .
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
PARAMETER: P_VARI LIKE DISVARIANT-VARIANT. "Layout
SELECTION-SCREEN END OF BLOCK B2.
*& INITIALIZATION EVENT
INITIALIZATION.
CLEAR GS_VARIANT.
'gs_variant' must at least contain the report-id to allow
saving a variant.
G_REPID = SY-REPID.
§ 2.At least field REPORT of this structure has to be filled!
GS_VARIANT-REPORT = G_REPID.
§ 3.Determine saving options.
X_SAVE = 'A'. "The user may save all types of variants
*******Validating selection-screen values**********************
getting F4 value for display variant field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
PERFORM F4_FOR_VARIANT.
****validation of F4 value of display variant
AT SELECTION-SCREEN.
PERFORM PAI_OF_SELECTION_SCREEN.
*& Start-Of-Selection
START-OF-SELECTION.
*****Subroutine to select Plant from T320
PERFORM FIND_PLANT .
*****Subroutine to select Order Quantity from VBAP
PERFORM ORDER_QUANTITY .
*****Subroutine to select Transfer Order Quantity from LTAK and LTAP
PERFORM TRANSFER_ORDER_QUANTITY.
*****Subroutine to select TDelivery Quantity from LIKP and LIPS
PERFORM DELIVERY_QUANTITY.
*& End-Of-Selection
END-OF-SELECTION.
*****Subroutine for Fieldcatalog
PERFORM FIELDCATALOG .
*****Subroutine for Final Output
PERFORM DISPLAY_OUTPUT .
*& Subroutine Implementaion
*& Form FIND_PLANT
text
--> p1 text
<-- p2 text
FORM FIND_PLANT .
SELECT WERKS
LGNUM
FROM T320
INTO TABLE T_T320
WHERE LGNUM IN S_LGNUM.
ENDFORM. " FIND_PLANT
*& Form order_quantity
text
--> p1 text
<-- p2 text
FORM ORDER_QUANTITY .
SELECT VK~VBELN
VK~VTWEG
VP~WERKS
VP~KWMENG
VP~VSTEL
INTO TABLE T_VBAK FROM VBAK AS VK
INNER JOIN VBAP AS VP
ON VKVBELN = VPVBELN
FOR ALL ENTRIES IN T_T320
WHERE VK~VTWEG IN S_VTWEG
AND VK~ERDAT IN S_ERDAT
AND VP~WERKS = T_T320-WERKS.
ENDFORM. " order_quantity
*& Form Transfer_order_quantity
text
--> p1 text
<-- p2 text
FORM TRANSFER_ORDER_QUANTITY .
SELECT LK~LGNUM
LK~TANUM
LP~VISTA
INTO TABLE T_LTAK FROM LTAK AS LK
INNER JOIN LTAP AS LP
ON LKLGNUM = LPLGNUM
WHERE LK~KQUIT = 'X'
AND LK~BDATU IN S_ERDAT
AND LK~LGNUM IN S_LGNUM.
ENDFORM. " Transfer_order_quantity
*& Form Delivery_QUANTITY
text
--> p1 text
<-- p2 text
FORM DELIVERY_QUANTITY .
SELECT VBELN WERKS LFIMG FROM LIPS
INTO TABLE T_LIKP
FOR ALL ENTRIES IN T_T320
WHERE WERKS = T_T320-WERKS
AND ERDAT IN S_ERDAT
AND VTWEG IN S_VTWEG.
ENDFORM. " Delivery_QUANTITY
*& Form fieldcatalog
text
--> p1 text
<-- p2 text
FORM FIELDCATALOG .
W_FCAT-COL_POS = '1' .
W_FCAT-FIELDNAME = 'LGNUM' .
W_FCAT-REF_TABNAME = 'T320'.
W_FCAT-REF_FIELDNAME = 'LGNUM' .
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '2' .
W_FCAT-FIELDNAME = 'VTWEG' .
W_FCAT-REF_TABNAME = 'VBAK'.
W_FCAT-REF_FIELDNAME = 'VTWEG' .
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '3' .
W_FCAT-FIELDNAME = 'KWMENG' .
W_FCAT-REF_TABNAME = 'VBAP'.
W_FCAT-REF_FIELDNAME = 'KWMENG' .
*w_fcat-seltext_m = '# of Orders'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '4' .
W_FCAT-FIELDNAME = 'VISTA' .
W_FCAT-REF_TABNAME = 'LTAP'.
W_FCAT-REF_FIELDNAME = 'VISTA' .
*w_fcat-seltext_m = '# of Pcs Picked'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '5' .
W_FCAT-FIELDNAME = 'LFIMG' .
W_FCAT-REF_TABNAME = 'LIPS'.
W_FCAT-REF_FIELDNAME = 'LFIMG' .
*w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '6' .
W_FCAT-FIELDNAME = 'TANUM' .
W_FCAT-REF_TABNAME = 'LTAK'.
W_FCAT-REF_FIELDNAME = 'TANUM' .
**w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '7' .
W_FCAT-FIELDNAME = 'WERKS' .
W_FCAT-REF_TABNAME = 'T320'.
W_FCAT-REF_FIELDNAME = 'WERKS' .
**w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
ENDFORM. " fieldcatalog
*& Form display_output
text
--> p1 text
<-- p2 text
FORM DISPLAY_OUTPUT .
LOOP AT T_T320 INTO TY_T320.
TY_ITAB-WERKS = TY_T320-WERKS.
TY_ITAB-LGNUM = TY_T320-LGNUM.
READ TABLE T_VBAK INTO TY_VBAK WITH KEY WERKS = TY_T320-WERKS.
IF SY-SUBRC = 0.
TY_ITAB-VBELN = TY_VBAK-VBELN.
TY_ITAB-VTWEG = TY_VBAK-VTWEG.
TY_ITAB-KWMENG = TY_VBAK-KWMENG + ty_itab-kwmeng.
ENDIF.
READ TABLE T_LTAK INTO TY_LTAK WITH KEY LGNUM = TY_T320-LGNUM.
IF SY-SUBRC = 0.
TY_ITAB-TANUM = TY_LTAK-TANUM.
TY_ITAB-VISTA = TY_LTAK-VISTA + ty_itab-vista.
ENDIF.
READ TABLE T_LIKP INTO TY_LIKP WITH KEY WERKS = TY_T320-WERKS.
IF SY-SUBRC = 0.
TY_ITAB-LFIMG = TY_LIKP-LFIMG + ty_itab-lfimg.
ENDIF.
APPEND TY_ITAB TO T_ITAB.
ENDLOOP.
Function Module for Displaying Final Output ********
W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
IS_LAYOUT = W_LAYOUT
IT_FIELDCAT = T_FCAT[]
TABLES
T_OUTTAB = T_ITAB.
ENDFORM. " display_output
*& Form f4_for_variant
text
--> p1 text
<-- p2 text
FORM F4_FOR_VARIANT .
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = GS_VARIANT
I_SAVE = X_SAVE
IMPORTING
E_EXIT = G_EXIT
ES_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 2.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF G_EXIT = SPACE.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDIF.
ENDFORM. " f4_for_variant
*& Form pai_of_selection_screen
text
--> p1 text
<-- p2 text
FORM PAI_OF_SELECTION_SCREEN .
IF NOT P_VARI IS INITIAL.
MOVE GS_VARIANT TO GX_VARIANT.
MOVE P_VARI TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = X_SAVE
CHANGING
CS_VARIANT = GX_VARIANT.
GS_VARIANT = GX_VARIANT.
ELSE.
PERFORM VARIANT_INIT.
ENDIF.
ENDFORM. " pai_of_selection_screen
*& Form variant_init
text
--> p1 text
<-- p2 text
FORM VARIANT_INIT .
CLEAR GS_VARIANT.
GS_VARIANT-REPORT = G_REPID.
ENDFORM. " variant_init -
Applying functions to database fields when querying for a form field
Hi,
how is it possible to apply trim() or another method to the content of a database field when a query is initiated?
The actual problem is that there are entries in the database which are entailed by a blank and, because the user is not aware of this fact, he cannot be forced to add a blank or % to the form field he is querying.
Does anyone have an idea how to solve this issue?
Thank you very much in advance.
Message was edited by:
user492074
nullThe where clause is built that way:
WHERE (ETN.trim(ETN_PLZ)=:1)
The error message:
ORA-00904: "ETN"."TRIM": invalid identifier
Actually, I guess that the trim statements should surround ETN.ETN_PLZ but that is obviously not the case.
Apart from that I did not enter 1 as the value to query for.
Nevertheless, thank you for your help. Forms version is 10.1.2 by the way. -
Initial entries in balance sheet
Hi experts
Wihs you happy new year 2009
I have one query like.Client go live was feb 2008 ok. at the time of go live they prepared FSV and assigned some g/l accounts.
i have seen in F.01 some g/l account separetly with out any node means they did not assigned thouse g/l to nodes ok , i done that process it ok
there some g/l are the like initial entry raw material , genaral clearing account
how can i remove thouse entries. i think thouse entries are data uploading entries
get points
Thanks
GeetaHi Rashmi.......
I would suggest you to again go for Financial Report Template for new template of P&L.
Then try to run. If same thing happens then please check Company Details where in Basic Initialization first option of credit balance is tick or unticked?
It should be ticked........
Regards,
Rahul -
Initial entry of stock (561) using MB1C
Hi all
Can someone help me understand how to create initial entry of stock using references.
I see there are options to create "To purchase order", "To Reservation", etc. Do they mean that we can create initial entry with reference to purchase order?
Also there is option to create with reference to Material document. What kind of Material documents can be used as reference?
Thanks in advance
Regards
MuiHi,
All this options are for other goods receipts means without reference to purchase order.
otions are To Reservation, To Order.This order means not Purchase order i.e Production Order or Internal Order.
Initial entry are used to Upload the stock at initial stage i.e at the time of Cutover strategy,we uploading the initial stock which is present at plant at SAP system and after that only we process the normal transaction like PO, MIGO..
Regards
Sanjay L
Maybe you are looking for
-
I drag and drop videos to iTunes but its not working. Myvideo is already in mp4 format. The video is not appearing in iTunes
-
Videora - The Audio & Video Loose Synch throughout movie -
Hello! Videora seems to work great! However, I have converted several movies and halfway throughout the film, it becomes VERY obvious that the audio and video are not synched up correctly. Does anyone know what the problem is? The audio and video are
-
Computer speakers for my iPad 2?
Can I connect my Bose multimedia speakers to my iPad 2? The jack on my Bose speakers seems the same as my earphones.
-
Can i use my mac to find my iphone?
can i use my mac to find my iphone?
-
Infinity installed an hour ago - only 2mb showing ...
Infinity was installed an hour or so ago. I've gone to do a check on speedtester.net and thinkbroadband.com Both are showing my speed as 2mb - I'm connected via a gigabit LAN. Perhaps some odd throttling going on - I've not downloaded anything yet !