$   1 number gets display in VL02N / VL03N after delivery creation in VL10B

Hi,
$          1 number is getting displayed as default delivery number in initial screen in VL02N & VL03N immediately after you create OBD through VL10B.
Actually system should display the last OBD number which got created through VL10B.
I don't know the reasons why it is happening.
Any idea?
Please revert,
Thank you,
Dipak

Hi Ankur,
You got it right,
We have done a coding to raise an error message and to terminate the process from creating the delivery in the badi method IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_FINAL_CHECK by filling the table  ct_finchdel with the message and the message type as  'E' as shown below
based on some check we are giving the below message 
  READ TABLE it_xlikp INTO z_wa_likp INDEX  '1' .
    z_wa_finchdel-pruefung = '99'.
    z_wa_finchdel-vbeln  = z_wa_likp-vbeln.
    z_wa_finchdel-msgty = 'E'.
    z_wa_finchdel-msgno = '005'.
    z_wa_finchdel-msgid = 'ZLOMSG'.
    INSERT z_wa_finchdel INTO TABLE ct_finchdel.
System terminate here and we can see the log too that it has failed in creating OBD.
the reason we found after debugging is that the standard program is not clearing the header line of the itab XLIKP after deleting the entries in the table XLIKP based on the entries in the table gt_finchdel.
And  also the std program reads the table XLIKP with index one which returns sy-subrc as 4(as there wont be any values in the table) but still it sets the parameter VL with that uncleared header value of the XLIKP table.
Any idea to resolve or clear the variable so that once user fails to create the OBD in VL10B, if user immediately goes to VL02/1/3/N system should not show the document no as $        1.
Thank you,
Dipak

