Duplicate deliveries getting created by batch job against STO
Hi Experts,
I am facing one issue where duplicate deliveries are getting created by batch job against Intercopmany STO.
Scenario is PO having one line item with ordered qty of 8000kg.
Through batch job, two deliveries got created on same day for PO line item.
One delivery got created for 8000kg and another delivery has got created for 7000Kg. So user has deleted second delivery of 7000kg.
Next day again the delivery got created for 8000kg for the same PO line item through batch job.
I am wondering how the duplicate deliveries are getting created by batch job for PO even though it has no open items.
All deliveries got created through batch job only as cross checked the user name in delivery.
Kindly help to fix the issue.
Hi Amit
I assume you are talking about outbound deliveries. In this case it would be worth checking the customer master record for the receiving plant. In the sales area data there is a shipping tab which contains several settings used to control delivery creation for customers.
It is possible to control how the system behaves when you have a stock shortage and restrict the number of partial deliveries. This might help you control this situation and might be the cause.
Regards
Robyn
Similar Messages
-
Spool not getting created in batch job
Hello experts,
We have a requirement of printing BA00, BA01 and LD00 from different application.
We have done same code for all BA00, BA01, and LD00.
Normally the code is working fine except in few cases, when batch job is created but spool is not created.
DATA: job_name TYPE tbtcjob-jobname,
number TYPE tbtcjob-jobcount,
print_parameters TYPE pri_params,
wv_pripar TYPE pri_params,
wv_arcpar TYPE arc_params,
wv_val TYPE c VALUE 'X',
wv_false TYPE c VALUE 'X',
gv_mandt TYPE tsp01-rqclient,
gv_user TYPE tsp01-rqowner.
CLEAR: gv_mandt, gv_user, number.
gv_mandt = sy-mandt.
gv_user = sy-uname.
job_name = 'DELIVERY_PRINTING'.
CLEAR: range1.
range1-sign = 'I'.
range1-option = 'EQ'.
range1-low = 'LD00'.
CLEAR: range1-high.
APPEND range1 TO range.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = job_name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT sd70av2a WITH rg_kschl IN range
WITH rg_vbeln IN deli_tab
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB job_name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = job_name
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
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
WAIT UP TO 10 SECONDS.
** to give the data to the printer***
* CLEAR gv_rqident.
SELECT SINGLE listident INTO gv_listident FROM tbtcp
WHERE jobname = job_name
AND jobcount = number.
IF sy-subrc = 0.
MOVE gv_listident to gv_rqident.
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
spool_request_id = gv_rqident.
ENDIF.
The same code is for all the output BA00, BA01 and LD00.
The issue is that for few batch jobs (which is created in the above code) , spool is not getting created.
Thanks and Regards,
Paritosh PandeyHi,
The code starting from WAIT UP TO 10 SECONDS. - not only does it look attrocious, is error prone (if no free process for executing batch job is available for 10 seconds, or if the job runs for more than 10 seconds, what will happen...?), but seems utterly unnecessary... Is there any reason immediate spool output can not be handled by simply setting PRINT_PARAMETERS-PRIMM = 'X'?
cheers,
Janis
Edit in:
Ok, i just read Document in spool but not printed... Do not use an output device relying on frontend access methods to do printing from background processing. Frontend is not available during background processing, period. To my knowledge there is no easy, clean solution to this problem other than defining and assigning, per user, output devices not relying on frontend printing. What if the dialog user has logged off by the time batch job finishes..? May the spool remain unprinted?
Has the SAP Basis refused to define output devices (I have hard time believing this...)? Well, tell them one time to stop being silly and if they do not cooperate, tell the owner of the requirement that it can not be implemented due to uncooperative Basis then... and that the users will have to keep going to SP01 and manualy start the output!
Message was edited by: Jānis B -
How to create a batch job through coding
Hi Experts,
How to create a batch job through coding?
Regards
SarojHi, below is the code.
***Create Variant for the job
***Get the dynamic variant name
DATA: variant_name TYPE varid-variant value 'test'.
DATA: vari_desc LIKE varid,
vari_contents LIKE rsparams OCCURS 0 WITH HEADER LINE,
vari_text LIKE varit OCCURS 0 WITH HEADER LINE.
CLEAR: vari_desc,vari_contents,vari_text.
REFRESH: vari_contents[], vari_text[].
vari_desc-mandt = sy-mandt.
vari_desc-report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
vari_desc-variant = variant_name.
vari_desc-transport = 'F'.
vari_desc-environmnt = 'A'.
vari_desc-version = 1.
vari_desc-mlangu = sy-langu.
***Varint Text
vari_text-mandt = sy-mandt.
vari_text-langu = sy-langu.
vari_text-report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
vari_text-variant = variant_name.
CONCATENATE 'job' 'Background' INTO vari_text-vtext SEPARATED BY space.
APPEND vari_text.
***Partner
IF ( p_partner-low IS NOT INITIAL ).
vari_contents-selname = 'PARTNER'.
vari_contents-kind = 'S'.
vari_contents-sign = 'I'.
IF ( ( p_partner-low IS NOT INITIAL ) AND ( p_partner-high IS INITIAL ) ).
vari_contents-option = 'EQ'.
vari_contents-low = p_partner-low.
ENDIF.
IF ( ( p_partner-low IS NOT INITIAL ) AND ( p_partner-high IS NOT INITIAL ) ).
vari_contents-option = 'BT'.
vari_contents-low = p_partner-low.
vari_contents-high = p_partner-high.
ENDIF.
APPEND vari_contents.
ENDIF.
***Contract Account
IF ( p_cont_acct-low IS NOT INITIAL ).
vari_contents-selname = 'CA_ACC'.
vari_contents-kind = 'S'.
vari_contents-sign = 'I'.
IF ( ( p_cont_acct-low IS NOT INITIAL ) AND ( p_cont_acct-high IS INITIAL ) ).
vari_contents-option = 'EQ'.
vari_contents-low = p_cont_acct-low.
ENDIF.
IF ( ( p_cont_acct-low IS NOT INITIAL ) AND ( p_cont_acct-high IS NOT INITIAL ) ).
vari_contents-option = 'BT'.
vari_contents-low = p_cont_acct-low.
vari_contents-high = p_cont_acct-high.
ENDIF.
APPEND vari_contents.
ENDIF.
***Contract Object
IF ( p_cont_obj-low IS NOT INITIAL ).
vari_contents-selname = 'CO_OBJ'.
vari_contents-kind = 'S'.
vari_contents-sign = 'I'.
IF ( ( p_cont_obj-low IS NOT INITIAL ) AND ( p_cont_obj-high IS INITIAL ) ).
vari_contents-option = 'EQ'.
vari_contents-low = p_cont_obj-low.
ENDIF.
IF ( ( p_cont_obj-low IS NOT INITIAL ) AND ( p_cont_obj-high IS NOT INITIAL ) ).
vari_contents-option = 'BT'.
vari_contents-low = p_cont_obj-low.
vari_contents-high = p_cont_obj-high.
ENDIF.
APPEND vari_contents.
ENDIF.
***Account Category
IF ( p_ctra_acc_category IS NOT INITIAL ).
vari_contents-selname = 'P_CAT'.
vari_contents-kind = 'P'.
vari_contents-low = p_ctra_acc_category.
APPEND vari_contents.
ENDIF.
***filed_freq_to_change_from
IF ( p_filed_freq_to_change_from IS NOT INITIAL ).
vari_contents-selname = 'P_TO_CH'.
vari_contents-kind = 'P'.
vari_contents-low = p_filed_freq_to_change_from.
APPEND vari_contents.
ENDIF.
***req_filed_freq_change
IF ( p_req_filed_freq_change IS NOT INITIAL ).
vari_contents-selname = 'P_CHANGE'.
vari_contents-kind = 'P'.
vari_contents-low = p_req_filed_freq_change.
APPEND vari_contents.
ENDIF.
***Test Run p_tstrun
vari_contents-selname = 'P_TSTRUN'.
vari_contents-kind = 'P'.
vari_contents-low = p_test_run.
APPEND vari_contents.
***Update Filing Frequency Checkbox
vari_contents-selname = 'P_FIL_FR'.
vari_contents-kind = 'P'.
vari_contents-low = p_update_filing_frequency.
APPEND vari_contents.
***Update Incoming Payment Channel Checkbox
vari_contents-selname = 'P_PAY_CH'.
vari_contents-kind = 'P'.
vari_contents-low = p_update_payment_channel.
APPEND vari_contents.
***Update Filing Channel Checkbox
vari_contents-selname = 'P_FIL_CH'.
vari_contents-kind = 'P'.
vari_contents-low = p_update_filing_channel.
APPEND vari_contents.
***Use Current Filing Period Checkbox
vari_contents-selname = 'P_CU_PER'.
vari_contents-kind = 'P'.
vari_contents-low = use_curr_per.
APPEND vari_contents.
****Create Variant thru Function Module
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
curr_report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'
curr_variant = variant_name
vari_desc = vari_desc
TABLES
vari_contents = vari_contents
vari_text = vari_text.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
****Prepare all the date for scheduling job
***Get the print parameters
DATA: params LIKE pri_params.
CLEAR params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
mode = 'CURRENT'
no_dialog = 'X'
IMPORTING
out_parameters = params.
params-paart = 'X_65_255'."'X_PAPER'.
***Open The scheduling job
DATA: job LIKE tbtcjob-jobname,
jobcount LIKE tbtcjob-jobcount.
CLEAR: job,jobcount.
job = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = job
IMPORTING
jobcount = jobcount
EXCEPTIONS
OTHERS = 4.
***Job Submit
DATA: authcknam LIKE tbtcjob-authcknam.
CLEAR: authcknam.
authcknam = sy-uname.
params-primm = space.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = authcknam
jobcount = jobcount
jobname = job
priparams = params
report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'
variant = variant_name.
***JOB_CLOSE
DATA: sdlstrttm TYPE tbtcjob-sdlstrttm,
released LIKE btch0000-char1.
sdlstrttm = p_job_start_time + 30.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
sdlstrtdt = p_job_start_date
sdlstrttm = sdlstrttm
jobcount = jobcount
jobname = job
IMPORTING
job_was_released = released.
Regs
Manas -
How to create a batch-job dynamically?
Hello,
I would like to create a batch-job from within my abap code.
Therefore I want to determine a abap-report to be executed every X-Hours.
Do you have some sample code for creating a batch job?
I need to do it in abap because I want to create a TN to trigger the code creating the job.
So the user interaction will be minimal to start a periodic batch job.
thanks.Hi Daniel,
select options could be stored by export/import to/from database:
DESCRIBE TABLE t_vkpos LINES n.
READ TABLE t_vkpos INDEX n.
lastmaxvbeln = t_vkpos-vbeln.
PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
EXPORT lastmaxvbeln TO DATABASE indx(zk) ID vkposmemkey.
IF NOT sy-subrc IS INITIAL.
PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
IMPORT lastmaxvbeln FROM DATABASE indx(zk) ID vkposmemkey.
IF sy-subrc IS INITIAL.
ls_vbeln-sign = 'I'.
ls_vbeln-option = 'GT'.
ls_vbeln-low = lastmaxvbeln.
APPEND ls_vbeln.
ENDIF
FORM get_varimemkey USING vari TYPE raldb_vari
CHANGING memkey TYPE char22.
IF vari IS INITIAL.
RAISE get_varimemkey_unexepected.
ENDIF.
CONCATENATE 'Z_VKPOS_' vari INTO memkey.
ENDFORM. "
regards
Walter Habich -
How to create a batch job in IW41
Dear all,
I would like to create a print program batch job on the following scenario with the use of RSNAST00.
We have created an output type in which when it is triggered by backflush (i.e. GI-261) via IW41 transaction, a PO will be created automatically in the background from this output type.
Now for testing purpose, we would like to use to use program RSNAST00 to schedule the creation or triggering of this output.
May I know how to do this?
I know in VF04, I can click the variant,HOWEVER in IW41, the menu does not allow variant creation?
Without variant creation, I cannot go to SM36 to create a batch job.
thanks
tuffHi,
Check the link:
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
Follow the link Central auto reactions for configuring alert mails.
Regards,
Srikishan -
Help needed in creating a batch job for delivery
Hi gurus
Can somebody tell me the process of creating a batch job ..for creation of delivery.. is this the same process to create the batch jobs for invoices also?
thankyou
bjhello jaya ,gsl
thankyou very much for ur help .. I have tried creating a variant .. in vl10batch.. and ive assigned it a scheduled time .. i craeted a open order.. and when the scheduled time has arrived and is over,i went to the order and still i dont see any delivery doc created .. and in sm37 its shows that the job is finished ..i even tried sm36 .. of creating a job for the variant.that ive craeted in vl10batch .and then assigning the job in sm37.. i can see the job that ive created in sm37 it is changing its status from released to finished .. as per the scheduled time but the delivery is not created .. i tried vf06 for a billing variant.. and went to sm36 craeted a job for the variant..using the program name.. and next to sm37 i can see the created job in the spool also..but somehow it is not creating the billing doc also..
can u help me to find where it actually went wrong with me ?
thanksalot in advance.. -
Is it possible to create a batch job for program RPRCCC00
Dear All,
I want to create a schedul batch job for program RPRCCC00. Have you come across with this scenario.
Thanks in advance
Regards
ShanuHi,
Yes, you can create a batch job of the program RPRCCC00.
Using SM36 transaction, you can create a batch job.
Hope this helps.
Thanks,
Prashanth -
How to create a batch job for transaction SM13 or SM37
How to create a batch job for transaction SM13 or SM37?
I want to create a batch job for t-code SM13/SM37, the jobs will send a email to my inbox when the errors occurred in SM13/SM37.
How to do this? thanks in advance.Hi,
Check the link:
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
Follow the link Central auto reactions for configuring alert mails.
Regards,
Srikishan -
Creating a Batch Job for Executing Later
Hi Experts!
I was wondering if there was a way to create a batch job, but to have it executed at a later time, since we do not have an exact date and time we need these jobs executed. My goal is to create 12 batch jobs (1 for each month), but have them excuted, when I need them too, when I choose it. Is this even possible?. I tried looking through SM36/SM37, but could not find anything on it. Please advise and thanks in advance!
WCHi Will,
The standard job scheduler will not do this (SM36/7). You do not mention what release you are using, but SAP Central Job Scheduling with Redwood does provide the ability to create jobs with boolean conditions like you describe (plus much, much more). See the Service Marketplace http://service.sap.com/job-scheduling or the SDN page https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/abb91c2a-0b01-0010-6ca6-9f0f62268454. [original link is broken]
Best Regards,
Matt -
Routine not getting called during Batch job posting of Shipment costs
Hi,
We have a routine created and attached to the condition type in the condition base type of shipment cost procedure.When the shipment cost is created by running a batch job (VI06) , the value posted is the initial value determined withourt routine.
The routine is getting activated only when we go in u201CCondition tabu201D in shipment cost.
Because of this, correct values are getting calculated only when we click on u201Ccondition tabu201D,& getting wrong value in initial screen, which is not possible in batch job.
Need your views / suggestions to fix this issue.We need to use batch job and enable rouitne before batch job posts the cost to the Service PO.
Thanks in advance.
Regards,
Ameya K.Modified the routine program
-
Spool list is not getting created for background job
I am creating background job using JOB_OPEN and then submitting my z-report using submit statement and then closing job using JOB_CLOSE. for this job is getting creating in sm37 and also gets finished but it does not create spool list showing output.
Any idea how to do this?
Thanks in advance.DATA: lv_jobname TYPE tbtcjob-jobname,
lv_jobcount TYPE tbtcjob-jobcount,
lv_variant TYPE variant,
wa_var_desc TYPE varid,
wa_var_text TYPE varit,
it_var_text TYPE TABLE OF varit,
it_var_contents TYPE TABLE OF rsparams.
REFRESH: it_var_contents, it_var_text.
CLEAR: wa_var_desc, wa_var_text.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-cprog
TABLES
selection_table = it_var_contents
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CONCATENATE sy-datum sy-timlo INTO lv_variant.
wa_var_desc-mandt = sy-mandt.
wa_var_desc-report = sy-cprog.
wa_var_desc-variant = lv_variant.
wa_var_desc-transport = 'F'.
wa_var_desc-environmnt = 'B'.
wa_var_desc-version = '1'.
wa_var_desc-protected = 'X'.
wa_var_text-mandt = sy-mandt.
wa_var_text-langu = sy-langu.
wa_var_text-report = sy-cprog.
wa_var_text-variant = lv_variant.
lv_jobname = lv_variant.
CONCATENATE 'Batch Job Variant -'(006)
sy-uname INTO wa_var_text-vtext.
APPEND wa_var_text TO it_var_text.
Create the varaint for the back ground job.
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
curr_report = sy-cprog
curr_variant = lv_variant
vari_desc = wa_var_desc
TABLES
vari_contents = it_var_contents
vari_text = it_var_text
EXCEPTIONS
illegal_report_or_variant = 1
illegal_variantname = 2
not_authorized = 3
not_executed = 4
report_not_existent = 5
report_not_supplied = 6
variant_exists = 7
variant_locked = 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.
Open the job.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
IMPORTING
jobcount = lv_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.
submitt the job in background mode.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = sy-uname
jobcount = lv_jobcount
jobname = lv_jobname
report = sy-repid
variant = lv_variant
EXCEPTIONS
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
close the job.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_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.
Hope this will be helpful.. -
Payment Proposals (F110) did not created in Batch job
Hello,
We had 1 time issue today. I am just trying to find out if anyone come across this issue.
We have the daily automated batch jobs which kickks of Payment proposals. Somehow system did not create any proposals and showd as Zero incoming Payments for customers. Busiiness users had some doubt as this is not possible and created the manual proposals in 15 minutes and a big payment proposals were created. I am trying to find the cause of this issue. Please let me know if anyone come across this issue.
I did all analysis on business point of view and all invoices were created few days back.
Thanks
IDHi,
Thanks for your response. The batch jobs are correctly maintained and as I mentioned this happened 1 time and the same batch runs every day and the issue did not occur
Thanks
Ivan -
Creating a batch job for the sapscript
Hi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = 1
COVER_PAGE = SPACE
DATA_SET = 'LIST8S'
DEPARTMENT = C_CHAR_UNKNOWN
DESTINATION = C_CHAR_UNKNOWN
EXPIRATION = C_NUM1_UNKNOWN
IMMEDIATELY = C_CHAR_UNKNOWN
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
LAYOUT = C_CHAR_UNKNOWN
LINE_COUNT = C_INT_UNKNOWN
LINE_SIZE = C_INT_UNKNOWN
LIST_NAME = C_CHAR_UNKNOWN
LIST_TEXT = C_CHAR_UNKNOWN
MODE = 'CURRENT'
NEW_LIST_ID = 'X'
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = 'ZSAPFORM'
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = i_pri_params
VALID = w_valid
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4
IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write: / 'Pri params ', i_pri_params.
Thanks,
SKHi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = 1
COVER_PAGE = SPACE
DATA_SET = 'LIST8S'
DEPARTMENT = C_CHAR_UNKNOWN
DESTINATION = C_CHAR_UNKNOWN
EXPIRATION = C_NUM1_UNKNOWN
IMMEDIATELY = C_CHAR_UNKNOWN
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
LAYOUT = C_CHAR_UNKNOWN
LINE_COUNT = C_INT_UNKNOWN
LINE_SIZE = C_INT_UNKNOWN
LIST_NAME = C_CHAR_UNKNOWN
LIST_TEXT = C_CHAR_UNKNOWN
MODE = 'CURRENT'
NEW_LIST_ID = 'X'
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = 'ZSAPFORM'
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
OUT_PARAMETERS = i_pri_params
VALID = w_valid
EXCEPTIONS
ARCHIVE_INFO_NOT_FOUND = 1
INVALID_PRINT_PARAMS = 2
INVALID_ARCHIVE_PARAMS = 3
OTHERS = 4
IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
write: / 'Pri params ', i_pri_params.
Thanks,
SK -
Outbound created with zero value against STO PO
Hi experts,
I have created an outbound delivery (VL10D) against STO PO. OBD has been created with zero value. in PGI correct accounting entry is getting generated. However, material price is maintained in STO PO.
Please highlight the gaps, due to which amount in OBD is coming as zero. Subsequently, in billing document zero value is appearing.
regardsprobably something wrong in your price schema if you want copy the price from the STO, or you just missed to maintain the price conditions if you use special intercompany prices.
For details see OSS Note 338922 - Analysis note for cross-company transactions (delivery)
look at point 6 in this note. -
ME2O - Two deliveries getting created !!!
Hi,
I have referred the previous posts on this topic. But couldn't get a satisfactory answer.
Re: Subcontracting Delivery (LB) split through ME2O
Scenario :- When I run ME2O (1 header and 10 components) system creates two deliveries SOMETIMES. This happens once in a while only. With the same set of data, I have tried creating later on, it created only one delivery !!! Seems, there is no logic in delivery split.
All the below conditions are correct
a) Based on delivery date
b) Shipping Point
c) Shipping Condition
d) Delivery Type
e) Loading group
f) Route (we are not using route determination)
Does anybody have a clue on this?
The only thing which is different in two deliveries is the 'Weight group'. But with this also system is not creating 2 deliveries always. It creates only sometimes.......the requirement date is probably different.
Maybe you are looking for
-
Hi I had a iPhone 4 and then got a new computer, I installed iTunes to it but my new computer refused to sync with my phone, i backed up my phone via icloud and purchased tracks etc from iTunes, but now i have a new iPhone 5C and I backed it up via t
-
Merge Multiple CSV Files Into One and save it into new file
Below code run in specific directory. However I'm looking a code which will select the folder & save it into new sheet. Can you help me with this? I've searched for a solution for a long time but could not find anything which worked. The following i
-
I am desperately looking for a bluetooth headphone that would be compatible to my Macbook air and Ipad mini both. I am more of looking for a headphone that does not need a transmitter device to be connected to the source (in this case Macbook Air and
-
Why do files that I have organized into folders not stay in their folders after closing and reopening iTunes? And Why does the renaming get undone? I do this in iTunes Media/ Music.
-
Hi , I have the Lion OS and IChat just wont open up on it. It appears on the Doc but when i click on the icon nothing happens following is what appears when i typed /Applications/iChat.app/Contents/MacOS/iChat -errorLogLevel 7 on Terminal --------St