Posts

Showing posts from October, 2012

What happens to background job, when system crashed while jobs are running

What happens to background jobs when the system crashes while jobs are running First there is no need to panic. If the system crashes while a session is being processed, the status ("in process") is not changed. To complete the processing, you must first release the session (by choosing Session → Release  ). When the session is processed again, any transactions already processed are not processed again. If any background job created for this session, first background job need to be deleted then release the job. Make sure you got everything before deleting job.

Code for change documents in ABAP using Changedocument function module

Scenario: Need report for change documents for Purchase order for given period. Solution: Use standard SAP function module and pass the proper object class to the function module."CHANGEDOCUMENT_READ_HEADERS" and "CHANGE_DOCUMENT_READ_POSITIONS" For Purchase orders use class as 'EINKBELEG' for other documents the object class need to change. Check the code below. select - options :  S_chgdt   for  ekpo - aedat obligatory .               SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; } data :  v_fromdt  like  CDHDR - UDATE ,       v_todate  like  CDHDR - UDATE . data :  it_cdhdr  like  standa...

Use Full Transaction codes in SAP

CG3Z        Uploading file from desktop to Application server CG3Y       Downloading file from Application server to Desktop.

Transfer internal table data into PC file using class CL_GUI_FRONTEND_SERVICES

Scenario: Need to tansfer internal table data into  PC file or desktop file using class CL_GUI_FRONTEND_SERVICES in ABAP Solution: check the code below tables :  lfa1 . types :  begin  of  ty_lfa1 ,        lifnr ( 10 )  type  c ,        name1 ( 35 )  type  C ,        land1 ( 2 )  type  c ,         end  of  ty_lfa1 . Data :  it_data  type  standard  table  of  ty_lfa1 . data :  wa_data  type  ty_lfa1 . data :  v_filename  type  string ,       v_path      type  string ,       v_fullpath  type  string ,       v_action    type  I . select - options :  s...