Similar Messages

  • Delivery split reason after delivery creation

    Hi All,
    We have an issue with an outbound delivery.
    There are 5 materials in the Sales order and have common Item category, Plant, Shipping point, Delivery date and Route.
    But somehow 5 different deliveries created by a batch job.
    I need to find out the reason for the split now.
    I checked these 5 deliveries in LIKP, all the header details looks similar including ZUKRL field.
    Is there any report or t code available to check split reason after delivery reason.
    Kindly suggest.
    Regards,
    Raja Durai

    Hi All,
    Thanks for all your reponse.
    Finally I found the isse. To determine, partners they are using some userexit. Forwarding agent detemined in the Sales order and Delivery are different.
    I mostly compare the LIKP and LIPS tables. When I passed both Sales order and Delivery into VBPA table, I found the issue.
    Here in our company, Forwarding agent is determined in the Sales order item level and these are copied only Outbound delivery header level, so somehow these things confused me.
    But still I am wondering, there is no standard tool available in SAP to check Delivery split reason if the report ZLE_ANALYZE_DELIVERY_SPLIT is not there.
    It is a bit of difficult job to compare tables field by field.
    By the way thanks for all your hints.
    Regards,
    Raja Durai

  • STO - Excise tab not getting displayed in material document after posting.

    Dear all,
    We are facing an STO issue where in after we have done the receipt at the receiving plant with excise, the excise tab does not display in the GR material document.
    It is plant to plant stock transfer with excise, the process that we are following as given below:
    1) STO PO - ME21N
    2) Outbound delivery - VL10B - Post PGI in VL02N
    3) Outgoing excise invoice - J1IIN  - With the key DLFC.
    4) GR - MIGO with excise invoice capture.
    During GR posting in MIGO screen the system does display the excise tab, we enter the outgoing excise number and the corresponding values appear in BED, ECS and HCES. We post the GR material document.
    But after posting the material document if we display the same GR material document it does not show the excise invoice tab. And since we are not having part 1 entry number we are not able to post the part 2 entry in J1IEX.
    Request to please do let us know if we have missed out on any configuration or master data.
    Regards,
    mahesh.

    Hi,
    Do the all customization setting for CIN for reference check the following link for India. and Material management
    http://help.sap.com/bp_bblibrary/600/BBlibrary_start.htm
    You have to maintain Excise master data for material,vendor and PLant in J1ID .
    reward if helpful,

  • PO number not displaying for STO PO between storage locations in VL10B

    Hi Experts
    I have created a STO PO for stock transfer between 2 storage locations.
    The PO has been created correctly - along with the "Shipping" details aptly.
    However, when I execute VL10B along with the PO, the output screen doesn't show the PO created.
    I have checked various discussions and verified the same. However, I am unable to create the outbound delivery for the PO.
    Please help me on this.
    Best Regards
    Sudhi

    Remove everything from the selection screen (including shipping point and delv. date). Just put the PO in the Purchase Order tab. Check all the other tabs, material, user role etc for extraneous/incorrect info.
    Does the PO appear then?

  • Ship to party address no change in sales order after delivery creation

    hi
    We have a below requirement
    After creation of delivery document,we should not be able to go and change ship to party in va02 of sales order..
    Tried using partner functions config,but it disables ship to party change completely...
    But we want to disable ship to party change only if delivery is already created.
    regards
    sudha

    hi swetha,
    as per my understanding goes:
    you need to make SH field GREY when a delivery document is generated for it.
    but now even if delivery is created or not SH field is GREYED.
    you can use
    USEREXIT_MOVE_FIELD_TO_VBAK in program MV45AFZZ
    LOGIC : when ever the sales order status is completed or partially completed then only this SH field should be GREYED other wise NOT.
    hope this clears your issue & please check from your end
    balajia

  • Inventory Confirmation after Delivery Creation!!!

    Hello
    We have a strange requirement. An order gets created by IDOC.
    1) NO ATP & SCHEDULE Line should be determined.
    2) Delivery should be created.
    3) Ready to Pick/Pack with Transportation details.
    4) Customer REP should confirm inventory at this STEP.
    i.e Inventory should be approcahed/reduced/blocked only at step 4.
    Till 3 the stock shouldn't be under HOLD.
    one of the reason being, order is taken in July and process it in November/December.
    Even then the stock should be touched only when everything is ready! Del/Pic/Pack instructions and transportation.
    Sounds little weird. Can we achieve this without any ABAP changes.
    Is there a way to hold stock in BUFFER without actually blocking inventory during Sales order creation & confirmation.
    Kindly help me with your inputs and i really appreciate your help.
    Thanks

    Your process is different than the regular cycle. Consider the following process -
    1) Create a Contract type of document from the incoming IDoc. You will register the order and at the same time, suppress any schedule lines.
    2) Do NOT create any subsequent document at this time. Later (November) the Reps can create sales order with ref to the contract. Schedule lines will be created based on ATP.
    3) Reps can re-shuffle stock using V_V2, prrioritizing orders as they want.
    4) Then run delivery due list and create deliveries.
    This will meet all your requirements, except that delivery will not be created in step (2). Why do you need it so early, anyway??

  • Catalog id is not getting displayed properly in Foreign Language (French)

    Hi All,
    I have created a web service id for the external catalog and I have assigned the same to one of the user. The name of the web service id is getting displayed properly in the shopping cart creation screen when the language is English. But when we are changing the user language to Foreign language (French), the name is not getting displayed properly.
    Could you please advise me if there any settings needs to be done in the parameters of the specific web service id. Thanks in advance for your help.

    Hi,
    Go to External Web Services and the select the web service ID. Then click on GOTO >Translation and select the language and enter the description of the web service as to be disaplyed while users log in French against the language.
    Thanks,
    Anshu

  • Screen fields not getting displayed after Line 16

    Hi All,
    There is a screen exit created in IW51, now the new requirment is to add 3 more fields.  I added the fields below the exiting fields, in line number 15 , 16 &17. After executing the Tcode I could find that the field created in line 17 is not getting displayed in runtime. I have increased the screen length. The fields if moved to line numbers below 16 then they are getting displayed. Can anyone help me to find why it is not getting displayed after line 16.

    Hi,
    Can you give me the Enhancement name?
    I searched for the exits using package , but i did not find any screen exists for that IW51 Tcode?

  • Page number to get displayed only when the page count is more than 1

    Hi Gurus,
    My requirement is to print page numbers ONLY if the page count is more than 1 ,i.e. if the data getting displayed in 1 page only then don't print "Page n of m" but if it is getting displayed in more than 1 page then display "Page n of m" on TOP right corner.
    I selected "Page n of m" and it creates 3 fields in object hierarchy i.e TextField CurrentPage, TextField PageCount and Static Text field Pages.
    I go to the ready:layout of PageCount object, and use below script:
    this.rawValue = xfa.layout.pageCount(); 
    if (this.rawValue == 1) {
    this.parent.Pages.presence     = "invisible";
    I looked at the message Page number not to display but it doesnot resolve my problem.
    Please help me out.
    Regards
    Ajay

    Hello Ajay,
    Script do not work for TextFields.  to get the page numbers displayed.  Select Text field from library and Go to Object Pallete, Value tab and select "Calculated - Read Only" in Type and choose Runtime property.  There you can find the Number of Pages.
    Once this is the text field, you can write script on it. 
    If(this.rawValue == 1)
      this.presence = "invisible"
    similarly write script for total number of pages, but make sure that variable is accessed properly.
    Please let me know, if you still see some issues with it.
    Thanks,
    Rakesh

  • I need that this button must get displayed after an empty space below table

    Hi
    I have created a table and added a button at bottom of table.
    I need that this button must get displayed after an empty space below table.
    How can i get an empty space there.
    I have took a transparent container and selected a grid layout for it.
    Thanks.

    Thanks Apurva....inserting "Horizontal gutter" solved my problem.
    I need one more help.
    In this transparent container, i have to add a header text displaying caption for this table and then a section which will display some buttons and text, then this table will be displayed and at last this update button.
    i.e.
    1.  header text
    2.  area with few buttons and text(lables)
    3. Current table
    4. update button.
    for this as i specified i have used a transparent container with grid layout...
    Please guide me in this...
    Thanks....

  • Data is not getting displayed after Exception,mysterious cause?

    Hi, Good Afternoon all,
    I'm Kittu. I have got a peculiar problem(it seems peculiar atleast to me) in my application, i donno whether it is programmatic error or problem with the environment that i'm using.
    In my application,I'm using java with NetBeans 5.5.1(Server being Tomcat). Problem is : once I get certain kind of exceptions in 'Bundled Tomcat(log)' window of Netbeans output, all the data and content that generally gets displayed in 'Bundled Tomcat' window of NetBeans output.(Note that these two are different windows) , gets erased and no more displaying is happening. Dont know what must be the problem. Please, if anybody knows the cause of such situation, DO RESPOND. I'll be waiting for your replies.Thanx in advance.
    ---Kittu.

    It's likely what'd confusing you is the way Netbeans automatically switches between tabbed windows in the Output area at the bottom of the window.
    There's a variety of windows to look at (especially when running a server), but it only shows one at a time, and will switch to the one with the latest output. To see the window you were previously looking at you'll have to switch back by clicking a tab.

  • Can't get into my DE anymore after nvidia/nouveau switch + other stuff

    I made a mess of things, and I'd very much like to get my system back into a normal state. Here's a brief history of important events:
    (1) About 2 weeks ago after a system update, I couldn't log into Gnome via GDM anymore (see topic). Thankfully I could still get into Gnome via 'startx', so I stuck with that for a while. Busy time, and no real fix was forthcoming.
    (2) About 4 days ago after a system update, that didn't work anymore either. (Both monitors would just stay black, but with a thick white bar on the left side of the right monitor.)
    (3) I switched from binary nvidia drivers to nouveau, in the hope that that would fix things. It did, sort of. I could use startx again, but my display would now freeze after a short time of use, with many nouveau related errors in dmesg. My bug report to freedesktop.org about this is most comprehensive.
    I really need a functional PC right now. Short of an actual fix, I'd love to just roll back everything to the state it was a month ago or so. But no luck there either.
    (4) I installed the nvidia drivers again, uninstalled the nouveau stuff, set my system to query the Arch Rollback Machine for a month ago, and did a `pacman -Syyuu --force`. GDM still doesn't work, nor does startx. Using startx, I get the following 'Xorg.0.log' (I remember getting the same errors during my earlier messing about):
    [ 40.414]
    X.Org X Server 1.17.1
    Release Date: 2015-02-10
    [ 40.414] X Protocol Version 11, Revision 0
    [ 40.414] Build Operating System: Linux 3.18.6-1-ARCH x86_64
    [ 40.414] Current Operating System: Linux mhelvens-pc 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64
    [ 40.414] Kernel command line: initrd=\initramfs-linux.img rw root=/dev/disk/by-label/root resume=/dev/disk/by-label/swap usbhid.quirks=0x1B1C:0x1B13:0x20000000
    [ 40.414] Build Date: 14 March 2015 06:45:50PM
    [ 40.414]
    [ 40.414] Current version of pixman: 0.32.6
    [ 40.414] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 40.414] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 40.414] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 16 21:19:34 2015
    [ 40.414] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 40.414] (==) No Layout section. Using the first Screen section.
    [ 40.414] (==) No screen section available. Using defaults.
    [ 40.414] (**) |-->Screen "Default Screen Section" (0)
    [ 40.414] (**) | |-->Monitor "<default monitor>"
    [ 40.414] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 40.414] (==) Automatically adding devices
    [ 40.414] (==) Automatically enabling devices
    [ 40.414] (==) Automatically adding GPU devices
    [ 40.414] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
    [ 40.414] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 40.414] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 40.414] (II) Loader magic: 0x815d80
    [ 40.414] (II) Module ABI versions:
    [ 40.414] X.Org ANSI C Emulation: 0.4
    [ 40.414] X.Org Video Driver: 19.0
    [ 40.414] X.Org XInput driver : 21.0
    [ 40.414] X.Org Server Extension : 9.0
    [ 40.415] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c11
    [ 40.415] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 40.416] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
    [ 40.416] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 40.416] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 9 paused 0
    [ 40.417] (--) PCI: (0:0:2:0) 8086:0412:1462:7930 rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
    [ 40.417] (--) PCI:*(0:1:0:0) 10de:1184:1462:2990 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 40.417] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 40.417] (II) LoadModule: "glx"
    [ 40.417] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 40.421] (II) Module glx: vendor="NVIDIA Corporation"
    [ 40.422] compiled for 4.0.2, module version = 1.0.0
    [ 40.422] Module class: X.Org Server Extension
    [ 40.422] (II) NVIDIA GLX Module 346.59 Tue Mar 31 13:38:58 PDT 2015
    [ 40.422] (II) Applying OutputClass "nvidia" to /dev/dri/card0
    [ 40.422] loading driver: nvidia
    [ 40.422] (==) Matched nvidia as autoconfigured driver 0
    [ 40.422] (==) Matched nouveau as autoconfigured driver 1
    [ 40.422] (==) Matched nv as autoconfigured driver 2
    [ 40.422] (==) Matched intel as autoconfigured driver 3
    [ 40.422] (==) Matched nouveau as autoconfigured driver 4
    [ 40.422] (==) Matched nv as autoconfigured driver 5
    [ 40.422] (==) Matched modesetting as autoconfigured driver 6
    [ 40.422] (==) Matched fbdev as autoconfigured driver 7
    [ 40.422] (==) Matched vesa as autoconfigured driver 8
    [ 40.422] (==) Assigned the driver to the xf86ConfigLayout
    [ 40.422] (II) LoadModule: "nvidia"
    [ 40.422] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 40.422] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 40.422] compiled for 4.0.2, module version = 1.0.0
    [ 40.422] Module class: X.Org Video Driver
    [ 40.422] (II) LoadModule: "nouveau"
    [ 40.422] (WW) Warning, couldn't open module nouveau
    [ 40.422] (II) UnloadModule: "nouveau"
    [ 40.422] (II) Unloading nouveau
    [ 40.422] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 40.422] (II) LoadModule: "nv"
    [ 40.422] (WW) Warning, couldn't open module nv
    [ 40.422] (II) UnloadModule: "nv"
    [ 40.422] (II) Unloading nv
    [ 40.422] (EE) Failed to load module "nv" (module does not exist, 0)
    [ 40.422] (II) LoadModule: "intel"
    [ 40.422] (WW) Warning, couldn't open module intel
    [ 40.422] (II) UnloadModule: "intel"
    [ 40.422] (II) Unloading intel
    [ 40.422] (EE) Failed to load module "intel" (module does not exist, 0)
    [ 40.422] (II) LoadModule: "modesetting"
    [ 40.422] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [ 40.422] (II) Module modesetting: vendor="X.Org Foundation"
    [ 40.422] compiled for 1.17.1, module version = 1.17.1
    [ 40.422] Module class: X.Org Video Driver
    [ 40.422] ABI class: X.Org Video Driver, version 19.0
    [ 40.422] (II) LoadModule: "fbdev"
    [ 40.422] (WW) Warning, couldn't open module fbdev
    [ 40.422] (II) UnloadModule: "fbdev"
    [ 40.422] (II) Unloading fbdev
    [ 40.422] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 40.422] (II) LoadModule: "vesa"
    [ 40.422] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 40.422] (II) Module vesa: vendor="X.Org Foundation"
    [ 40.422] compiled for 1.17.0, module version = 2.3.2
    [ 40.422] Module class: X.Org Video Driver
    [ 40.422] ABI class: X.Org Video Driver, version 19.0
    [ 40.422] (II) NVIDIA dlloader X Driver 346.59 Tue Mar 31 13:17:41 PDT 2015
    [ 40.422] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 40.422] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [ 40.422] (II) VESA: driver for VESA chipsets: vesa
    [ 40.422] (++) using VT number 2
    [ 40.422] (--) controlling tty is VT number 2, auto-enabling KeepTty
    [ 40.422] (II) Loading sub module "fb"
    [ 40.422] (II) LoadModule: "fb"
    [ 40.423] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 40.423] (II) Module fb: vendor="X.Org Foundation"
    [ 40.423] compiled for 1.17.1, module version = 1.0.0
    [ 40.423] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 40.423] (II) Loading sub module "wfb"
    [ 40.423] (II) LoadModule: "wfb"
    [ 40.423] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 40.423] (II) Module wfb: vendor="X.Org Foundation"
    [ 40.423] compiled for 1.17.1, module version = 1.0.0
    [ 40.423] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 40.423] (II) Loading sub module "ramdac"
    [ 40.423] (II) LoadModule: "ramdac"
    [ 40.423] (II) Module "ramdac" already built-in
    [ 40.423] (II) modeset(G0): using drv /dev/dri/card1
    [ 40.423] (WW) Falling back to old probe method for modesetting
    [ 40.423] (WW) Falling back to old probe method for vesa
    [ 40.423] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 40.423] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 40.423] (==) NVIDIA(0): RGB weight 888
    [ 40.423] (==) NVIDIA(0): Default visual is TrueColor
    [ 40.423] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 40.423] (**) NVIDIA(0): Enabling 2D acceleration
    [ 40.770] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20150116)
    [ 40.771] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 770 (GK104) at PCI:1:0:0 (GPU-0)
    [ 40.771] (--) NVIDIA(0): Memory: 2097152 kBytes
    [ 40.771] (--) NVIDIA(0): VideoBIOS: 80.04.c3.00.00
    [ 40.771] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 40.779] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 770 at PCI:1:0:0
    [ 40.779] (--) NVIDIA(0): CRT-0
    [ 40.779] (--) NVIDIA(0): DELL U2713HM (DFP-0) (boot, connected)
    [ 40.779] (--) NVIDIA(0): SHARP HDMI (DFP-1) (connected)
    [ 40.779] (--) NVIDIA(0): DFP-2
    [ 40.779] (--) NVIDIA(0): DELL U2713HM (DFP-3) (connected)
    [ 40.779] (--) NVIDIA(0): DFP-4
    [ 40.779] (--) NVIDIA(GPU-0): CRT-0: 400.0 MHz maximum pixel clock
    [ 40.779] (--) NVIDIA(0): DELL U2713HM (DFP-0): Internal TMDS
    [ 40.779] (--) NVIDIA(GPU-0): DELL U2713HM (DFP-0): 330.0 MHz maximum pixel clock
    [ 40.779] (--) NVIDIA(0): SHARP HDMI (DFP-1): Internal TMDS
    [ 40.779] (--) NVIDIA(GPU-0): SHARP HDMI (DFP-1): 340.0 MHz maximum pixel clock
    [ 40.779] (--) NVIDIA(0): DFP-2: Internal TMDS
    [ 40.779] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
    [ 40.779] (--) NVIDIA(0): DELL U2713HM (DFP-3): Internal TMDS
    [ 40.779] (--) NVIDIA(GPU-0): DELL U2713HM (DFP-3): 330.0 MHz maximum pixel clock
    [ 40.779] (--) NVIDIA(0): DFP-4: Internal DisplayPort
    [ 40.779] (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
    [ 40.779] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 40.779] (**) NVIDIA(0): device DELL U2713HM (DFP-0) (Using EDID frequencies has
    [ 40.779] (**) NVIDIA(0): been enabled on all display devices.)
    [ 40.780] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 40.780] (**) NVIDIA(0): device SHARP HDMI (DFP-1) (Using EDID frequencies has been
    [ 40.780] (**) NVIDIA(0): enabled on all display devices.)
    [ 40.781] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
    [ 40.781] (**) NVIDIA(0): device DELL U2713HM (DFP-3) (Using EDID frequencies has
    [ 40.781] (**) NVIDIA(0): been enabled on all display devices.)
    [ 40.782] (==) NVIDIA(0):
    [ 40.782] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 40.782] (==) NVIDIA(0): will be used as the requested mode.
    [ 40.782] (==) NVIDIA(0):
    [ 40.782] (II) NVIDIA(0): Validated MetaModes:
    [ 40.782] (II) NVIDIA(0):
    [ 40.782] (II) NVIDIA(0): "DFP-0:nvidia-auto-select,DFP-1:nvidia-auto-select,DFP-3:nvidia-auto-select"
    [ 40.782] (II) NVIDIA(0): Virtual screen size determined to be 7040 x 1440
    [ 40.816] (--) NVIDIA(0): DPI set to (108, 107); computed from "UseEdidDpi" X config
    [ 40.816] (--) NVIDIA(0): option
    [ 40.816] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
    [ 40.816] (==) modeset(G0): RGB weight 888
    [ 40.816] (==) modeset(G0): Default visual is TrueColor
    [ 40.816] (II) Loading sub module "glamoregl"
    [ 40.816] (II) LoadModule: "glamoregl"
    [ 40.816] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
    [ 40.818] (II) Module glamoregl: vendor="X.Org Foundation"
    [ 40.818] compiled for 1.17.1, module version = 1.0.0
    [ 40.818] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 40.818] (II) glamor: OpenGL accelerated X.org driver based.
    [ 40.830] (EE)
    [ 40.830] (EE) Backtrace:
    [ 40.830] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x119) [0x5949c9]
    [ 40.830] (EE) 1: /usr/lib/libc.so.6 (__restore_rt+0x0) [0x7f1989d2053f]
    [ 40.830] (EE) 2: /usr/lib/libX11.so.6 (_XSend+0x2b) [0x7f197fa6301b]
    [ 40.830] (EE) 3: /usr/lib/libX11.so.6 (_XFlush+0x15) [0x7f197fa634d5]
    [ 40.830] (EE) 4: /usr/lib/libX11.so.6 (_XGetRequest+0x55) [0x7f197fa65fa5]
    [ 40.830] (EE) 5: /usr/lib/libX11.so.6 (XQueryExtension+0x4d) [0x7f197fa5955d]
    [ 40.830] (EE) 6: /usr/lib/libX11.so.6 (XInitExtension+0x32) [0x7f197fa4d352]
    [ 40.831] (EE) 7: /usr/lib/libXext.so.6 (XextAddDisplay+0x4f) [0x7f197f81c38f]
    [ 40.831] (EE) 8: /usr/lib/libnvidia-glsi.so.346.59 (_nv016glsi+0x5f467) [0x7f197fe254b7]
    [ 40.831] (EE) 9: /usr/lib/libnvidia-glsi.so.346.59 (_nv016glsi+0x804) [0x7f197fd67bf4]
    [ 40.831] (EE) unw_get_proc_name failed: no unwind info found [-10]
    [ 40.831] (EE) 10: /usr/lib/libEGL.so.1 (?+0x804) [0x7f1980010ef4]
    [ 40.831] (EE) unw_get_proc_name failed: no unwind info found [-10]
    [ 40.831] (EE) 11: /usr/lib/libEGL.so.1 (?+0x804) [0x7f1980011924]
    [ 40.831] (EE) 12: /usr/lib/libEGL.so.1 (NvEglRegClientApi+0x4f36) [0x7f198001e866]
    [ 40.831] (EE) 13: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x99) [0x7f1982557539]
    [ 40.831] (EE) 14: /usr/lib/xorg/modules/drivers/modesetting_drv.so (_init+0x29ce) [0x7f1982df6e9e]
    [ 40.831] (EE) 15: /usr/lib/xorg-server/Xorg (InitOutput+0xbcc) [0x47b63c]
    [ 40.831] (EE) 16: /usr/lib/xorg-server/Xorg (remove_fs_handlers+0x22a) [0x43c9da]
    [ 40.831] (EE) 17: /usr/lib/libc.so.6 (__libc_start_main+0xf0) [0x7f1989d0d800]
    [ 40.831] (EE) 18: /usr/lib/xorg-server/Xorg (_start+0x29) [0x427039]
    [ 40.832] (EE) 19: ? (?+0x29) [0x29]
    [ 40.832] (EE)
    [ 40.832] (EE) Segmentation fault at address 0x0
    [ 40.832] (EE)
    Fatal server error:
    [ 40.832] (EE) Caught signal 11 (Segmentation fault). Server aborting
    [ 40.832] (EE)
    [ 40.832] (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 40.832] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 40.832] (EE)
    [ 40.832] (EE) Server terminated with error (1). Closing log file.
    A (virtual) beer to whomever can help me out of this jam!
    Please let me know what additional info I should provide.

    Malkymder wrote:
    Glad to hear it is a step forward ...
    can you try with another Display manager like lightdm see if that works ?
    I might try that, though now that I finally have my PC back I have some other work that takes priority for a few days. :-)
    Malkymder wrote:And yes xorg.conf should be replaced with /etc/xorg.conf.d/20-nvidia.conf instead
    I'm using `nvidia-xconfig` to generate that file (I haven't had to tinker with it manually for years now).
    The tool generates this 'deprecated' file. Should I just move its exact content to the new location?

  • Blank page is getting displayed in SAPScript when using NEW-PAGE option.

    Hello Experts,
    We have created a customized SAPScript and in this separate Script is generated based on the currency(WAERS).
    So if we have 3 different currencies, then 3 pages will be created with there details, but we are using NEW-PAGE option in
    MAIN window to separate the pages and after 3rd page it is displaying 4th page also with footer details.
    So how can we avoid last blank page which is getting displayed?

    Hi isha.walia ,
       This issue can be solved by two ways. Please take the one which suits you better.
    Solution 1: If  you need to generate separate prints for different currencies.
    In the driver program, build an internal table for different currencies which needed to be printed. (Using delete adjacent duplicates, build the internal table with exact number of currencies to be printed). Remove the NEW-PAGE option and call the script/form inside the loop. Do the necessary conditions to manipulate the print.
    Advantages of above solution: Better control on spools if needed.
    Solution 2:  Get the count of the number of pages in a variable. Inside the print loop, increment a flag counter. Check it against the variable which contains the number of pages to be printed at the end of each page. Exit the loop when the number of pages to be printed is reached.
    Advantage of above solution: Simple to write the program.
    Thanks and Regards
    Raghesh R S

  • Filtering- Getting count of distinct doc after filtering

    HI Gurus!
    I have a report that shows the sales order report . In its ALV ouptput I have created a count column which gives me the number of lines in the report and also I have created the top of page in which it gives me the number of distinct sales document numbers count . I.e for a particular selection the count of line items are say 765 and the number of distinct sales documents are 70  which I have printed on the top of the page in the layout. Now if we do some kind of filtering process in the output the number of sales documents printed on top of page remains the same while the coumnt of line items changes a sper the filtering . The count on the top of page for the sales order dosent change as it prints the number from the internal table which is understandable. But is there a possibility that I create another column next to the sales doc number column and at the beginning of each of the new sales document it prints one and for all the other duplicates it prints 0 and then do the sum for it , so that even on filtering it gives me the count that remains after filter while the total number of distinct sale doc remains on top from the internal table.
    Is this possible to do so that I get thenumber of sales doc even after filter process?
    If so please advice how to get it.
    Regards

    Well as of now my report does sommething like this.
    *& Report  ZSD_SALES_ORDERS                                            *
    *&         Sales Orders Report (tcode zva05)                           *
    *&         i.e. For 'admins'/oil field application                     *
    report  zztest message-id zsd no standard page heading.
    * For ALV usage
    type-pools: slis.
    data: gs_layout   type slis_layout_alv,
          tp_print    type slis_print_alv,
          gt_sort     type slis_t_sortinfo_alv,
          gt_events   type slis_t_event,
          t_fieldcat  type slis_t_fieldcat_alv with header line,
          repid       type syrepid,               " ABAP Program.
          gt_list_top_of_page type slis_t_listheader,     " Top of page text.
          alv_variant   type disvariant.           " Customize Disp. Variant
    data: w_field    type slis_fieldcat_alv.
    data: gs_list_top_of_page type slis_listheader.
    data: l_count type I.
    data: count1 type I.
    tables: vbak, vbap, vbpa, knvv.
    * Definition of selection screen                                       *
    *   By plant, storage location, sold-to customers, material and        *
    *   posting date of the sales orders                                   *
    selection-screen begin of block one with frame title text-001.
    parameters:     p_vkorg  type vkorg obligatory memory id vko,"DEVK906677
                    p_vtweg  type vtweg obligatory default '01',
                    p_spart  type spart obligatory default '01'.
    select-options: s_vkbur  for  vbak-vkbur,      " Sales Office     "DEVK906677
                    s_kunnr  for  vbak-kunnr.      " Sold-to customer number.
    select-options: s_shipto for  vbap-oid_ship,   " Ship-to customer number.
                    s_billto for  vbpa-kunnr,      " bill-to from S.O. header.
                    s_load   for  vbpa-kunnr,      " Load confirmation contact.
                    s_truck  for  vbap-oid_extbol. " Trucking ticket number.
    select-options: s_werks for vbap-werks obligatory no intervals. " Plant.
    select-options: s_lgort for vbap-lgort.        " Storage location.
    select-options: s_matnr for vbap-matnr.        " Material number.
    select-options: s_konda for knvv-konda.        " price group
    selection-screen skip 1.
    select-options: s_vdatu for vbak-vdatu default sy-datum.
    selection-screen end of block one.
    * ALV display layout
    selection-screen begin of block layout with frame title text-003.
    parameters: pa_vari type slis_vari default ' '. " Display variant.
    selection-screen end of block layout.
    selection-screen begin of block two with frame title text-028.
    selection-screen comment: /1(79) text-029.
    selection-screen comment: /1(79) text-030.
    selection-screen comment: /1(79) text-031.
    selection-screen comment: /1(79) text-032.
    selection-screen comment: /1(79) text-033.
    selection-screen comment: /1(79) text-034.
    selection-screen comment: /1(79) text-035.
    selection-screen comment: /1(79) text-036.
    selection-screen end of block two.
    * Data Definitions                                                     *
    * Storing Extracted Info.
    types: begin of t_extract,
             vbeln        type vbeln_va,   " Sales order number.
             augru        type augru,      " order reason
             vdatu        type edatu_vbak, " Requested delivery date.
             kunnr        type kunag,      " Sold-to customer number.
             posnr        type posnr_va,   " Item number.
             matnr        type matnr,      " Material number.
             vrkme        type vrkme,      " Sales UoM.
             mseh3        type mseh3,      " UoM text.
             netwr        type netwr_ap,   " Net value of the order item.
             kwmeng       type p length 13 decimals 1, " Quantity.
             werks        type werks_d,    " Plant.
             lgort        type lgort_d,    " Storage location.
             oid_extbol   type oid_extbol, " External BOL or truck ticker header.
             maktx        type maktx,      " Material description.
             soldto_name  type name1_gp,   " Sold-to name.
             oid_ship     type kunwe,      " Ship-to customer number.
             shipto_name  type name1_gp,   " Ship-to name.
             billto       type kunre,      " Bill-to customer number.
             billto_name  type name1_gp,   " Bill-to name.
             load_contact type kunnr,      " Load confirmation contact.
             load_name    type name1_gp,   " Load confirmation contact name.
             truck        type kunnr,      " Truck company number.
             truck_name   type name1_gp,   " Truck company name.
             bstkd        type bstkd,      " PO number.
             ihrez        type ihrez,      " AFE number per the contract/sales order.
             delivery     type vbeln_vl,   " Delivery number.
             posnr_vl     type posnr_vl,   " Delivery item number.
             bill_vbeln   type vbeln_vf,   " Invoice number.
             bill_posnr   type posnr_vf,   " Invoice item number.
             bill_netwr   type netwr_fp,   " Invoice net value.
             statu        type stats,      " Document status.
             auart        type auart,      " order type
             vkorg        type vkorg,      " sales org.
             vtweg        type vtweg,      " distrbtn channel
             spart        type spart,      " division
             vkbur        like vbak-vkbur, " Sales Office DEVK906677
             konda        type konda,      " price group
             tdline       type tdline,     " text for customer account reference
             count        type I ,
             count1       type I,
           end of t_extract.
    data :
          it_extract  type table of t_extract with header line,
          it_extract2 type table of t_extract with header line.
    data: it_text type table of tline with header line.
    data: w_index type sy-index,
          w_tdname type tdobname.
    constants: c_minus1       type netwr_ap value '1.00-'.
    *RANGES: r_auart FOR vbak-auart.
    data: r_auart type range of t_extract-auart,
          r_auart_line like line of r_auart.
    * initialization
    initialization.
      gs_layout-colwidth_optimize = 'X'.
      tp_print-no_print_listinfos = 'X'.
      tp_print-no_coverpage = 'X'.
      perform set_fieldcat.
      perform alv_eventtab_build using:
    **    Event name     Form to execute     Event internal table
       'TOP_OF_PAGE'  'TOP_OF_PAGE'       gt_events[].
    * changed to exclude following order types
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZEQ'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * credit memo
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZPRC'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * debit memo
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZPRD'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZDR'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * Industry sales order correction
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZSOC'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * oilfield FF correction
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZOCF'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * oilfield WP correction
      r_auart_line-sign   = 'I'.
      r_auart_line-option = 'EQ'.
      r_auart_line-low    = 'ZOCW'.
      clear r_auart_line-high.
      append r_auart_line to r_auart.
    * Dropdown list for all created ALV layouts, global or user-specific
    at selection-screen on value-request for pa_vari.
      perform alv_variant_f4 changing pa_vari.
    * Main BODY of processing logic
    start-of-selection.
      perform extract_data.
    end-of-selection.
      if not it_extract[] is initial.
    * Build headings for report.
        perform build_top_of_page  using gt_list_top_of_page[].
        perform call_alv.
      endif.
    *&      Form  EXTRACT_KEY_DATA
    * Retreive the data for the report.
    form extract_data.
      clear: it_extract.  refresh: it_extract.
    * orders
      select vbak~vbeln vbak~auart vbak~augru vbak~vkorg vbak~vtweg
             vbak~spart vbak~vdatu vbak~kunnr vbak~vkbur
             vbap~posnr vbap~matnr vbap~vrkme vbap~netwr vbap~kwmeng
             vbap~werks vbap~lgort vbap~oid_extbol vbap~oid_ship
        into corresponding fields of table it_extract
        from vbak inner join vbap
             on  vbak~mandt = vbap~mandt
             and vbak~vbeln = vbap~vbeln where
        vbak~auart not in r_auart and
        vbak~vkorg eq p_vkorg and
        vbak~vtweg eq p_vtweg and
        vbak~spart eq p_spart and
        vbak~vkbur in s_vkbur and                               "DEVK906677
        vbak~vdatu in s_vdatu and
        vbak~kunnr in s_kunnr and
        vbap~matnr in s_matnr and
        vbap~werks in s_werks and
        vbap~lgort in s_lgort and
        vbap~oid_extbol in s_truck and
        vbap~oid_ship in s_shipto .
      if sy-subrc <> 0.
        message i000 with text-002 ' ' ' ' ' '.
      endif.
      sort it_extract by vbeln.
      check sy-subrc = 0.
      loop at it_extract.
    * Retrieve and select by load confirmation contacts from header
        select single kunnr from vbpa into it_extract-load_contact
         where vbeln = it_extract-vbeln
           and posnr = '000000'
           and parvw = 'ZB'.
        if it_extract-load_contact in s_load.
          it_extract-load_name = zcl_kna1=>get_name1( it_extract-load_contact ).
        else.
          delete it_extract.
          continue.
        endif.
    * Retrieve and select by sales order bill-to on header level
    * as well as lookup bill-to customer name/description
        select single kunnr from vbpa into it_extract-billto
         where vbeln = it_extract-vbeln
           and posnr = '000000'
           and parvw = 'RE'.
        if sy-subrc = 0.
          if s_billto is initial.
            it_extract-billto_name = zcl_kna1=>get_name1( it_extract-billto ).
          else.
            if it_extract-billto in s_billto.
              it_extract-billto_name = zcl_kna1=>get_name1( it_extract-billto ).
            else.
              delete it_extract.
              continue.
            endif.
          endif.
        else.
    * Newalta - always has bill-to, following will not occur but included
    *           as good programming practice.
          it_extract-billto_name = it_extract-billto.
        endif.
    * Retrieve and select by price group of sold-to
        select single konda from knvv into it_extract-konda
         where kunnr = it_extract-kunnr
           and vkorg = it_extract-vkorg
           and vtweg = it_extract-vtweg
           and spart = it_extract-spart.
        if sy-subrc = 0.
          if not ( it_extract-konda in s_konda ).
            delete it_extract.
            continue.
          endif.
        endif.
    * Retrieve trucking company customer
        select single kunnr from vbpa into it_extract-truck where
          vbeln = it_extract-vbeln and
          posnr = '000000' and
          parvw = 'ZT'.
        if sy-subrc = 0.
          it_extract-truck_name = zcl_kna1=>get_name1( it_extract-truck ).
        endif.
    * Retrieve sold-to name
        it_extract-soldto_name = zcl_kna1=>get_name1( it_extract-kunnr ).
    * Retrieve ship-to name
        it_extract-shipto_name = zcl_kna1=>get_name1( it_extract-oid_ship ).
    * lookup P.O.
        select single bstkd ihrez from vbkd into (it_extract-bstkd, it_extract-ihrez)
         where vbeln = it_extract-vbeln
           and posnr = '000000'.
    * Retreive the material description.
        it_extract-maktx = zcl_material=>get_maktx( it_extract-matnr ).
    * cosmetic change of material number, donot display leading zeros.
        shift it_extract-matnr left deleting leading '0'.
    * translate unit of measure
        it_extract-mseh3 = it_extract-vrkme.
        select single mseh3 from t006a into it_extract-mseh3
         where spras = sy-langu
           and msehi = it_extract-vrkme.
        w_tdname = it_extract-vbeln.
    * read customer account reference which is under 'text'
        call function 'READ_TEXT'
          exporting
            client                        = sy-mandt
            id                            = 'Z010'
            language                      = sy-langu
            name                          = w_tdname
            object                        = 'VBBK'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
          tables
            lines                         = it_text
          exceptions
            id                            = 1
            language                      = 2
            name                          = 3
            not_found                     = 4
            object                        = 5
            reference_check               = 6
            wrong_access_to_archive       = 7
            others                        = 8.
        if sy-subrc = 0.
          read table it_text index 1.
          if sy-subrc = 0.
            it_extract-tdline = it_text-tdline.
          else.
            clear it_extract-tdline.
          endif.
        else.
          clear it_extract-tdline.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    * Get the delivery item.
        call method zcl_vbap=>get_delivery
          EXPORTING
            itp_vbeln = it_extract-vbeln
            itp_posnr = it_extract-posnr
          IMPORTING
            etp_vbeln = it_extract-delivery
            etp_posnr = it_extract-posnr_vl.
        if it_extract-delivery is not initial.
          perform process_deliveries.
        else.
          perform invoice_process.
        endif.
        it_extract-count =   1.
        move-corresponding it_extract to it_extract2.
        append it_extract2.
        at new vbeln.
          count1 = count1 +  1.
        endat.
      endloop.
    endform.                    " EXTRACT_DATA
    *&      Form  SET_FIELDCAT
    * Create the field catalogue.
    form set_fieldcat .
      clear w_field.
      clear t_fieldcat.  refresh t_fieldcat.
      w_field-col_pos = 1.
      w_field-fieldname = 'VBELN'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Document.Nbr'.
      w_field-emphasize = 'X'.
      w_field-hotspot   = 'X'.
      append w_field to t_fieldcat.
      clear w_field.
      w_field-col_pos = 2 .
      w_field-fieldname = 'POSNR'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Item'(023).
      append w_field to t_fieldcat.
      clear w_field.
      w_field-col_pos = 3 .
      w_field-fieldname = 'VDATU'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Req. Del. Date'(005).
      append w_field to t_fieldcat.
      w_field-col_pos = 4 .
      w_field-fieldname = 'SOLDTO_NAME'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Sold-to'(006).
      append w_field to t_fieldcat.
      w_field-col_pos = 5 .
      w_field-fieldname = 'MATNR'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Material'(007).
      append w_field to t_fieldcat.
      w_field-col_pos = 6 .
      w_field-fieldname = 'KWMENG'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Quantity'(008).
      append w_field to t_fieldcat.
      w_field-col_pos = 7.
      w_field-fieldname = 'MSEH3'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'UOM'(009).
      append w_field to t_fieldcat.
      w_field-col_pos = 8 .
      w_field-fieldname = 'BILL_VBELN'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Invoice #'(010).
      w_field-emphasize = 'X'.
      w_field-hotspot   = 'X'.
      append w_field to t_fieldcat.
      clear w_field.
      w_field-col_pos = 9 .
      w_field-fieldname = 'BILL_NETWR'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Values'(011).
      append w_field to t_fieldcat.
      w_field-col_pos = 10.
      w_field-fieldname = 'WERKS'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Plant'(012).
      append w_field to t_fieldcat.
      w_field-col_pos = 11.
      w_field-fieldname = 'LGORT'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Storage Loc'(013).
      append w_field to t_fieldcat.
      w_field-col_pos = 12 .
      w_field-fieldname = 'MAKTX'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Description'(014).
      append w_field to t_fieldcat.
      w_field-col_pos = 13 .
      w_field-fieldname = 'SHIPTO_NAME'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Ship-to'(015).
      append w_field to t_fieldcat.
      w_field-col_pos = 14 .
      w_field-fieldname = 'BILLTO_NAME'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Bill-to'(016).
      append w_field to t_fieldcat.
      w_field-col_pos = 15 .
      w_field-fieldname = 'LOAD_NAME'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Load Contact'(017).
      append w_field to t_fieldcat.
      w_field-col_pos = 16 .
      w_field-fieldname = 'TRUCK_NAME'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Truck Comp.'(018).
      append w_field to t_fieldcat.
      w_field-col_pos = 17 .
      w_field-fieldname = 'BSTKD'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'P.O.'(019).
      append w_field to t_fieldcat.
      w_field-col_pos = 18 .
      w_field-fieldname = 'IHREZ'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'AFE Nbr'(020).
      append w_field to t_fieldcat.
      w_field-col_pos = 19 .
      w_field-fieldname = 'OID_EXTBOL'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Truck Ticket'(021).
      append w_field to t_fieldcat.
      w_field-col_pos = 20.
      w_field-fieldname = 'STATU'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Status'(022).
      append w_field to t_fieldcat.
      w_field-col_pos = 21.
      w_field-fieldname = 'AUGRU'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Ord.Reason'(024).
      append w_field to t_fieldcat.
      w_field-col_pos = 22.
      w_field-fieldname = 'TDLINE'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'cstmr.acct.ref.'(027).
      append w_field to t_fieldcat.
      w_field-col_pos = 23 .                                    "DEVK906678
      w_field-fieldname = 'VKBUR'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Sales Office'(037).
      append w_field to t_fieldcat.
      w_field-col_pos = 24.
      w_field-fieldname = 'KUNNR'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Sold-to Customer'(038).
      append w_field to t_fieldcat.
      w_field-col_pos = 25.
      w_field-fieldname = 'OID_SHIP'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Ship-to Customer'(039).
      append w_field to t_fieldcat.
      w_field-col_pos = 26.
      w_field-fieldname = 'BILLTO'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Bill-to Customer'(040).
      append w_field to t_fieldcat.
      w_field-col_pos = 27.
      w_field-fieldname = 'COUNT'.
      w_field-tabname = IT_EXTRACT2.
      w_field-seltext_l = 'Count of line items'(042).
      w_field-do_sum = 'X'.
      append w_field to t_fieldcat.
    endform.                    " SET_FIELDCAT
    *&      Form  CALL_ALV
    * Call the ALV Grid function.
    form call_alv .
      sort it_extract by lgort vbeln.
    * repid is necessary since the ALV F.M. does not work properly with
    * sy-repid.
      repid = sy-repid.
      alv_variant-variant  = pa_vari.
      alv_variant-report   = sy-repid.
      alv_variant-username = sy-uname.
      call function 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = repid
          i_callback_user_command = 'USER_COMMAND'
          is_layout               = gs_layout
          it_fieldcat             = t_fieldcat[]
          it_sort                 = gt_sort[]
          i_default               = 'X'
          i_save                  = 'A'
          is_variant              = alv_variant
          it_events               = gt_events[]
          is_print                = tp_print
        TABLES
          t_outtab                = IT_EXTRACT2
        EXCEPTIONS
          program_error           = 1
          others                  = 2.
      if sy-subrc ne 0.
        message w000 with text-004 ' ' ' ' ' '.
      endif.
    endform.                    " CALL_ALV
    *&      Form  build_top_of_page
    * Build heading for report.                                            *
    *      -->P_GT_LIST_TOP_OF_PAGE[]  Header stuff for report
    form build_top_of_page using   e04_lt_top_of_page type slis_t_listheader.
      data: ls_line type slis_listheader.  "Header table for top of page
    * construct 'top of page' info. to display. In this case, one line.
      data: w_selections(40) type c,
            w_date_from(10) type c,
            w_date_to(10) type c.
      write: s_vdatu-low to w_date_from dd/mm/yyyy.
      if s_vdatu-high is not initial.
        write: s_vdatu-high to w_date_to dd/mm/yyyy.
        clear w_selections.
        concatenate 'Del.Req.Date: ' w_date_from 'To' w_date_to
        into w_selections separated by space.
        clear ls_line.
        ls_line-typ  = 'H'.
        ls_line-info = w_selections.
        append ls_line to e04_lt_top_of_page.
        gs_list_top_of_page-typ = 'S'.
        gs_list_top_of_page-info = ' Total number of Sales Documents :'.
        append gs_list_top_of_page to gt_list_top_of_page.
        gs_list_top_of_page-typ  = 'S'.
        gs_list_top_of_page-info =  count1 .
        append gs_list_top_of_page to gt_list_top_of_page.
      else.
        clear w_date_to.
        concatenate 'Del.Req.Date: ' w_date_from
             into w_selections separated by space.
        clear ls_line.
        ls_line-typ  = 'H'.
        ls_line-info = w_selections.
        append ls_line to e04_lt_top_of_page.
      endif.
    endform.                    " build_top_of_page
    *&      Form  alv_eventtab_build
    *     Pass list of events to be triggered by the ALV function module
    form alv_eventtab_build using  u_name  type slis_alv_event-name
                                   u_form  type slis_alv_event-form
                                   alv_lt_events  type slis_t_event.
      data: ls_event type slis_alv_event.   " structure for event handling
      ls_event-name = u_name.
      ls_event-form = u_form.
      append ls_event to alv_lt_events.
    endform.                    " alv_eventtab_build
    *       FORM TOP_OF_PAGE                                              *
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo             = 'LOGO'
          it_list_commentary = gt_list_top_of_page.
    endform.                    " TOP_OF_PAGE
    *&      Form  process_deliveries
    * Process the delivery related records.
    form process_deliveries .
      data:
        ltp_date  type wadat_ist, " Goods movement date.
        ltp_vbtyp type vbtyp_n,
        ltp_mtart type mtart, " Material type.
        w_lfimg   type lfimg, " Actual quantity delivered (in sales units).
        w_vrkme   type vrkme. " Sales unit of measure.
    * Read delivery quantity and uom.
      select single lfimg vrkme into (w_lfimg, w_vrkme)
        from lips where
        vbeln = it_extract-delivery and
        posnr = it_extract-posnr_vl.
    * these fields have values from vbap. override with lips values
      if sy-subrc = 0.
        it_extract-kwmeng = w_lfimg.
        it_extract-vrkme  = w_vrkme.
    * translate unit of measure
        it_extract-mseh3 = it_extract-vrkme.
        select single mseh3 from t006a into it_extract-mseh3
         where spras = sy-langu
           and msehi = it_extract-vrkme.
      endif.
    * Determine STATUS by reading 'service confirmation', R (goods movemt)
    * it is possible to have multiple 'service confirmation' records for
    * one item. ie. delivery 80010390 in PRD.
    * As long as there is at least one 'service confirmation' record,
    * status is considered 'complete'.
    * Validate the created on date of the goods movement or service confirmation.
      ltp_mtart = zcl_material=>get_mtart( it_extract-matnr ).
    *  ltp_date = zcl_lips=>get_goods_movement_date( itp_vbeln = it_extract-delivery
    *                           itp_posnr = it_extract-posnr_vl itp_mtart = ltp_mtart ).
      call method zcl_lips=>get_goods_mvt_info
        EXPORTING
          itp_vbeln = it_extract-delivery
          itp_posnr = it_extract-posnr_vl
          itp_mtart = ltp_mtart
        IMPORTING
          rtp_date  = ltp_date
          rtp_vbtyp = ltp_vbtyp.
    * 'h' is cancel goods issue
      if ltp_vbtyp = 'h'.
        it_extract-statu = 'Incomplete'(025).
      else.
        if ltp_date is not initial.
          it_extract-statu = 'COMPLETE'(026).
        endif.
      endif.
    * Retrieve the invoice/billing document item.
      call method zcl_lips=>get_invoice
        EXPORTING
          itp_vbeln = it_extract-delivery
          itp_posnr = it_extract-posnr_vl
        IMPORTING
          rtp_vbeln = it_extract-bill_vbeln
          rtp_posnr = it_extract-bill_posnr.
      if it_extract-bill_vbeln is not initial.
    * retrieve net value from the invoice.
        clear it_extract-bill_netwr.
        select single netwr into it_extract-bill_netwr from vbrp
         where vbeln = it_extract-bill_vbeln
           and posnr = it_extract-bill_posnr.
      else.
        it_extract-bill_netwr = it_extract-netwr. " Use order net value.
      endif.
    endform.                    " process_deliveries
    *&      Form  user_command
    * Process the user command.
    *      -->R_UCOMM      User command
    *      -->RS_SELFIELD  Field selected
    form user_command using r_ucomm     like sy-ucomm
                            rs_selfield type slis_selfield.
      data: ltp_vbeln type vbeln.  " Sales document number.
      case  r_ucomm.
        when '&IC1'.
          if ( rs_selfield-fieldname = 'VBELN'
            or rs_selfield-fieldname = 'BILL_VBELN' )
           and rs_selfield-value is not initial.        " Display sales document.
            ltp_vbeln = rs_selfield-value.
            zcl_sales_doc=>display( ltp_vbeln ).
          endif.
      endcase.
    endform.                    "user_command
    *&      Form  invoice_process
    * Process for orders without deliveries.                               *
    form invoice_process .
    * Translate unit of measure.
      select single mseh3 from t006a into it_extract-mseh3
       where spras = sy-langu
         and msehi = it_extract-vrkme.
    * Retrieve the invoice/billing document item.
      call method zcl_vbap=>get_invoice
        EXPORTING
          itp_vbeln = it_extract-vbeln
          itp_posnr = it_extract-posnr
        IMPORTING
          rtp_vbeln = it_extract-bill_vbeln
          rtp_posnr = it_extract-bill_posnr.
      if it_extract-bill_vbeln is not initial.
    * retrieve net value from the invoice.
        clear it_extract-bill_netwr.
        select single netwr into it_extract-bill_netwr from vbrp
         where vbeln = it_extract-bill_vbeln
           and posnr = it_extract-bill_posnr.
      else. " If no Invoice, then status becomes 'incomplete'.
        it_extract-bill_netwr = it_extract-netwr. " Use order net value.
        it_extract-statu = 'Incomplete'(025).
      endif.
    endform.                    " invoice_process
    *&      Form  alv_variant_f4
    * Get the display variant.
    *      <--CTP_VARI  Variant name
    form alv_variant_f4 changing ctp_vari type slis_vari.
      alv_variant-report   = sy-repid.             " Report ID
      alv_variant-username = sy-uname.             " User ID
      call function 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = alv_variant
          i_save     = 'A'
        IMPORTING
          es_variant = alv_variant
        EXCEPTIONS
          others     = 1.
      if sy-subrc = 0.
        ctp_vari = alv_variant-variant.
      endif.
    endform.                    " alv_variant_f4

  • Sales order number not displaying

    hi friends,
    the saled order number  which should have been displayed after saving the order on the bottom left corner of the page , when we press the save button is not getting displayed,
    can anyone help??
                        i can only see the sales order number in change mode.
    help
    sk

    Hi,
    Can check in the standard program with your ABAP consultnat
    Program    
    MV45AF0B_BELEG_SICHERN 
    Found locations/short description ( line 1261
    MESSAGE S311 WITH TVAKT-BEZEI VBAK-VBELN.  
    Program    
    MZFOEF01
    Found locations/short description  ( line 91)
    MESSAGE s311(v1) WITH cv_vbeln. 
    The message standard order is used in this areas, please check with ur ABAP consultant where it is missed.
    Kindly Reward points if usefull.
    Regards
    vK

Maybe you are looking for

  • Home Sharing stops working with fast user switching

    I have a late 2013 iMac running Mavericks.  The main account has my iTunes library with Home Sharing enabled.  The AppleTVs and IOS devices can see the Home Share and it works well.   But, it stops working when user accounts are accessed on the Mac.

  • Encore CS3 crash when i click Build (SWF, BluRay, DVD Burn/Image/Folder) or Check project

    So I'm finally done with my DVD. Now i want this burned to a dvd or make an image file. Each time i hit BUILD or START (Check proj) the program quits and I'm left with the normal OS X message: The application Adobe Encore quit unexpectedly >> Ignore

  • How to test the sample adapter code on PI 7.1?

    Hi, I would like to test the sample adapter on PI 7.1. I followed these explanations: /people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter How-to deploy Sample Adapter in PI 7.1 but I still can't get things working. The com.sap.aii.adapt

  • Purchasing Org Text Maintenance

    Hi We need to maintain Footer text "xxxxxxxxxxxxxxxx"  In sapscript we are displaying this by INCLUDE &T024E-TXGRU& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& we need to maintain it by customizing.  For Pur Org '0001' (DE) texts are maintained. And if

  • Error while using dom4j

    Hi I am using dom4j for generating xml file ,but when I am trying to run a batch(which invokes java file(uses dom4j)), it is giving me error as --> Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/Branch I have set the jar file in