Skip creating invoice scheduled in background and create error log in V.21 Tcode

Hi All,
When background job scheduled for VF04 (Billing Due List) to create billing document , we are checking condition for billing date . If the condition satisfied we are creating error log in V.21 by filling XVBFS structure in user exit . In this case billing document is been created .
My requirement is to skip creating billing document and process the next document in billing due list . Can you please suggest in this regard.
Thanks in advance.
Narendra

This is an excerpt from sap help:
Putaway using storage unti types
You receive a delivery of 200 pieces of material O2.
You post the goods receipt of the delivery in Inventory Management.
The system creates a transfer order for putaway.
You display all transfer requests (TRs) for material O2.
You choose the TR for which you want to create a transfer order (TO) from the list of transfer requests.
In the palletization section of the preparation screen for the transfer order, the system automatically proposes five industrial pallets of 40 pieces. This proposal is based on the storage unit type in the material master record.
Palletization
SU
Qty per Storage Unit
SUT
Type
Section
5
X
40.000
IP
X
20.000
Save your entries.
The system creates the TO for putaway with the palletization data.
You can also check this link:
Warehouse Management System (WMS) - SAP Library
It will help you understand this in more detail.

Similar Messages

  • Create Scheduled in Background and Output as excel

    Hi All,
    I have already created an Adhoc Query, and I would like to run it every Sunday and save it as an Excel File automatically. I have already known how to set schedule in background. but I don't know how to set the output format and save it into specific folder. I would like to collect all the file for data warehouse processes.
    Please kindly assist me... (help help help)
    Thanks
    MWidodo

    Hi,
      You can use the following code
    types: begin ot ty_string,
               a type string,
               end of ty_string.
    data: it_string type table of ty_string,
             wa_string type ty_string,
             tab type c value cl_abap_char_utilities=>horizontal_tab.
    loop at itab(internal table that contains data fetched from database tables for your requirement).
    concatenate itab-a itab-b into wa_string separateb by tab.
    append wa_string to it_string.
    endloop.
    Use FM GUI_DOWNLOAD to download it_string to excel sheet.
    Regards
    Dande

  • Creating Error log files using UTL_FILE package on a remote machine

    Database Version: 10g Release2
    OS Platform: Sun Solaris
    I have been asked to log errors to OS files rather than tables. So, i wanted to use UTL_FILE package. But the client doesn't want to store these files on the same server where the database is running(as specified in UTL_FILE_DIR). Is there a way i could get these files created on a remote machine(client).

    I believe what others are suggesting is that your stored procedure continues to log to a table and a separate process be created that runs on the machine you want the file to be created on which reads the log table and writes to a log file.
    If that is not an option, can you expose the directory on the remote machine you want to write the file to as a file share that can be mounted by the database server? If you can, you could write errors there using UTL_FILE. However, it would probably be a bad idea. If you're logging an error already, that implies that something has gone wrong. Making an error logging process dependent on a remote server being available and properly mounted with appropriate privileges at the instant the error occurs just creates more sources of failure that would prevent you from logging an error, which would prevent you from being able to debug the problem or even know it existed without a report from a user.
    Justin

  • Create Error log table

    I am supposed to insert the records that are not uploaded to the main table into a error log table and email the users about the error records that was not inserted into the table. How am is supposed to do it ?
    I have few more questions.
    What is the best way to upload the data from a file .
    1, I got to either do the batch processing or
    2, I got to browse and uplaod the file thru the APEX application and
    and insert the records.
    I want to know about which tutorial could be the best to read to do the
    about 2 methods and how do i create and insert records into the error log
    table and send the user with the CSv or txt file that contains the error records in both the methods ?
    Will following the below method be the right way for 2nd method ?
    http://oraexplorer.blogspot.com/2007/11/apex-to-upload-text-file-and-write-into.html

    Ok,
    I am trying to insert the records to an existing table from CSV file.
    I am using the below post to do so..
    Re: File Browse, File Upload
    I get some errors executing the htmldb tools package.
    Error at line 27: PLS-00103: Encountered the symbol "/"
    create or replace PACKAGE htmldb_tools
    AS
    -- Utility functions --{{{
    PROCEDURE parse_textarea ( --{{{
    -- Parse a HTML textarea element into the specified HTML DB collection
    -- The c001 element from the collection is used
    -- The parser splits the text into tokens delimited by newlines, spaces
    -- and commas
    p_textarea IN VARCHAR2,
    p_collection_name IN VARCHAR2
    PROCEDURE parse_file( --{{{
    -- Generic procedure to parse an uploaded CSV file into the
    -- specified collection. The first line in the file is expected
    -- to contain the column headings, these are set in session state
    -- for the specified headings item.
    p_file_name IN VARCHAR2,
    p_collection_name IN VARCHAR2,
    p_headings_item IN VARCHAR2,
    p_columns_item IN VARCHAR2,
    p_ddl_item IN VARCHAR2,
    p_table_name IN VARCHAR2 DEFAULT NULL
    END htmldb_tools;
    create or replace PACKAGE BODY htmldb_tools
    AS
    TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
    -- Private functions --{{{
    PROCEDURE delete_collection ( --{{{
    -- Delete the collection if it exists
    p_collection_name IN VARCHAR2
    IS
    BEGIN
    IF (htmldb_collection.collection_exists(p_collection_name))
    THEN
    htmldb_collection.delete_collection(p_collection_name);
    END IF;
    END delete_collection; --}}}
    PROCEDURE csv_to_array ( --{{{
    -- Utility to take a CSV string, parse it into a PL/SQL table
    -- Note that it takes care of some elements optionally enclosed
    -- by double-quotes.
    p_csv_string IN VARCHAR2,
    p_array OUT wwv_flow_global.vc_arr2,
    p_separator IN VARCHAR2 := ','
    IS
    l_start_separator PLS_INTEGER := 0;
    l_stop_separator PLS_INTEGER := 0;
    l_length PLS_INTEGER := 0;
    l_idx BINARY_INTEGER := 0;
    l_quote_enclosed BOOLEAN := FALSE;
    l_offset PLS_INTEGER := 1;
    BEGIN
    l_length := NVL(LENGTH(p_csv_string),0);
    IF (l_length <= 0)
    THEN
    RETURN;
    END IF;
    LOOP
    l_idx := l_idx + 1;
    l_quote_enclosed := FALSE;
    IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
    THEN
    l_quote_enclosed := TRUE;
    l_offset := 2;
    l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
    ELSE
    l_offset := 1;
    l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
    END IF;
    IF l_stop_separator = 0
    THEN
    l_stop_separator := l_length + 1;
    END IF;
    p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
    EXIT WHEN l_stop_separator >= l_length;
    IF l_quote_enclosed
    THEN
    l_stop_separator := l_stop_separator + 1;
    END IF;
    l_start_separator := l_stop_separator;
    END LOOP;
    END csv_to_array; --}}}
    PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
    IS
    l_record_separator VARCHAR2(2) := chr(13)||chr(10);
    l_last INTEGER;
    l_current INTEGER;
    BEGIN
    -- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
    -- it will be a Unix text file. If user has manually created the file, it
    -- will have DOS newlines.
    -- If the file has a DOS newline (cr+lf), use that
    -- If the file does not have a DOS newline, use a Unix newline (lf)
    IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
    THEN
    l_record_separator := chr(10);
    END IF;
    l_last := 1;
    LOOP
    l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
    EXIT WHEN (nvl(l_current,0) = 0);
    p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
    l_last := l_current+length(l_record_separator);
    END LOOP;
    END get_records; --}}}
    -- Utility functions --{{{
    PROCEDURE parse_textarea ( --{{{
    p_textarea IN VARCHAR2,
    p_collection_name IN VARCHAR2
    IS
    l_index INTEGER;
    l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
    l_element VARCHAR2(100);
    BEGIN
    l_string := l_string||'@';
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    LOOP
    l_index := instr(l_string,'@');
    EXIT WHEN NVL(l_index,0)=0;
    l_element := substr(l_string,1,l_index-1);
    IF (trim(l_element) IS NOT NULL)
    THEN
    htmldb_collection.add_member(p_collection_name,l_element);
    END IF;
    l_string := substr(l_string,l_index+1);
    END LOOP;
    END parse_textarea; --}}}
    PROCEDURE parse_file( --{{{
    p_file_name IN VARCHAR2,
    p_collection_name IN VARCHAR2,
    p_headings_item IN VARCHAR2,
    p_columns_item IN VARCHAR2,
    p_ddl_item IN VARCHAR2,
    p_table_name IN VARCHAR2 DEFAULT NULL
    IS
    l_blob blob;
    l_records varchar2_t;
    l_record wwv_flow_global.vc_arr2;
    l_datatypes wwv_flow_global.vc_arr2;
    l_headings VARCHAR2(4000);
    l_columns VARCHAR2(4000);
    l_seq_id NUMBER;
    l_num_columns INTEGER;
    l_ddl VARCHAR2(4000);
    BEGIN
    IF (p_table_name is not null)
    THEN
    BEGIN
    execute immediate 'drop table '||p_table_name;
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END;
    l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
    htmldb_util.set_session_state('P149_DEBUG',l_ddl);
    execute immediate l_ddl;
    l_ddl := 'insert into '||p_table_name||' '||
    'select '||v(p_columns_item)||' '||
    'from htmldb_collections '||
    'where seq_id > 1 and collection_name='''||p_collection_name||'''';
    htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
    execute immediate l_ddl;
    RETURN;
    END IF;
    BEGIN
    select blob_content into l_blob from wwv_flow_files
    where name=p_file_name;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    raise_application_error(-20000,'File not found, id='||p_file_name);
    END;
    get_records(l_blob,l_records);
    IF (l_records.count < 3)
    THEN
    raise_application_error(-20000,'File must have at least 3 ROWS, id='||p_file_name);
    END IF;
    -- Initialize collection
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    -- Get column headings and datatypes
    csv_to_array(l_records(1),l_record);
    csv_to_array(l_records(2),l_datatypes);
    l_num_columns := l_record.count;
    if (l_num_columns > 50) then
    raise_application_error(-20000,'Max. of 50 columns allowed, id='||p_file_name);
    end if;
    -- Get column headings and names
    FOR i IN 1..l_record.count
    LOOP
    l_headings := l_headings||':'||l_record(i);
    l_columns := l_columns||',c'||lpad(i,3,'0');
    END LOOP;
    l_headings := ltrim(l_headings,':');
    l_columns := ltrim(l_columns,',');
    htmldb_util.set_session_state(p_headings_item,l_headings);
    htmldb_util.set_session_state(p_columns_item,l_columns);
    -- Get datatypes
    FOR i IN 1..l_record.count
    LOOP
    l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
    END LOOP;
    l_ddl := '('||ltrim(l_ddl,',')||')';
    htmldb_util.set_session_state(p_ddl_item,l_ddl);
    -- Save data into specified collection
    FOR i IN 2..l_records.count
    LOOP
    csv_to_array(l_records(i),l_record);
    l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
    FOR i IN 1..l_record.count
    LOOP
    htmldb_collection.update_member_attribute(
    p_collection_name=> p_collection_name,
    p_seq => l_seq_id,
    p_attr_number => i,
    p_attr_value => l_record(i)
    END LOOP;
    END LOOP;
    DELETE FROM wwv_flow_files WHERE name=p_file_name;
    END;
    BEGIN
    NULL;
    END;
    /

  • Sender mail adapter : no messages and no error log

    Hello,
    I have configured a sender mail adapter to read mails from the inbox. I have used IMAP protocol. URL is specified as imap://EMHBSEXM01/Inbox. User name and password is also specified properly. I have kept poll interval to 1 minute. Messages in the inbox are in unread status. But the mail is not getting processed. I do not see anything after 1 minute. I tried using generate fetch report flag. But even then it does not create any message in SXMB_MONI. I checked runtime workbench for Mail adapter but I do not see any message for the same. Is there something that I am missing?
    Thanks,
    Dev

    Hi All,
    I chekced your responses and tried accordingly. Our basis team has given me new link now and the error message has changed. I am getting following error message.
    exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state.
    Does anyone have any idea what this error is?
    Thanks in advance,
    Devendra

  • Auditing and Custom error logging

    Guys,
    Can one of you tell me how can we do auditing in ODI i.e like say if load files how many records the file have and how many we have loaded for each file and how many are
    bad records etc and how many records we have inserted/updated in each table etc.
    Basically some sort of report we need to send in the end as audit report after odi batch run every day
    Can we do this in ODI?
    Is it possible to do sort of custome error logging like what we do in pl/sql, like inserting into error log table when ever oracle error comes or any runtime error which we need to insert into table etc.
    Can we do this kind of error handling ODI?
    Cheers
    Sri
    Edited by: aranisrinivas on 26-Nov-2011 10:13

    Just use below details for your required information
    '<%=odiRef.getPrevStepLog("STEP_NAME")%>'
    '<%=odiRef.getPrevStepLog("SESS_NO")%>'
    '<%=odiRef.getPrevStepLog("MESSAGE")%>'
    '<%=odiRef.getPrevStepLog("ERROR_COUNT")%>'
    You can get more details from below tables.
    1) snp_sess_txt_log -( It holds the scripts used for the task and session details)
    2) snp_sess_task_log-(It holds the time details error msg and all)
    3) snp_sess_task -( it holds the name of the task and technology , context details
    Thanks

  • How do you turn on NFS and RPC error logging?

    I'm trying ot find NFS and RPC errors. Di I need to turn error logging on for those calls? Where would/should they show up?

    This is what I use;
    log4j.logger.com.businessobjects = DEBUG, stdoutAppender
    log4j.logger.com.businessobjects12 = DEBUG, stdoutAppender
    log4j.logger.com.crystalreports = DEBUG, stdoutAppender
    log4j.logger.com.crystaldecisions12 = DEBUG,  stdoutAppender
    log4j.logger.com.crystaldecisions = DEBUG,  stdoutAppender
    You will of course need to adjust to the log4j appender you have declared
    Steve

  • Mac pro goes to sleep and the error  log say "The smart launch will be terminated"

    Several times in the last few days my Mac Pro early 2008 has locked up.  This occures when leave the machine and come back to it.  I see the screen is black and the only thing that I see after clicking the mouse and pressing keys on the keyboard, is the white outline of the curser that will move across the screen.  Nothing will bring the system back and my only option is to hold down the power button until the unit shuts down. 
    I checked the logs in the console and the error message that I see is:  mm/dd/yy 9:49:17.719 AM SmartLaunch[31448]: The SmartLaunch will be terminated.
    Any clue where I should start looking?
    Steve Ornat

    That is a great idea to check the memory temperture.  Do they have built in temperture senors and then is there a terminal command to run to check that?  Also how do I change the speed of the fans, again a terminal command?
    I was mistaken, I bought 4- 4GB memory modules, with heatsinks. (8GB were tooooo expensive)  It should be good memory but certainly I wonder as this never happened before the new memory was added, 5 or 6 weeks ago.
    My memory config is:
    2 - 1 GB (orginal whe n I got the sytem)
    2 - 2 GB added 1 year ago from OWC
    4 - 4 GB added 6 weeks ago from ??
    Good suggetions about the hard drive.   I did add a new Seagate 3TB drive a year ago when I got this machine, and I use it for all my data stoage and tunes and pixs and only use the 250GB dirve of OS and apps.  I have not installed the OS and apps on the 3TB drive and that would be an easy thing to do.

  • Back ground scheduling and capturing error log

    hi friends,
    i have to write a report and call a function module for passing one by one those conversion progs which fm is suitable what it is
    one more boubt like i can maintain those conversions in structure and i can loop those one by one passing into fm
    i have to capture those error records
    i have to check whether the coversions runs properly or not.

    Hi,
    create one error table store messages in that.
    using sy-subrc you can identify status.
    for capturing put some condition to identify error records.
    Write subroutine for updating table with error messages.

  • Ipod skips past several songs then freezes and shows error message

    My ipod recently started skipping past several songs at a time. When this happens, the album artwork doesn't match up with the song title shown beside it and the ipod just keeps skipping over songs, sometimes 20 or 30 until it finally stops and starts working again. Then it will just stop all-together and show an error message.....connect to apple.com/ipod/support. Anyone have any idea why this happens and if it can be stopped? Is there any way that the album artwork slows everything down and causes the problem?
    Thanks
    [email protected]

    My ipod is still not working right. I've tried everything. I had recently started using an external hard drive to store itunes when the problems began. Is it possible that my music is not transferring correctly from the Ex. H.D. to my ipod.Some songs play fine one time, then don't the next. Any suggestions at all would be most appreciated. Please help, I really miss my ipod.

  • How do I change the location of the coldfusion-out.log and coldfusion-error.log files in CF10

    When I change the log location in ColdFusion Administrator it changes the location of most but not all the log files.  I have a requirement from my customer to place all log files on a separate partition on the server.  For ColdFusion 9 I was able to modify the registry settings to change StandardOut and StandardErr for the ColdFusion Jrun service.  This does not appear to the case for ColdFusion 10 which now uses Tomcat 7.
    I tried modifying log4j.properties file and was able to relocate the hibernatesql.log, axis2.log, and esapiconfig.log but not the coldfusion-out.log.
    I am running ColdFusion 10 Enterprise Edition on a 64-bit Windows 2008 Server.

    The location of the rest of the ColdFusion logs can be changed in the ColdFusion Administrator.  Go to the Debugging and Logging section, Logging Settings.  There is a form at the top of the page where you can change the log storage location.
    -Carl V.

  • Excise invoice in the background

    Dear friends,
    I am trying to create excise invoice in the background, and have made the necessary setting in the excise group and default excise group / series for the sales area. Now when i am creating the proforma invoice  against which an excise invoice is to be genearted i get a message "Print excise invoice in series group 98 using j1ip for billing document. ... Its not saving the excise invoice in background. Please advise.
    Regards,
    Udaynath.

    27.10.2010
    Reazuddin, i have tried this and have maintained the snro for series group 98 for j_1iexcloc. But after the message of "Print excise invoice in series group 98 using j1ip for billing document " if i continue, i get a termination message 
    Transaction..   VF01
    Update key...   4CC6A681B2190090E1008000AC1C0243
    Generated....   26.10.2010, 23:09:19
    Completed....   26.10.2010, 23:09:22
    Error Info...   8I 336: Error in allocating Excise invoice
    Please suggest.
    Regards,
    Udaynath

  • How to write error log while creating invoice and avoid implicite commit

    Hi,
    I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
    Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
    Thanks

    @ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work.  Also SAP support would not answer to the question in my OSS.
    In VOFM, SAP is using routine  VBFS_HINZUFUEGEN_ALLG to write to error log.
    Mine is something like this in ue:
          PERFORM ZVBFS_HINZUFUEGEN_ALLG
                     USING VBAP-VBELN VBAP-POSNR  'ZSD' 'E '600'
                           SPACE SPACE SPACE SPACE.
    (we have custom message class)
    As result  XVBFS and VBSK are filled with error, but posting is also done.  Error log is filled but invoice is created and posted in FI.
    That is not OK.
    thanks

  • Motion how to create 3d effect with a background and one primary object

    motion how to create 3d effect with a background and one primary object

    … like that?
    http://youtu.be/yOht1GJpEm4

  • Report: Create report for invoice details, shipping details and partner fn.

    hi,
    i want to know the table used for Invoice Details, Shipping Details and Partner Function in SD.
    thanks in advance.

    Hi Chandrasekar,
    Welcome to SDN.
    Please check this link for SD tables.
    http://www.sapgenie.com/abap/tables_sd.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

Maybe you are looking for