MM help REQ??
Hi
I need to change the O/P format for the TCode-ME56,SAP standard O/P is of 3-liner,I need to change it to 1-line.I had never done anything like this,I need some help?
Plz if any one has idea to change the O/P using badi/exits plz tell me,even I had not workwed any time with badi/exits.so i need some help?
I had found thet,all the write staments/internal table dec. all are done in enhanceemnts inn this tcode,so its quite diff gfor me to understand frm where to start..plz help me in this regard.
regds.
Hi Vipin,
Check table EBAN for purchase requistion. in this table, if EBAKZ field is set to X. It's means the purchase requistion is closed against purchase order.
Besides, ask your functional guy which fields are require for that report.
Hope it will solve your problem.
Regards
Krishnendu
Similar Messages
-
Hi
Can any one tell me to use 2 BDC simultaneously at a time in 1 single report.
I had an req like to make a BDC for MIGO & same time after its done the BDC for Tcode J1IEX has to be called,so can any one tell me some info for it.
As its a reprot programing,I need to disply the final data like GRN No. after MIGO had been done & Exc Invoice No after J1IEX had been done on a single page in an ALV form .
Please help me in this,I had made a reprot for it,but I am not able to make 2 BDC working at the same time.
So plz tell me how to do ??
RegdsHi,
I had done in my previous project, that was production order creation, conformation and one more. You can check is there any BAPI's exist for you to update the data.
Rgds,
Bujji -
Urgent help req : work item id not getting passed in the method
Hi ,
I have created a subtype zcats of business object CATS and delegated it .
I have created a new method Approve1 ( with attributes SYNCRONUS & DIALOG ) in zcats which is similar in coding to Approve method of CATS ( DIALOG) .
I have include the method Approve1 of business object zcats in a standard task .
The problem is that when the eorkflow gets triggered , the workitem id is not getting passed in the method APProve1 of zcats.
Can someone please help me with this .
Points would surely be awarded .BEGIN_METHOD APPROVE1 CHANGING CONTAINER.
DATA: WORKITEMID_IMP LIKE OBJECT-KEY-ITEMID.
DATA: WI_CHCKWI LIKE SWWWIHEAD-WI_ID.
DATA: WORKITEM TYPE SWC_OBJECT.
<u> WORKITEMID_IMP = OBJECT-KEY-ITEMID</u>.
SWC_GET_ELEMENT CONTAINER '_WORKITEM' WORKITEM.
SWC_GET_PROPERTY WORKITEM 'WorkitemReference' WI_CHCKWI.
IF SY-SUBRC EQ 0 AND NOT WI_CHCKWI IS INITIAL.
WORKITEMID_IMP = WI_CHCKWI.
ENDIF.
CALL FUNCTION 'CATS_WF_APPROVAL'
EXPORTING
WORKITEMID_IMP = WORKITEMID_IMP
TABLES
CONT_IMP = CONTAINER.
END_METHOD.
hi ,
the above is the code in the method .
At the first step of execution underlined above , the work item id is appearing blank .
I think that the value is not passed to the container , but i am not sure og how to pass data to this conatiner -
Issue in WAD Dropdown box functionality. Help req.
Hello,
Issue in WAD and Bex.
I have two dropdown boxes in the web templates, for ex cost center and controlling area.
DDBox1: Controlling Area.
DDBox2: Cost center.
Step1: I am selecting Controlling area 4002
Step2: I am selecting cost center 691
Step3: Now I want to change the cost center to 4001.
When I change the cost center to 4001 in Dropdown box1
the filter(Selected value 691) set in the Dropdown 2(for cost center) is not removed or reset,
so that it shows no applicable data found even though there is data for the controlling Area 4001(DDBox2)
Some one please guide me to solve this
Thanks in advance!
Kind regards
RaMHello,
Some one please help me on this topic.
If any further informations required i can give .
Thanks
RaM -
Urgent Help Req.: Exception=ORABPEL-11162 Error while reading native data
Hi All,
I am getting below error: Exception=ORABPEL-11162
Error while reading native data.
[Line=6, Col=7|http://forums.oracle.com/forums/] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
Ensure that there is enough data from the specified position in the input.
Let me also give you the brief scenario of what I am trying to achieve.
INTERFACE FUNCTIONING:_
I have an interface which reads the records in a file in a chunk through ChunkRead adapter and and after one successful reading if chunk it calls the DB adapter to insert the records in the table.
Now these records are committed and next chunk is read and the process goes on till all the records are read.
After this the API is called which does the processing of these records.
Inserting records in the DB is a XA transaction which means if anything goes wrong while inserting the data, the records which are added earlier are rolled back.
ISSUE:_
Now the issue comes when I do the negative testing. Since my file is based on fixed length schema., I change the length of last record from 15 to 13. (say total are 10 records)
Now what happens is when chunkread tries to read the record of 15 length it gets only 13 characters and hence ignores the records.
But the chunkread reads all other 9 records correctly and sends this to DB adapter which now inserts them correctly in the DB.
But being a global transaction I want that if any record is missing from DB in comparison to those in file then whole transaction should roll back.
So I am unable to make this whole process as global transaction. This is because the ChunkRead adapter inspite of detecting the error doesn’t throw it back.
Moreover if this problem occurs in say next chunk then also I am unable to find out how to rollback the whole transaction. Because the first chunk was correct.
So basically two concerns are there:+
How to detect that chunkread adapter has missed one record?+
Secondly, If it’s detected then how should I rollback the transaction that caused earlier records to enter into database?+
Please let me know if anyone has faced this issue earlyer and how it got resolved. Any pointers regarding this would be of great help.
Also attached is the chunkread log for reference.
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: FileRejector::rejectTextualMessage errList=[oracle.tip.pc.services.translation.xlators.nxsd.ErrorList@a5213b]</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: FileRejector::rejectTextualMessage badCount=[1]</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2008-10-06T09:23:58.467-04:00</TSTZ_ORIGINATING>
<COMPONENT_ID>tip</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>usmlrh01.xyz.com</HOST_ID>
<HOST_NWADDR>192.168.245.39</HOST_NWADDR>
<MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
<THREAD_ID>57</THREAD_ID>
<USER_ID>orasoa</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>JCA: Rejecting message fileName=/rh01/s01/n01/Distributions/B2B/Gentran/In/855/Test.txt, startLine=4, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11162
Error while reading native data.
[Line=6, Col=7] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
Ensure that there is enough data from the specified position in the input.
}</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
PFB the version details :
SOA suite version : 10.1.3.3.1 and JDEV : 10.1.3.3
Edited by: SOA Team on Oct 6, 2008 10:48 PMJust a thought, you could set the terminator for the last field as {eol} instead of length, this means that it should read the last field regardless of the length.
Depending on the logic of Db adapter the error could be traped due to incorrect length.
If the file starts each row with a constant(s), e.g. 01 then you can terminate the previous line on that, this is the better option but relys on the file format.
The other option is a little thing call compensation, ouch. Basically this allows you to back out commited rows but you have to provide all the logic, it is generally something people avoid because of the complexity.
cheers
James -
Help req in Seeburger SFTP adapter
Hi All,
I have a scenario where i need to send a file to SFTP server. I used Seeburger SFTP adapter to connect to SFTP.
This is a pass through interface and i havent used any party at the confiuration( normal configuration without party)
In SFTP channel @ modules i configured it as:
localejbs/Seeburger/solution/<solutionName> Local Enterprise Bean solutionid
localejbs/ModuleProcessorExitBean Local Enterprise Bean exit
Module Key Parameter Name Parameter Value
exit JNDIName deployedAdapters/SeeXISFTP/shareable/SeeXISFTP
When i test the scenario i facing the following error in the receiver communication channel( SFTp Adapter) @ RWB
Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of ModuleProcessorExitB ean..
Can someone please help how to resolve this problem.
Thanks,
SivaHi,
can you share how you solved this issue? i am having the same issue with the sftp and receiving the same error.
Thanks in advance. -
DEV 6.0 team : Help req while running forms on the WEB
I am using Windows NT 4.0 with Service pack 3 running Oracle8
8.0.5 with Apps Server 4.0.7 and Dev6.0. I have been able to run
Forms on the web and with Jinitiator and with out Jinitiator but
there are a few problems
1 ) The Tigger " When Mouse Click" does not fires on the web for
a display item.
2) when i set the CLASSPATH=E:\orant\forms60\java for forms the
tree in OAS 4.0.7 stops showing and if i remove it from there
then i am not able to run the forms for web through the forms
designer
3) the performnce is very slow how to improve the performance on
Web with jinitiator.
an early response would be appreciated
nullmobeen (guest) wrote:
: I am using Windows NT 4.0 with Service pack 3 running Oracle8
: 8.0.5 with Apps Server 4.0.7 and Dev6.0. I have been able to
run
: Forms on the web and with Jinitiator and with out Jinitiator
but
: there are a few problems
: 1 ) The Tigger " When Mouse Click" does not fires on the web
for
: a display item.
: 2) when i set the CLASSPATH=E:\orant\forms60\java for forms
the
: tree in OAS 4.0.7 stops showing and if i remove it from there
: then i am not able to run the forms for web through the forms
: designer
: 3) the performnce is very slow how to improve the performance
on
: Web with jinitiator.
: an early response would be appreciated
I can only speculate on some of your issues, but maybe they
might give you some insight on possible alternatives.
Mouse-Click on Display Item
The display item does not, by definition allow modification.
Have you tried changing the item to text and then disabling the
INSERT and UPDATE properties to NO? I have tried using display
items in the past, resulting in a grayed-out box on the web. To
get around this, I made the above changes and created a mouse
trigger to jump to another field when someone tried to mouse-
click on it.
Changing CLASSPATH on OAS 4.0.7
I had the same results. The OAS installation sets the CLASSPATH
to what it needs and changing it has the results you describe.
I am curious, however, are you able to view the form from the
Developer Forms Designer using the other CLASSPATH. I have not
been able to use this feature at all. I read somewhere that
this functionality is not available in the beta version. I
would appreciate any information that you can share.
Jinitiator Performance
Assuming that you have already tried cache settings and short of
the users having faster machines with more memory, faster web
access, etc. I don't think there is much we can do but wait for
Oracle and Sun to make enhancements.
I have had some success with using IE 5.0 (beta) directly
without the Jinitiator. My web applications load and run a
whole lot faster using the same configuration that you describe.
It might be worth another look!
Hope this helps.
Michael Shannon
[email protected]
null -
MM stock vaule help req?
hi
I need to develop a reprot for the stock for a material/plant/month.
The selction-screen:1.material,2.plant,3.purch grp,4.month
output:PLANT,MATERIAL,PURCH GRP,OPENING BAL(Total Stock avaible/month),ISUUE STOCK VALUE(/month),CLOSING BLANCE(Total Stock availabele/month).
This reprot has to display the monthly data for the material's stock available & issued per month.
I don't hv much knowlegde for stock related tables & fileds.
can any one help me in this regards,to get th data frm whcih tables,filed..so that i can start the reprot.i had seen the TCODE:MC.9,got some info frm it,but still not clr very much.
PLZ reply accordingly.
rgds
VipinHi!
The actual stock can be read from table MARD.
For historical data, you can use MARDH.
The purchasing group and the othere material master data stuff can be read from MARA, or MARC tables.
Regards
Tamá -
Help Req: Refreshing Screen
Hi Folks,
Could anyone from amongst you let me know if we can refresh contents of screen after a stipulated time. e.g. after every 5 minutes i need to refresh a screen.
Please let me know if it is possible and if so could you also send me some demo code so that i can understand what is done in order to achieve it.
Regards,
ImHi,
Check this link:
http://www.sap-img.com/fu014.htm
This ABAP program will automatically update a report every 30 seconds while it is on the screen
at the same time keeping the GUI screen buttons active.
Reward if it helps.
Thanks,
Swati -
**This solution contains no resources scoped for a web application and cannot be deployed to a particular web application.**
That is the error I get when I try to deploy the site I get this error. I have tried adding a element file but I am not too sure if I have done it correct. Either way no matter what and how I try to add this to my server when I do the following
commands it returns me this error.
Commands
Add the feature:
Add-SPSolution c:\sp2010\srg.wsp
Install:
**Install-spsolution -identity srg.wsp -webapplication http://my.kpl.gov <http://my.kpl.gov/> -gacdeployment** -THIS IS THE COMMANDS THAT CREATES THE ERROR-Hi PsychoticcWMU,
Thank you for supporting MSDN forum.
I would like to move this question to a more approximate forum for a better support.
Thanks for your understanding.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later. -
Help req : alv grid with multiple row selection
Hi all sap gurus,
i have a alv list display program , in which i can select the o/p rows(multiple rows)
and perform some actiom based on some icons .
now i have to convert this in to grid display
this is initial code i.e for list
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE ztest.
DATA : checkbox type c.
DATA : END OF itab.
s_layout-box_fieldname = 'CHECKBOX'.
ty_events-name = slis_ev_top_of_page.
ty_events-form = 'TOP_OF_PAGE'.
APPEND ty_events TO it_events.
ALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_internal_tabname = 'ITAB'
i_inclname = v_repid
CHANGING
ct_fieldcat = build_fieldcatalog.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = v_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'ITAB'
is_layout = s_layout
it_fieldcat = build_fieldcatalog[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = it_events
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
IF ucomm = 'DELE'.
LOOP AT iTAB WHERE CHECKbox = 'X' .
ENDLOOP.
MODIFY ztEST FROM TABLE itAB.
ENDIF.
selfield-refresh = 'X'.
ENDFORM.
NOW I HAVE A LIST O/P WHERE I CAN SELECT THE BOX AND CLICK DELETE ICON.
NOW I WANT TO CHANGE TO GRID, SO I KEPT EVERYTHING SAMRE AND I CHANGED " LIST" TO "GRID"
NOW TWO THINGS HAPPEND
1) I SEE A EMPTY COLUMN IN THE O/P , I GUESS THATS BECAUSE CHECKBOSX IN INTERNAL TABLE , SO I REMOVED IT
SO THIS MADE ME TO REMOVE
IF ucomm = 'DELE'.
LOOP AT iTAB." WHERE CHECKbox = 'X' .------PROBLEM
ENDLOOP.
MODIFY ztEST FROM TABLE itAB.
ENDIF.
selfield-refresh = 'X'.
NOW I DON'T SEE THE EMPTY COLUMN , BUT NOW PROBLEM IS I CANNNOT DISTINGUISH AS TO WHICH IS SELECTED AND AT ANY POINT OF TIME I CANSELECT ONLY ROW.
ALL I WANT IS
1) I WANT TO SELECT MULTIPLE ROWS AND SHOULD BE ABLE TO KNOW WHICH ROWS WERE SELECTED IN THE O/P SCREEN.
IN THE LIST DISPLAY I HAD CHECKBOX = 'X' FOR ALL THE ROWS THAT WERE SELECTED , I WANT THE SIMILAR THING in grid display
LET ME KNOW whether this can be done without USING 00 LANG.
thanksHi Swati,
Below code might help full for you. Description: is It selects multiple rows from ALV and display it on the next ALV.
*************************Reward Point If help full********************************************
*& Report z7cc_alv_oops_show_next_alv *
*& DEVELOPERS NAME : CHIDANAND CHAUHAN
*& DATE: SATURDAY 08-07-2006
*& DESCRIPTION: TO CREATE AN OBJECT ORIENTED ALV
REPORT z7cc_alv_oops_show_next_alv MESSAGE-ID z5hs .
DATA : BEGIN OF it_mara OCCURS 0,
mark TYPE flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara.
DATA : BEGIN OF it_mara1 OCCURS 0,
* mark type flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara1.
DATA : BEGIN OF it_mara2 OCCURS 0,
* mark type flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara2.
DATA : t_fieldcat TYPE lvc_t_fcat,
t_fieldcat1 TYPE lvc_t_fcat,
s_fieldcat LIKE LINE OF t_fieldcat.
DATA : s_layout TYPE lvc_s_layo.
DATA : control TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid.
DATA: BEGIN OF wa ,
mark TYPE flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF wa.
* CLASS lcl_events_box DEFINITION
CLASS lcl_events_box DEFINITION.
PUBLIC SECTION.
METHODS :
*Handler_Data_Changed for event Data_Changed of cl_gui_alv_grid
*imporTing er_data_changed,
handler_user_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm,
handler_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_events_box DEFINITION
* CLASS lcl_events_box IMPLEMENTATION
CLASS lcl_events_box IMPLEMENTATION.
* method to handle the user command.
METHOD handler_user_command.
PERFORM form_usercommand CHANGING e_ucomm.
ENDMETHOD. "Handler_user_command
*& Mehod to handle the toolbar.
METHOD handler_toolbar.
PERFORM form_toolbar CHANGING e_object e_interactive
e_object->mt_toolbar.
ENDMETHOD. "Handler_ToolBar
ENDCLASS. "lcl_events_box IMPLEMENTATION
START-OF-SELECTION.
DATA : w_events TYPE REF TO lcl_events_box.
SELECT matnr mtart meins FROM mara INTO CORRESPONDING FIELDS OF TABLE
it_mara.
CALL SCREEN 100.
*& Module pbo_module OUTPUT
* text
MODULE pbo_module OUTPUT.
IF grid IS INITIAL.
CREATE OBJECT control
EXPORTING
container_name = 'CUST_CTRL'.
CREATE OBJECT grid
EXPORTING
i_parent = control.
PERFORM build_catalog.
PERFORM build_catalog1.
PERFORM build_layout.
CALL METHOD grid->set_table_for_first_display
EXPORTING
is_layout = s_layout
CHANGING
it_outtab = it_mara[]
it_fieldcatalog = t_fieldcat.
CREATE OBJECT w_events.
SET HANDLER : w_events->handler_toolbar FOR grid,
w_events->handler_user_command FOR grid.
CALL METHOD grid->set_toolbar_interactive.
ELSE.
CALL METHOD grid->refresh_table_display.
ENDIF.
ENDMODULE. " pbo_module OUTPUT
*& Form BUILD_CATALOG
FORM build_catalog .
s_fieldcat-col_pos = '1'.
s_fieldcat-fieldname = 'MARK'.
s_fieldcat-checkbox = 'X'.
s_fieldcat-edit = 'X'.
APPEND s_fieldcat TO t_fieldcat.
CLEAR s_fieldcat.
s_fieldcat-col_pos = '2'.
s_fieldcat-fieldname = 'MATNR'.
s_fieldcat-scrtext_m = 'MATERIAL'.
APPEND s_fieldcat TO t_fieldcat.
s_fieldcat-col_pos = '3'.
s_fieldcat-fieldname = 'MTART'.
s_fieldcat-scrtext_m = 'MATERL TYPE'.
APPEND s_fieldcat TO t_fieldcat.
s_fieldcat-col_pos = '4'.
s_fieldcat-fieldname = 'MEINS'.
s_fieldcat-scrtext_m = 'UOM'.
APPEND s_fieldcat TO t_fieldcat.
ENDFORM. " BUILD_CATALOG
*& Form BUILD_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM build_layout .
s_layout-zebra = 'X'.
* S_LAYOUT-CWIDTH_OPT = 'X'.
s_layout-grid_title = 'Material Details'.
ENDFORM. "BUILD_LAYOUT
" BUILD_LAYOUT////////////////////////////////////
" USER_COMMAND_0100 INPUT
*& Form FORM_USERCOMMAND
* text
* <--P_E_UCOMM text
FORM form_usercommand CHANGING p_e_ucomm.
CASE p_e_ucomm.
WHEN 'INT1'.
DO.
READ TABLE it_mara INDEX sy-index TRANSPORTING mark matnr.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF it_mara-mark = 'X'.
READ TABLE it_mara INTO wa TRANSPORTING matnr mtart meins .
MOVE-CORRESPONDING wa TO it_mara1.
READ TABLE it_mara1 TRANSPORTING matnr mtart meins .
MOVE-CORRESPONDING it_mara1 TO it_mara2.
APPEND it_mara2.
CALL METHOD grid->set_table_for_first_display
EXPORTING
is_layout = s_layout
CHANGING
it_outtab = it_mara2[]
it_fieldcatalog = t_fieldcat1.
* SET PARAMETER ID 'MAT' FIELD IT_MARA-MATNR.
* CALL TRANSACTION 'MM02'.
ENDIF.
* ENDIF.
ENDDO.
ENDCASE.
ENDFORM. " FORM_USERCOMMAND
*& Form FORM_TOOLBAR
* text
* <--P_E_OBJECT text
* <--P_E_INTERACTIVE text
* <--P_E_OBJECT_>MT_TOOLBAR text
FORM form_toolbar CHANGING p_e_object TYPE REF TO
cl_alv_event_toolbar_set
p_e_interactive
mt_toolbar TYPE ttb_button.
DATA wal_button TYPE stb_button.
*WAL_BUTTON-ICON = ICON_status_reverse.
wal_button-text = 'GO'.
wal_button-quickinfo = 'PROCEED'.
wal_button-function = 'INT1'.
wal_button-butn_type = 0.
wal_button-disabled = space.
INSERT wal_button INTO p_e_object->mt_toolbar INDEX 1.
ENDFORM. " FORM_TOOLBAR
*& Module PF-STATUS OUTPUT
* text
MODULE pf-status OUTPUT.
SET PF-STATUS 'Z7CCSTAT'.
ENDMODULE. " PF-STATUS OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form BUILD_CATALOG1
* text
* --> p1 text
* <-- p2 text
FORM build_catalog1 .
s_fieldcat-col_pos = '1'.
s_fieldcat-fieldname = 'MATNR'.
s_fieldcat-scrtext_m = 'MATERIAL'.
APPEND s_fieldcat TO t_fieldcat1.
s_fieldcat-col_pos = '2'.
s_fieldcat-fieldname = 'MTART'.
s_fieldcat-scrtext_m = 'MATERL TYPE'.
APPEND s_fieldcat TO t_fieldcat1.
s_fieldcat-col_pos = '3'.
s_fieldcat-fieldname = 'MEINS'.
s_fieldcat-scrtext_m = 'UOM'.
APPEND s_fieldcat TO t_fieldcat1.
ENDFORM. " BUILD_CATALOG1 -
Hi all,
I have a script with 2 pages first and next
i have two main windows 00 and 01 per page.
I have records like
type mat matdes
a 1 abc
b 2 abcd
a 3 abcde
b 4 bggu
I want to display in my script as
type mat matdes --inside a box
a 1 abc
a 3 abcde
type mat matdes --inside a box.
b 2 abcd
b 4 bggu
my requirement is
1)i want a box for type mat matdes headings
2) i wnat to display everything in 1 window i.e main 00 or main 01,
i.e i dont type mat matdes in mianwindow 00
and
b 2 abcd
b 4 bggu
in mainwindow 01.
or
i dont type mat matdes in mianwindow 01 of page first
and
b 2 abcd
b 4 bggu
in mainwindow 00 of page next.
mY CODE IS LIKE
/E ITEM
/: PROTECT
/: IF &TYPE1& NE ' '.
P TYPE Material Description
/: ENDIF.
Q &TYPE1& &MATNR& &MAKTX&
/: ENDPROTECT
tHIS IS MY DRIVER PROGRAM.
LOOP AT ITAB.
CLEAR TYPE.
AT NEW TYPE.
TYPE1 = ITAB-TYPE.
ENDAT.
WRITE_FORM
ITEM
END LOOP.
WHAT I SEE IN MY OUTPUT IS,
1)i DON'T HOW TO WRITE THE CODE FOR BOX, BECAUSE THE YPOS IS DETERMINED BASED ON THE NO OF RECORD FOR EACH TYPE,
2)i GET THE PROTECT END PROTECT WORKING FOR MAIN WINDOW 00 TO MAIN WINDOW 01 IN FIRST PAGE,
BUT IT DOESN'T WORK FOR MAIN WINDOW 01 OF FIRST PAGE TO MAIN WINDOW OF WINDOW 00 OF NEXT PAGE AND
ALSO IT DOESN'T WORK FROM MAIN WINDOW 00 TO MAIN WINDOW 01 OF NEXT PAGE.
the number of items for type may vary some times type a has 4 and some times 5 .
so it varies.
Any help regarding would be greatly appreciated and its bit urgent.
Thanks in advance.Hi
This is an example -- WINDOW (FOR BOX) in se71
/: POSITION WINDOW
/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.25' LN
/: SIZE WIDTH '+0.4' CH HEIGHT +1 LN
/: BOX FRAME 10 TW
/: BOX HEIGHT '1.7' LN INTENSITY 20
Regards,
vind. -
Hi Friends ,
I have a doubt here .
Is there any way to customize error page in HTMLDB.
and How can we change error page conditions , like if its an authorization error (not a valid user ) and process error in a page etc..\
Thanks,
Kalesh.Hi Friends,
Can anybody help for this..............................
Thanks,
Kalesh. -
Help req'd using VideoPier with iMovie 08
As iMovie 08 can't read my video footage I'm using this application - VideoPier- to de-code it. However, when I export my footage to iMovie 08 it either goes to the 'Folder' or just now it's gone nowhere! To confuse matters even more, the footage has even gone direct to iMovie 08 as it should do but only on two rare occasions. The guy at VideoPier seems to be at to loss to know why I have this problem. Is there anyone out there who can help me.....please?
Hi, Bengt,
+I think there is a difference between 6.0.3 and 6.0.4. Had problems with 0.3 after+
+installing iLife08 that was OK after 6.0.4 up-grade. (PPC dG5)+
That's why I said 'reportedly.'
I think you are correct. I, too, am suspicious of a difference, and I also downloaded version 6.0.4. I did the download as soon as I saw it on Apple's site after getting my new iMac.
I did have the prior iM6 version that I ported over from my old iMac, too. I am sure that I transferred all my old stuff before downloading 6.0.4, but I didn't run into any problems with it not installing.
Regards,
Beverly -
Hi All,
I need help to get a sql query for included dates
I have this scenario
create table test (names varchar2(100),start_date date,end_date date,exc_flg number);
insert into test values('John',to_date('01-jan-2009','dd-mon-yyyy'),to_date('31-dec-2011','dd-mon-yyyy'),0);
insert into test values('John',to_date('01-jan-2009','dd-mon-yyyy'),to_date('31-dec-2010','dd-mon-yyyy'),1);
insert into test values('Joseph',to_date('01-jan-2009','dd-mon-yyyy'),to_date('31-dec-2011','dd-mon-yyyy'),0);
insert into test values('Jack',to_date('01-jan-2009','dd-mon-yyyy'),to_date('31-dec-2010','dd-mon-yyyy'),0);
In the above case john is included for this duration start_date is '01-jan-2009' and end_date is '31-dec-2011' and is excluded for this duration '01-jan-2009','31-dec-2010'
Now i want to dispay John's incuded duration as ''01-jan-2011','31-dec-2011'
My sql output should be
Names start_date end_date
John 01-jan-2011 31-dec-2011
Joseph 01-jan-2009 31-dec-2011
Jack 01-jan-2009 31-dec-2010
Thanks in AdvanceHi there,
seems like the old "find those time gaps" problem. I tried to solve it in pure SQL, and since it's Monday I didn't want to wrap my mind around the MODEL clause,
therefore my solution looks a bit cluttered - feel free to improve.
create table test (names varchar2(100),start_date date,end_date date,exc_flg number);
INSERT INTO TEST VALUES('John',to_date('01-01-2009','dd-mm-yyyy'),to_date('31-12-2011','dd-mm-yyyy'),0);
INSERT INTO TEST VALUES('John',to_date('01-01-2009','dd-mm-yyyy'),to_date('31-12-2010','dd-mm-yyyy'),1);
INSERT INTO TEST VALUES('John',to_date('01-04-2011','dd-mm-yyyy'),to_date('01-07-2011','dd-mm-yyyy'),1);
INSERT INTO TEST VALUES('Joseph',to_date('01-01-2009','dd-mm-yyyy'),to_date('31-12-2011','dd-mm-yyyy'),0);
INSERT INTO TEST VALUES('Jack',to_date('01-01-2009','dd-mm-yyyy'),to_date('31-12-2010','dd-mm-yyyy'),0);
INSERT INTO TEST VALUES('Joe',to_date('01-01-2009','dd-mm-yyyy'),to_date('31-12-2011','dd-mm-yyyy'),0);
INSERT INTO TEST VALUES('Joe',to_date('01-04-2010','dd-mm-yyyy'),to_date('31-12-2011','dd-mm-yyyy'),0);
INSERT INTO TEST VALUES('Joe',to_date('01-01-2008','dd-mm-yyyy'),to_date('31-12-2009','dd-mm-yyyy'),1);
select * from test;
WITH t AS (SELECT names
, 's' flg_date
, start_date dat
FROM TEST
WHERE exc_flg = 0
UNION ALL
SELECT names
, 'e'
, end_date
FROM TEST
WHERE exc_flg = 0
UNION ALL
SELECT names
, 's'
, end_date + 1
FROM TEST
WHERE exc_flg = 1
UNION ALL
SELECT names
, 'e'
, start_date - 1
FROM TEST
WHERE exc_flg = 1
, t2 AS (SELECT t.*
, DECODE(LAG(t.flg_date) OVER (PARTITION BY t.names ORDER BY t.dat), flg_date, 0, NULL, 1, 1) grp_date
FROM t
WHERE NOT EXISTS (SELECT 1
FROM TEST t2
WHERE t2.names = t.names
AND exc_flg = 1
AND t.dat BETWEEN t2.start_date AND t2.end_date)
AND t.dat BETWEEN (SELECT MIN(start_date)
FROM TEST t2
WHERE t2.names = t.names
AND exc_flg = 0)
AND (SELECT MAX(end_date)
FROM TEST t2
WHERE t2.names = t.names
AND exc_flg = 0)
, t3 AS (SELECT t2.names
, t2.flg_date
, t2.dat
, SUM(grp_date) OVER (PARTITION BY t2.names ORDER BY t2.dat) grp_date
FROM t2
, t4 AS (SELECT t3.*
, row_number() OVER (PARTITION BY t3.names, t3.grp_date ORDER BY t3.dat) rn_start_date
, row_number() OVER (PARTITION BY t3.names, t3.grp_date ORDER BY t3.dat DESC) rn_end_date
FROM t3
SELECT names
, dat
, nxt_dat
FROM (SELECT t4.names
, dat
, CASE WHEN t4.flg_date = 's' THEN LEAD(dat) OVER (PARTITION BY t4.names ORDER BY t4.dat) END nxt_dat
FROM t4
WHERE (t4.flg_date = 's' AND rn_start_date = 1)
OR (t4.flg_date = 'e' AND rn_end_date = 1)
WHERE nxt_dat IS NOT NULL
ORDER BY names, dat
NAMES DAT NXT_DAT
Jack 2009.01.01 00:00:00 2010.12.31 00:00:00
Joe 2010.01.01 00:00:00 2011.12.31 00:00:00
John 2011.01.01 00:00:00 2011.03.31 00:00:00
John 2011.07.02 00:00:00 2011.12.31 00:00:00
Joseph 2009.01.01 00:00:00 2011.12.31 00:00:00C.
Maybe you are looking for
-
How do I get my downloaded tv shows to show up on my apple tv?
I cannot figure out how to get my downloaded shows off of my iPad/iPhone onto my appletv. Any advice?
-
T.code FF7A: seeng a document by the due date ...
Hi All, bY FB50 I've posted a bank loan for a certain bank G/L Account. Posting the document I've choosen: - the value date 26 semptember - the due date 31 october 2009 When I launch t.code FF7A, the report show that document with reference to the va
-
SLD fails to connect to Solution Manager
I am trying to populate SMSY with information from my SLD. The SLD appears to be setup properly as I am able to view all of my systems directly within the SLD. However, when I try to view the information in SMSY, The system cannot find anything. I
-
Hi Team, How do I set the java environment variable boot classpath (not classpath) in oc4j?? Any pointers will be greatly appreciated. Thanks.
-
Copyright information erroneously added upon export
When I export an image with no copyright data from Lightroom 3, copyright information is being applied from one of my metadata templates. Does anyone know how to stop this from happening?