Job processing
Dear Experts,
My client has received one processing job for the 1st time. How to map the scenario in Sap.
the customer will provide plain bottle for printing in plastic boxes to be returned after printing in the same box.
My idea is as follows.
1>Create the material plain bottle as sales order stock non-valuated as no excise is involved.
2>Create finished material with a new material type
3>Create sales order
3> Create BOM and routing for finished material assigning plain bottle as component.
4> Create Production order with a new order type with respect to the sales order
5> Create condition type in sales where only service tax and education cess are involved.
6> a new gl will also needs to be created i.e Job processing charges
Please confirm whether I am on the right track and what configuration needs to be maintained in FI, MM, CO and SD.
Please explain...
Best Regards,
Divraj
Hi Ajay,
I need suggestion for below mentioned problem.
We will be receiving suppose 10000 bottle for printing as job work. There is 1% breakage allowance....
Now if 100 bottles are broken we need to return to the customer those 100 bottles in broken condition.
How to map this.
What we have opined.......
As we have created plain bottle as non-valuated. We will receive the same through 501 E mvt. type i.e without PO against SO in a different storage location.
Instead of creating a seperate material code for broken bottle we will generate the same plain bottle through 531 movt type on order itself in a separate storage location. Then do 502 movement return to customer.
Please suggest the best method...
Regards,
Divraj
Similar Messages
-
How to synchronise the job processing from the program.
How to synbchronize the job processing when we are creating jobs from the program.
Thanks,
Ramana.hi,
yes you can do this..
try this
create a two screen suppose 9000 and 9001..
then right click on your program name...
create a TCODE say TONE..
in this give the screen number 9000..
now again right click on the program name
create a TCODE say Tsecond
in this give the screen number 9001...
hope this will help you..
Regards
Ritesh J -
Intrastat report wrong when job processing is involved
Hello Everybody,
I got a problem with the Intrastat Add-on.
For Example: I buy goods in France for 100u20AC . From there they are send directly to the Netherlands for job processing which costs 50u20AC. Then the processed goods are send to me in Germany. The german federal office for statistics wants me to report only the import of the processed goods (worth 150u20AC) but I get a bill for the unprocessed goods from France and a bill for the processing from the Netherlands. The Intrastat Add-on now reports the import of unprocessed goods from France and the processing material from the Netherlands. Is there any possibility to solve that problem ?
Greetings MatthiasHello Everybody,
I got a problem with the Intrastat Add-on.
For Example: I buy goods in France for 100u20AC . From there they are send directly to the Netherlands for job processing which costs 50u20AC. Then the processed goods are send to me in Germany. The german federal office for statistics wants me to report only the import of the processed goods (worth 150u20AC) but I get a bill for the unprocessed goods from France and a bill for the processing from the Netherlands. The Intrastat Add-on now reports the import of unprocessed goods from France and the processing material from the Netherlands. Is there any possibility to solve that problem ?
Greetings Matthias -
Hierarchies Job Failing The job process could not communicate with the dat
Hi Experts,
We have a group of hierarchies that run as a separate job on the DS schedules. The problem is this when we schedule the job to run during the production loads it fails but when we run immediately after it fails it runs completely fine. So it basically means that if i run it manually it runs but when its scheduled to run with the production job it fails. Now the interesting thing is If i schedule the job to run anytime after or before the production jobs are done. It works fine.
The error i get is
The job process could not communicate with the data flow <XXXXXX> process. For details, see previously logged
error <50406>.
Now this XXXXX DF has only Horizontal Flatenning and it does not run as separate process because if i have it has separate process it fails with an EOF . So i removed the run as separate process and changes the DF to use in memory .
Any Suggestion on this problem...Thanks Mike.. I was hoping its a memory issue but the thing i don't understand is when the job is scheduled to run with the production job it fails. when i manually run the job during the production job it runs, this kinda baffles me.
DS 3.2 (Verison 12.2.0.0)
OS: GNU/LINUX
DF Cache Setting :- In Memory
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
stepping : 4
cpu MHz : 2933.437
cache size : 12288 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc ida nonstop_tsc arat pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
bogomips : 5866.87
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
stepping : 4
cpu MHz : 2933.437
cache size : 12288 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc ida nonstop_tsc arat pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
bogomips : 5866.87
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: [8]
Thanks for your help -
How to view huge data by batch job process
Dear ,
Some times client wants to see Reports with so many plants like 1000 when the data is available with 1000 once we execute it will take so much time
so i know one process is there to control this , on the menu bar we have to create some back ground job process plz let me how to do it
Thanks to allDear vemuri santosh kumar
What OP Asking is ,
For example i am excuting one report -- so i have so many doc no are there as well as
ex in vf04 i have so many billing types are there
so diractly if i excute system will take some time right /
so he wants to escape this delay //
I hope You understand -
How can I supervise a procedure called through a job process
Hi all ...
How can I supervise a procedure called through a job process, and I mean to see if this procedure is active at the next time that the process should run again.
Because the procedure may run much longer that the next_time parameter for that process (job).
THANKS for you future(hope so) answer.If this is a scheduled oracle job, then check the DBA_JOBS_RUNNING view
Hi all ...
How can I supervise a procedure called through a job process, and I mean to see if this procedure is active at the next time that the process should run again.
Because the procedure may run much longer that the next_time parameter for that process (job).
THANKS for you future(hope so) answer. -
How to restore system RAM memory when i run DI batch job process
How to restore system RAM memory when i run DI batch job process
I use SAP-B12005SP53 and i develop with Business Partner ObjectHI ALL
TAKE CARE: Nothing was working in VB6, but in .NET it sets the default value !
from help of VS.
When you assign Nothing to an object variable, it no longer refers to any object instance. If the variable had previously referred to an instance, setting it to Nothing does not terminate the instance itself. The instance is terminated, and the memory and system resources associated with it are released, only after the garbage collector (GC) detects that there are no active references remaining.
Garbage Collector distroyes the objects at the end of the sub of function, not in the loop.
So use local variables when you loading the 7000 items. For me working fine and i do not have a memory problems. I am loading 50000 items with prices from EDI file, and memory usage stops at 120MB.
1st solution create a sub or a function to populate the data, and run this for every items by as single rutin,
sub x
Dim obj As New Object()
Try
... put here your update code
Catch ex As Exception
Finally
GC.Collect()
End Try
end sub
This free up the memory when Garbage
2nd solution: use inner loop definition
sub x
Try
Do While True
Dim obj As New Object()
Loop
Catch ex As Exception
Finally
GC.Collect()
End Try
end sub
This free up the memory inside the loop.
I recommend to use Friend Class keyword for your addon declaration and do not use modules.
Modules and shared classes will be free up the memory when your program terminates execution.
For more information see MSDN help http://msdn.microsoft.com/en-us/library/7ee5a7s1(VS.80).aspx
and http://msdn.microsoft.com/en-us/library/0x9tb07z(VS.80).aspx
Regards,
J
Edited by: János Nagy on Oct 15, 2009 2:17 PM -
After changing all ink cartridges (new, HP cartridges), nothing prints. The printer is receiving the print job, processing it, and blank pages are produced. I have cleaned it, and aligned it, however, the align is not successful. When I try a copy job, same thing. Scanner works, but nothing is printed. Blank pages. Please help!
Same here - absolutely disgusted with HP and the garbage I bought from them - $300 down the drain.
No solutions anywhere - no interest from them as a business at all. -
Job processing - Result ALV GRID
Hi folks!
I'm not very familiar with job processing. I'm having a report that displays an alv grid as a result of it. However it seems that the amount of registers to be read from the database now they are much, much more, so the users are getting the dump of time exceeded.
What I have in mind is to run this on background, but I know there are some limitations when running on background. My question here is that:
Is it possible to have an alv grid report to run as a Job, or I would have to replace the alv by simple report with Write statement?
Thanks for any help.
Regards,
Gilberto LiHi again.
My code is a little old so it's not Object Oriented or in ABAP/OO
So my code to call the ALV-GRID looks like:
Call ABAP/4 List Viewer
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_background_id = 'BUTTON_OFF_BACK'
is_layout = gs_layout
it_fieldcat = fieldcat
it_sort = lt_sort
it_events = gt_events[]
TABLES
t_outtab = itab_all.
Is there any way to do what Vij mentioned in non object oriented?
Thanks in advice.
Regards,
Gilberto Li -
Automating F110 through a batch job process
Is there a possibility of automating F110 through a batch job process? If yes, could somebody explain me how can that be done.
Hi Shilpa ,
To Run F110 First we hav to give run Date & identification,
1) select PARAMETER TAB Enter Posting date , Document Date , Company code Pament method , Next pament date And specify the Customer / Vendor Number for which u like to do the payment.
2) in Additional Log Select Check Box Due date check , Payment method selection if not scussefull, Line items of the payment documents & Vendor / Customer number . SAVE THIS.
3) Slect the PROPOSAL RUN ( START IMD )
4) Select PAYEMNT RUN ( STArt IMD) RUN
5) if u want to print the document Mantain varint & Specify the varint in front the progeramme
HOPE THIS WILL HELP YOU -
[Solved] Copy job (process) to the hard disk
Hello!,
I want to know how copy a Job (process) to the hard drive for restart Job (process) another day.
Thanks!.
Last edited by pesigelo (2015-05-30 05:39:48)Hello!, I will explain my problem with an example, if I have my own program to calculate a differential equation, and is running but I want to stop it and save the current state of the program to the hard drive because I want to execute it after but in the same state, How can I do that?.
Thanks!
Last edited by pesigelo (2015-05-30 05:40:50) -
After writing a report, I used this Function Module LIST_TO_ASCI to copy my report to an internal table (DOWNTAB) because Ill use that internal table to download a text file on the server using dataset.
Here is my code:
FORM DL_REP_SERVER.
DATA: ABAP_LIST LIKE ABAPLIST OCCURS 1,
MV_FILE2 LIKE RLGRAP-FILENAME.
DATA: BEGIN OF DOWNTAB OCCURS 1,
LINE(150),
END OF DOWNTAB.
CLEAR: MV_FILE2.
MV_FILE2 = J:/Downloads/Report.txt.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = SY-LSIND
TABLES
LISTASCI = DOWNTAB
LISTOBJECT = ABAP_LIST
EXCEPTIONS
LIST_INDEX_INVALID = 1
OTHERS = 2.
OPEN DATASET MV_FILE2 FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC <> 0.
IF SY-SUBRC = 8.
MESSAGE E037 WITH 'File could not be opened'.
ELSE.
MESSAGE E037 WITH 'Error occurs in downloading the file'.
ENDIF.
ENDIF.
LOOP AT DOWNTAB.
TRANSFER DOWNTAB TO MV_FILE2.
ENDLOOP.
CLOSE DATASET MV_FILE2.
ENDFORM. " DL_REP_SERVER
My big problem is this, when Im running my program ordinarily (not as background job), Im getting all the pages downloaded correctly but when I run it as background job (using SM36), Im only getting the last page of my report being downloaded. Definitely, I cant debug it because its in background. I cant figure out why. Hope that I stated my problem clearly. Any help would be greatly appreciated. Thanks.You can debug batch jobs by going to 'SM37', type in 'JDBG' in the
command line ( no '/' ), put the cursor on the job and press enter - will
take you to the job in debug mode.
You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'.
So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
Steps
1. Create variant called BACKGROUND for program to be debugged.
2. Execute ZDEBUGBG (pgm code below) in background for immediate processing.
3. Execute transaction SM50.
4. Select process that runs ZDEBUGBG.
5. Goto 'Program/Session' 'Program' 'Debugging'.
A se80 debug session will open.
6. Change variable W_EXIT to 'E'.
7. Step thru (F6) until ZWBTEST comes up.
1. Go to Transaction SM66 and find your work porocess.
Select the line work process is on and click on the Debugging button.
If this is a custom program, you can put a wait statement in the code to buy yourself sometime.
2. Go to Transaction SM50. From the tool bar "Program/session"->Program->Debugging.
goto SM37 and from Program menu(not sure.. try other menu's)
-->Catchjob . it will goto the active job in debugging mode. -
Background Job Processing Spool Retention period
Hi ,
In my program i am calling another ABAP program and sumitting the same as a background job(using Job_Submit,Close etc.)
In this case i can view the Spool generated by the called program(using sm37).
But this spool exists for a very less period in the system.Is it possible to specify a retention period,as 90 days in my case.?
Pls Help !!!
Answers will be rewarded.
Regards,
Rohanhi Roahn,
You must set print parameters before the printing process starts.
When printing lists after creating them, the system uses the print format specified in the print parameters to split the completed list and fit it onto the print pages, truncating it if necessary.
When printing lists while creating them, the system uses the print format to actually format the list in the program.
Print parameters are set either interactively by the user or from within the program.
For each print process, the spool system needs a complete and consistent set of print parameters. In ABAP, the structure PRI_PARAMS (ABAP Dictionary) represent a set of print parameters.
When passing the print parameters interactively, the system displays a dialog box after starting the report, on which the user has to enter the most important print parameters.
It's shown below which input field of the Print List Output dialog window conform to which PRI_PARAMS component.
Input field----
Retention period
Component-------PEXPI
Meaning----
Number of days for which the system holds the spool request before deleting it. (Default value: 8). -
JOB_CLOSE and Background Job Process a FM
HI Guys,
I have my code like this:
data: jobname like tbtcjob-jobname value
'TESTJOB'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
data: lv_weekday type WEEK_DAY.
CALL FUNCTION 'DATE_TO_DAY'
EXPORTING
DATE = sy-datum
IMPORTING
WEEKDAY = lv_weekday.
Close job
starttime-sdlstrtdt = sy-datum.
starttime-sdlstrttm = SY-UZEIT.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = 'X' "starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
This is the Program I want the Batch Job to Execute a BAPI Function Module in the Place of DATE_TO_DAY function module. Is it Possible ??????
And also I get an error at the JOB_CLOSE Function Module with SY-SUBRC = 5.
Can anyone know why this is happening and what should be done to overcome this.
Thanks & Regards,
YJR.Hi Ravi,
The below code which has an EXPORT and IMPORT commands
The IMPORT does'nt work in Background.
Do I need to do anything else.
REPORT ZTEST_LM22.
DATA: LV_NAME(10) TYPE C.
LV_NAME = 'HELLO'.
export lv_name to memory id 'ZNAM'.
submit ztest_lm22_a.
REPORT ZTEST_LM22_A.
DATA: GV_JOBNAME TYPE BTCJOB VALUE 'TEST_UNPACK',
GV_JOBCOUNT TYPE BTCJOBCNT.
data: lv_date type SYDATUM,
lv_time type SYUZEIT.
lv_date = SY-datum.
lv_time = sy-uzeit.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = GV_JOBNAME
SDLSTRTDT = lv_date
SDLSTRTTM = lv_time
IMPORTING
JOBCOUNT = GV_JOBCOUNT
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT ztest_lm22_b AND RETURN
VIA JOB GV_JOBNAME
NUMBER GV_JOBCOUNT.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = GV_JOBCOUNT
JOBNAME = GV_JOBNAME
STRTIMMED = 'X'
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REPORT ZTEST_LM22_B.
DATA: LV_NAME(10) TYPE C,
GV_NAME(10) TYPE C.
IMPORT LV_NAME = GV_NAME FROM MEMORY ID 'ZNAM'.
WRITE: GV_NAME.
If you see in SM37 the Spool does'nt have this value.
Could you just run a quick test and see what else should be done...
Thanks & Regards,
YJR. -
Error in Background Job Processing.
Dear All,
I am using a background job for processing the outbound delivery.
In the user exit in delivery program I am checking for the combination of
ship to party, Material & Batch of outbound delivery in a ztable. If the combination exists in
Ztable I do not want to save & ignore this delivery creation and continue with the next
delivery order creation thru the batch job.
However I need to give an error / warning message for the delivery orders
which are not created so I am giving the error message as success message
in the below format :-
IF L_RETURN-TYPE = 'E'.
MESSAGE S000(Z64_I) WITH L_RETURN-MESSAGE_V1
L_RETURN-MESSAGE_V2
L_RETURN-MESSAGE_V3
L_RETURN-MESSAGE_V4
DISPLAY LIKE 'E'.
PERFORM FOLGE_GLEICHSETZEN(SAPLV00F).
FCODE = 'ENT1'.
SET SCREEN SYST-DYNNR.
LEAVE SCREEN.
ENDIF.
But my job is finished as soon as the above message is encountered and the
rest of the outbound deliveries are not created.
However if I execute the progarm in foreground the execution is working fine.
Could you please let me know what do I need to code / do corrections to make
the program run successfully in background.
Thanks & Regards
Jitendra GujarathiHello,
Check system log and also check work process trace, to know the error.
I feel that it could be Authorization issue, you don't have sufficient authorization to do.
Hope this helps.
Regards
venkata
Edited by: venkata emandi on Sep 12, 2011 8:13 AM
Maybe you are looking for
-
Sending an email from my database
Hi! I wanna send an email from within a procedure from my database, Im thinking of using the utl_smtp package, I know I need acces from my database server to the smtp server, that can be done... when u use the utl_smtp package u need to specify the s
-
Document in Pages App is frozen
I was opening an email document in the Pages App on my iPad and it is basically frozen. It looks like it is beginning to load but nothing happens. I was able to open another couple documents and the rest of my documents work fine. It does not seem to
-
Probook 470 G1 touchpad problem - NOT SOLVED with SP64284
Hello, my touchpad is problematic. It registers movement but often misses a click, also hangs from time to time. I have installed SP64284 but the problem remains. Please help, Miljan (HP Probook 470 G1)
-
Using RDBMSRealm as backup realm and filerealm as primary realm
I want to use filerealm as primary realm and RDBMSRealm as backup realm in my custom realm. How can I do that? Or how can I get access to filerealm from RDBMSRealm so that I can call filerealm.getUser() before I try to get it from database. Thank you
-
In PowerMac G4 MDD 2 x 867 there appeared, after being two months not in use, a strange new behaviour: If computer is not in active use in about 10 minutes, the OS does not react to the mouse click or keyboard signal in few seconds. In other words, t