Displaying changes in SO and Delivery
Dear All,
The scenario is,
User creates a sales order and subsequently delivery. In VL01N user modifies some data. Can i check anywhere the changes with reference to SO and Delivery. I cannot see the changes as it updates only when user modifies the data in VL02N. I want to see the changes done by user in VL01N only.
Please provide me the solution.
Regards
Rahul
Hi Rahul,
See VL01N is your creation mode and VL02N is your change mode.
System is recording only the changes which your are doing in VL02N. If you want that some important field user should not change then use SHD0.
Or another way suggested by Mr. Damu already that you need to compare the sales order and delivery tables.
Just for information, delivery changes we can see in VL22.
Hope it helps,
Regards,
MT
Similar Messages
-
Unable to display new billing no. and delivery no for order
hi, all
In my report i m displaying billing no and outbound delivery no. for the order no having different item no.
i am able to dispaly it for different item no. of the same order,
but for the order haing same item no but 2 different billing no. then that is not display by me
give me a perfect solution for that,
thanks,
Sandip Sonare.g.
order no. item no.
8546 10 billing no. delivery no
90000069 80000186
90000070 80000187
in this i just able to dispaly first rows record,
while i want allt he record for the same item.
Suggest any solution .
Thanks ,
Sandip Sonar -
Problem in FM:WS_DELIVERY_UPDATE to change picked qty and delivery qty
Dear friends.
i am trying to chande picked and del qty's through above fm.
i am getting an error message like this:
(Required field in interface to delivery update missing 0080000155 000010
VBELN 000000 Message no. VL280 )
i am pasing all requires parameters.
please help me if any thing is missed..........
here i am giving my code:
DATA:i_vbeln TYPE vbeln,
i_posnr TYPE posnr,
i_new_delqty TYPE lips-lfimg,
wa_lips LIKE lips OCCURS 0 WITH HEADER LINE,
wa_likp TYPE likp.
i_vbeln = '0080000155'.
i_posnr = '000010'.
i_new_delqty = '30'.
SELECT SINGLE * INTO wa_likp
FROM likp
WHERE vbeln = i_vbeln.
SELECT SINGLE * INTO wa_lips
FROM lips
WHERE vbeln = i_vbeln
AND posnr = i_posnr.
DATA:gs_vbkok LIKE vbkok,
gt_vbpok LIKE vbpok OCCURS 0 WITH HEADER LINE,
gt_prott LIKE prott OCCURS 0 WITH HEADER LINE,
gs_prott LIKE prott.
DATA:xfeld1 TYPE xfeld,
xfeld2 TYPE xfeld,
xfeld3 TYPE xfeld,
xfeld4 TYPE xfeld,
xfeld5 TYPE xfeld,
xfeld6 TYPE xfeld,
xfeld7 TYPE xfeld,
xfeld8 TYPE xfeld.
gs_vbkok-vbeln_vl = i_vbeln.
gs_vbkok-vbeln = i_vbeln.
gs_vbkok-brgew = wa_lips-brgew.
gs_vbkok-kzbrg = 'X'.
gs_vbkok-kzntg = 'X'.
gs_vbkok-vbtyp_vl = wa_likp-vbtyp.
gs_vbkok-ntgew = wa_likp-ntgew.
gs_vbkok-gewei = wa_likp-gewei.
gs_vbkok-lgnum = wa_likp-lgnum.
gs_vbkok-kodat = wa_likp-kodat.
gs_vbkok-KOMUE = 'X'.
*gs_vbkok- = WA_LIKP-
*gs_vbkok- = WA_LIKP-
*gs_vbkok- = WA_LIKP-
gt_vbpok-vbeln_vl = i_vbeln.
gt_vbpok-posnr_vl = i_posnr.
gt_vbpok-matnr = wa_lips-matnr.
gt_vbpok-charg = wa_lips-charg.
gt_vbpok-lianp = 'X'.
gt_vbpok-kzntg = 'X'.
gt_vbpok-kzbrg = 'X'.
gt_vbpok-lfimg = i_new_delqty.
gt_vbpok-lgmng = i_new_delqty.
gt_vbpok-umvkz = wa_lips-umvkz.
gt_vbpok-umvkn = wa_lips-umvkn.
gt_vbpok-TAQUI = 'X'.
gt_vbpok-brgew = wa_lips-brgew.
gt_vbpok-ntgew = wa_lips-ntgew.
gt_vbpok-gewei = wa_lips-gewei.
gt_vbpok-vrkme = wa_lips-vrkme.
gt_vbpok-meins = wa_lips-meins.
gt_vbpok-VOLUM = wa_lips-VOLUM.
gt_vbpok-VOLEH = wa_lips-VOLEH.
gt_vbpok-vbeln = wa_lips-KDAUF.
gt_vbpok-posnn = wa_lips-KDPOS.
*gt_vbpok-vbeln = wa_lips-vbelv.
*gt_vbpok-posnn = wa_lips-posnv.
gt_vbpok-umrev = wa_lips-umrev.
gt_vbpok-vbtyp_n = wa_lips-vbtyv.
gt_vbpok-werks = wa_lips-werks.
gt_vbpok-pstyv = wa_lips-pstyv.
gt_vbpok-ormng = '15'.
gt_vbpok-ndifm = '15'.
gt_vbpok-orpos = i_posnr.
gt_vbpok-pikmg = '1'.
gt_vbpok-SPE_DLV_QTY_FROM = i_new_delqty.
APPEND gt_vbpok ."TO gt_vbkok.
gt_prott-vbeln = i_vbeln.
gt_prott-posnr = i_posnr.
gt_prott-matnr = wa_lips-matnr.
gt_prott-vrkme = wa_lips-vrkme.
gt_prott-lfimg = i_new_delqty.
gt_prott-vrkme = wa_lips-vrkme.
APPEND gt_prott." TO gt_prott.
BREAK-POINT.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = gs_vbkok
synchron = 'X'
no_messages_update = ' '
commit = 'X'
delivery = i_vbeln
update_picking = 'X'
nicht_sperren = ' '
if_confirm_central = 'X'
if_wmpp = 'X'
if_get_delivery_buffered = 'X'
if_no_generic_system_service = 'X'
if_database_update = '3'
if_no_init = ' '
if_no_read = ' '
if_error_messages_send_0 = 'X'
if_no_buffer_refresh = 'X'
it_partner_update = ' '
it_sernr_update = ' '
if_no_remote_chg = ' '
if_no_mes_upd_pack = ' '
if_late_delivery_upd = ' '
IMPORTING
ef_error_any_0 = xfeld1
ef_error_in_item_deletion_0 = xfeld2
ef_error_in_pod_update_0 = xfeld3
ef_error_in_interface_0 = xfeld4
ef_error_in_goods_issue_0 = xfeld5
ef_error_in_final_check_0 = xfeld6
ef_error_partner_update = xfeld7
ef_error_sernr_update = xfeld8
TABLES
vbpok_tab = gt_vbpok
prot = gt_prott
VERKO_TAB =
VERPO_TAB =
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS =
IT_OBJECTS =
ET_CREATED_HUS =
TVPOD_TAB =
IT_TMSTMP =
IT_BAPIADDR1 =
SERNR_TAB =
IT_HURES =Hi,
Thanks for the repl
i also passed..
vbeln_vl,
posnr_vl,
vbeln,
posnn
Still not working...any other info to pass to FM
Regards,
Raj -
When building an appllication the data display changes between VI and EXE
I have an application where data is written in exponential notation (1.0E-9) into a file and then read and displayed. In the VI this works fine, but when I build an application containing this VI, the graphical display is wrong, even though the values written into the file are the same.
(See pictures). My suspicion is that the scale formatting gets lost.
How can I solve this ?
Attachments:
Wrong_Display.jpg 64 KB
Right_Display.jpg 63 KB
Data_Viewer_Pressures.vi 44 KBHello Mike,
i think I have posted the wrong VIs, so here are the right ones as a llb. plus the text file.
Attachments:
Pressure_File.llb 135 KB
440011_Pressures.txt 2 KB -
IPad 2 - iPod display change between Playlists and Music
Is there a way to set the iPod in the iPad 2 to display a song listing when in a playlist, but display the album listing when in the Music section, like in iTunes?
Is there a "New" button at the top right of the Playlists section of Music?
There is no Edit button to delete music, swipe sideways on the song to reveal the delete button. Tap and hold on the artwork in Artists and albums to reveal the (X) button to delete. Or connect the iPad back up to iTunes on the computer and check your sync settings for music to ensure you are syncing the right content. -
Color displays change between CC and CS6
Colors created in CC Photoshop appear much darker in CS6 Photoshop; colors created in CS6 Photoshop appear pale and washed out in CC Photoshop. How to fix this problem?
There are two options for obtaining CS6, either buy (expensive) perpetual license(s) or it is included as part of a Creative Cloud subscription.
For professional users, a subscription gives a steady, budgetable low cost to software expenses that is generally lower overall than the old costs of updating perpetually licensed applications (especially if you use more than one product) every year or so as the new versions were shipped, but if you stop paying the software stops working until you reactivate your subscription, which you can do for as little as 30 days if you just need to access your old files briefly. The perpetual license never stops working, as long as the hardware holds up and the OS still supports it. So far all new versions of both Windows and OS X have worked, but there are no guarantees that will be true in the future, and of course there will never be additional features added to the software that Cloud subscribers get for free when new versions are released. -
BAPI for changing delivery date and delivery time fields in LIKP table
Hi All,
Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
Please tell me experts if exists.
Thank you,
Raghu.try these:
BAPI/FM to update LIKP and VTTK tables
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800 -
Billing and delivery address to be displayed in PO
Dear Gurus,
Here client requirement is as follows : There are three plants in three different places- Chennai, Bangalore and Hyderabad. Client is creating PO from Chennai plant and they want the material to be delivered in Bangalore plant. They want this to be displayed( billing and delivery address) in the purchase order. Kindly suggest me how to map this scenario.Thank you.Hi,
For delivery adress you can use the subscreen for delivery adress in the item of the PO.
Por billing adress, if it's not the same that the adress for the center, you can do a subroutine for the form (Z)MEDRUCK for the company of these center, of you can create a partner 'Billing adress' and write it in form with a subroutine (Z)MEDRUCK.
I hope this helps you
Regards,
Eduardo -
Is there currently a way to change this back to displaying the actually date and
New helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
Is there currently a way to change this back to displaying the actually date and time?
This topic first appeared in the Spiceworks CommunityNew helpdesk in version 7.4 seems to have gone back to using '1 week ago', '2 months ago' time stamps for ticket comments.
Is there currently a way to change this back to displaying the actually date and time?
This topic first appeared in the Spiceworks Community -
I dropped my iPhone 3G last day and soon after that the display turned too dim and it still remains the same.
Could anyone help me with a solution?
Should I change the display or is it a minor damage??
Thanks for your supportsounds like you broke the display when you dropped it. There's nothing we users here can do for you.
Since the iPhone warranty does not cover accidental damage, you will have to pay to have your phone repaired or replaced. You can bring it into Apple for an out of warranty exchange in the country of purchase, or you can find a 3rd party iPhone repair store in your area. -
Yosemite slow load and display changes at logon screen
Hi
I updated my Macbook Pro to Yosemite; since then at logon the display scale is bigger than my default, but once logged on the display changes smaller to my default.
At the logon I find that it takes longer to load after entering password etc; status bar rolls and taking about 30 seconds (instead of the 5 seconds previously in Mavericks).
Also find that after logon, it takes a few minutes to connect to the internet and be ready to use.
This never happened previously, was instant after logon could go straight into email or safari and work.
Is others experiencing this and what can I do to improve this?
ThanksHi
I updated my Macbook Pro to Yosemite; since then at logon the display scale is bigger than my default, but once logged on the display changes smaller to my default.
At the logon I find that it takes longer to load after entering password etc; status bar rolls and taking about 30 seconds (instead of the 5 seconds previously in Mavericks).
Also find that after logon, it takes a few minutes to connect to the internet and be ready to use.
This never happened previously, was instant after logon could go straight into email or safari and work.
Is others experiencing this and what can I do to improve this?
Thanks -
Latest update and display changes
after the latest update my display changed to higher resolution and when I go inot the preference pane I only show two available resolutions.
What can I do to fix this
Thank you for any helpI tried adjusting the value of layout.css.devPixelsPerPx but that did not help. The only thing that temporarily fixed my display issues was to close Firefox- at that point the screen blacked out and reappeared in full view. As soon as I open Firefox the screen blacks out and reappears showing only a portion of my desktop and all the icons not visible are no longer clickable because the mouse cursor can't reach them.
-
Trying to change Shipping and Delivery address for one in the US, from Canada, and can't do it. State and zip code appears in red but no change in country name. Using French (Canada) iPhoto app.
Larry's right, You can still use your credit card, you just need to change the "billing address" to the recievers address. It gets billed to your CC and delivered to the US
-
Equipment action log and display changes nnot updating
Hello Guys,
it is little strange but for some of the equipments action log and display changes are not being updated.
The records are there only till 2007 but since 2008 whatever changes we make now they are not being recorded in action log or changes.
But strange thing here is usage list is being updated as it is supposed to be.
i have checked most of the config. but really not helpful.
i am clueless here.
Can anyone help?
Thanks & Regards,
vaibhavHi,
Please see attached code for your review:
Appreciate your valuable comments.
INCLUDE ZXEQMU02
*By: Ralph McKnight/AC Date: Mar061998.
*Description: Additional fields to be saved on append structures
during equipment add/change - This development was
Undertaken as a core modification - The exporting
function parameters were changes to pass back the
structures with the new user values.
*Sir4726 - Disable equipment popup box for equipment type 'E'
*Sartd42467-Add kokrs & kostl to auto maint
*By Ralph McKnight Apr161998.
*SARTD 75148 - 4.6C Upgrade, CH4K902173, Import/Export parameters can no
longer have the same names, added a Changing parameter to
return the changed values of EQUI and EQUZ to save the
append structure fields ZAEQUI and ZAEQUZ for Job
Resource Scheduling.
- Also set the flags to update EQUI and EQUZ.
by: HBAY342
*SARTD 92504 - Save new maintenance plant into ABAP memory. Needed for
9/26/02 E.Krenz
*SARTD 109167 - AMI Foreign Trade REquirement. - Validations against
- AMI Foreign Trade Synchronization tables(ZAESYNCDIV &
(ZAESYNCMAT) before save
of the equipment.
SARTD 111318 - CHLK9A0I4A Check Equipment Acquisition Date, Value and
currency to avoid dump by SAP Standard system
SARTD 113133 AMI project: Added function call to prevent users from
manually changing equipments when it is on a AMI transfer
form.
KR 140649 AMI: Added parameter to FM call
for Z_AMI_CHCK_IE02_UPDATE_ALLOWED. E.Krenz 12/23/03
03/02/2004 HBB8705 CHLK9A0WYR EQUZ Append field rename
Modification Log
Date User Transport KR Description
06/29/2005 HBAK946 CHLK9A1N05 169999 RA Equipment Lockdown
If equip is RA, check authority
If no auth., then issue a mess
06/30/2005 HBAK946 CHLK9A1N29 169999 RA Equipment Lockdown
Only process RA check if in
t-code IE01, IE02 will be
handled in user-exit
Begin of CH4K902173 - 4.6C upgrade - Changed import/export/changing
parameters
Old way follows:
*This is how the call to this routine should look with our mods.
*Note: the changes to the std are labeled with "DS Part 6 - RGM1
call customer-function '001'
exporting
data_equi = equi
data_eqkt = eqkt
data_equz = equz
data_iloa = iloa
importing
own_msg = own_msg
data_equi = equi "DS Part 6 - RGM1
data_eqkt = eqkt "DS Part 6 - RGM1
data_equz = equz "DS Part 6 - RGM1
data_iloa = iloa "DS Part 6 - RGM1
exceptions
posting_not_allowed = 1
others = 2.
New way follows:
CALL CUSTOMER-FUNCTION '001'
EXPORTING
ACTIVITY_TYPE = ACTIVITY_TYPE
DATA_EQUI = EQUI
DATA_EQKT = EQKT
DATA_EQUZ = EQUZ
DATA_ILOA = ILOA
MAIN_CLASS = RM63E-KLASSE
DATA_RM63E = RM63E
IMPORTING
UPDATE_DATA_EQ = UPDATE_DATA_EQ
UPDATE_FLAGS_EQ = UPDATE_FLAGS_EQ
UPDATE_DATA_EZ = UPDATE_DATA_EZ
UPDATE_FLAGS_EZ = UPDATE_FLAGS_EZ
CHANGING
CHGD_EQUI = EQUI
CHGD_EQUZ = EQUZ
EXCEPTIONS
POSTING_NOT_ALLOWED = 1
POSTING_NOT_ALLOWED_EXT = 2
OTHERS = 3.
End of CH4K902173 - 4.6C upgrade - Changed import/export/changing
Changes for SARTD 111318 to check Acquisition Date, Value and currency
Commented By Nikhil. Function Module looks to be specific for US.
*data: v_retval like sy-subrc.
"CHLK9A0I4A
*call function 'Z_VERIFY_ACQUISITION_DATA'
"CHLK9A0I4A
exporting
"CHLK9A0I4A
p_equi = data_equi
"CHLK9A0I4A
importing
"CHLK9A0I4A
retval = v_retval.
"CHLK9A0I4A
*if v_retval ne 0.
"CHLK9A0I4A
raise posting_not_allowed.
"CHLK9A0I4A
*endif.
"CHLK9A0I4A
End of changes for SARTD 111318
*======================================================================
Begin of AMI
*======================================================================
Begin of insert SARTD 113133
read calling AMI program
DATA: z_ami_program(30) TYPE c.
CALL FUNCTION 'Z_AMI_CHECK_AMI_PRG_ACTIVE'
IMPORTING
p_ami_program = z_ami_program.
AMI validations if Equipment Update is allowed
For checking Equipment Check permission.
CALL FUNCTION 'Z_AMI_CHCK_IE02_UPDATE_ALLOWED'
EXPORTING
active_ami_program = z_ami_program
data_equz = data_equz
data_equi = data_equi
data_iloa = data_iloa
main_class = main_class
data_rm63e = data_rm63e
EXCEPTIONS
update_not_allowed = 8.
IF sy-subrc NE 0.
RAISE posting_not_allowed.
ENDIF.
Commented By Nikhil. Function Module looks to be specific for US.
checks for equipment ring fencing (only for manual IE02)
*if z_ami_program is initial.
call function 'Z_AMI_IE02_EXIT_RING_FENCING'
exporting
data_equz = data_equz
data_rm63e = data_rm63e
exceptions
update_not_allowed = 8.
if sy-subrc ne 0.
raise posting_not_allowed.
endif.
*endif.
End of INSERT SARTD 113133
*======================================================================
End of AMI
*======================================================================
*======================================================================
Begin of RA Equipment Lockdown >> CHLK9A1N05
*======================================================================
check if equipment is Radio Active
DATA: i_matnr_tab LIKE zhazind OCCURS 0 WITH HEADER LINE.
DATA: v_land1(3) TYPE c.
DATA: v_ra_flag(1) TYPE c.
*Begin of code insertion by pavan on 02 June, 2008.
DATA: zeqpnr_eccn-zeccn TYPE zeqpnr_eccn-zeccn,
wa_zeqpnr_eccn TYPE zeqpnr_eccn.
break pkumar.
IF sy-ucomm = 'BU'.
IMPORT zeqpnr_eccn-zeccn FROM MEMORY ID 'ZECCNUM'.
MOVE: data_equi-equnr TO wa_zeqpnr_eccn-zeqnr,
zeqpnr_eccn-zeccn TO wa_zeqpnr_eccn-zeccn.
MODIFY zeqpnr_eccn FROM wa_zeqpnr_eccn.
CLEAR wa_zeqpnr_eccn.
ENDIF.
*End of code insertion by pavan on 02 June, 2008.
IF sy-tcode = 'IE01'.
IF NOT data_equi-matnr IS INITIAL AND
NOT data_equz-zzswerk IS INITIAL.
SELECT SINGLE land1 FROM t001w
INTO v_land1
WHERE werks = data_equz-zzswerk.
CLEAR: i_matnr_tab.
REFRESH: i_matnr_tab.
i_matnr_tab-matnr = data_equi-matnr.
APPEND i_matnr_tab TO i_matnr_tab.
CALL FUNCTION 'Z_MATERIAL_HAZARD'
EXPORTING
pland1 = v_land1
TABLES
matnr_tab = i_matnr_tab.
check if radio active
READ TABLE i_matnr_tab INDEX 1.
IF sy-subrc = 0.
IF i_matnr_tab-ramat = 'X'.
check if user has Radio Active access
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD 'ZIE02_RA'.
IF sy-subrc NE 0.
MESSAGE w000(z5) WITH 'No access to create RA equipment'.
RAISE posting_not_allowed.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
*======================================================================
End of RA Equipment Lockdown << CHLK9A1N05
*======================================================================
*CHECK NOT data_equi-eqtyp = 'E'.
*CHECK NOT data_equi-eqtyp = 'F'.
DATA: v_stor_ucomm LIKE sy-ucomm.
DATA: v_equnr LIKE data_equz-equnr.
*Save the system user command field
v_stor_ucomm = sy-ucomm.
v_equnr = data_equz-equnr.
*Get the additional information
CALL FUNCTION 'Z_GET_MORE_EQUIPMENT_INFO'
CHANGING
s_equi = data_equi
s_equz = data_equz
s_rm63e = data_rm63e
EXCEPTIONS
cancelled = 1.
*Begin of changes for SARTD 113691
IF sy-subrc NE 0. "CHLK9A0KY9
RAISE posting_not_allowed. "CHLK9A0KY9
ENDIF. "CHLK9A0KY9
End of changes for SARTD 113691
*Restore the equip number
data_equz-equnr = v_equnr.
data_equz-zzkokrs = data_iloa-kokrs. "CHLK9A0WYR
data_equz-zzkostl = data_iloa-kostl. "CHLK9A0WYR
data_equz-zzswerk = data_iloa-swerk. "CHLK9A0WYR
*****SARTD 109167
*vALIDATE VALUES PER ami fOREIGN TRADE SYNCHRONIZATION RULES
*set screen 0101.
CALL FUNCTION 'Z_AMIFT_VALIDATE_EQUIP_MATNR'
TABLES
P_MESSAGES =
CHANGING
p_equi = data_equi
p_equz = data_equz.
*****SARTD 109167
CH4K902173 - Should update EQUI and EQUZ, set flag to TRUE.
chgd_equi = data_equi. "CH4K902173
chgd_equz = data_equz. "CH4K902173
*Begin of Changes - CHLK980219 data not retained when creating record
*UPDATE_FLAGS_EQ = 'X'. "CH4K902173
*UPDATE_FLAGS_EZ = 'X'. "CH4K902173
*End of Changes
*If cancel was hit then back out of save
IF sy-subrc NE 0.
RAISE posting_not_allowed.
ENDIF.
*Restore the system user command field
sy-ucomm = v_stor_ucomm.
Begin of insert SARTD 92504, AMI 9/26/02, E.Krenz
Store new maintenance plant in memory to be used by ZAEQASBR for
immediate ransfer of maintenance items.
EXPORT data_equz TO MEMORY ID 'ZAEQASBR'.
End of insert
>> CHLK9A1N29
clear transaction varient before going to IE02 or IE01 main screen
CALL FUNCTION 'RS_HDSYS_SET_TC_VARIANT'
EXPORTING
variant = ' '
flag_client_independent = 'X'
overwrite_variant = 'X'.
<< CHLK9A1N29
Regards,
vaibhav. -
In order confirmation i need invoice number and delivery number.
Dear Experts,
I need invoice number and delivery number in order confirmation.
how can i get the delivery number an invoice number.
Program name: RVADOR01
Regards
AhmedHi
In the Order confirmation Only sales order details will be there
You better write a PERFORM statement in Script and in the subroutine fetch the Delivery number and Invoice number with the following links and display them in script
LIPS-VGBEL = VBAK-VBELN
LIPS-VGPOS = VBAP-POSNR
VBRP-AUBEL = VBAK-VBELN
VBRP-AUPOS = VBAP-POSNR
You can also can use the VBFA table
using Prev doc type = C (order) and Subsequent doc type = J to get the Delivery
and Sunsequent type = M for getting the Invoice Number
see the sample code for subroutine
REPORT ZMPO1 .
form get_freight tables in_par structure itcsy out_par structure itcsy.
tables: ekko,konv,t685t.
data: begin of itab occurs 0,
ebeln like ekko-ebeln,
knumv like ekko-knumv,
end of itab.
data: begin of itab1 occurs 0,
knumv like konv-knumv,
kposn like konv-kposn,
kschl like konv-kschl,
kbetr like konv-kbetr,
waers like konv-waers,
kwert like konv-kwert,
end of itab1.
data: begin of iout occurs 0,
kschl like konv-kschl,
vtext like t685t-vtext,
kbetr like konv-kbetr,
kwert like konv-kwert,
end of iout.
data v_po like ekko-ebeln.
read table in_par with key 'EKKO-EBELN'.
if sy-subrc = 0.
v_po = in_par-value.
select
ebeln
knumv
from ekko
into table itab
where ebeln = v_po.
if sy-subrc = 0.
loop at itab.
select
knumv
kposn
kschl
kbetr
waers
kwert
into table itab1
from konv
where knumv = itab-knumv and
kappl = 'M'.
endloop.
loop at itab1.
if itab1-kposn <> 0.
select single * from t685t
where kschl = itab1-kschl
and kappl = 'M'
and spras = 'EN'.
iout-vtext = t685t-vtext.
iout-kschl = itab1-kschl.
iout-kbetr = itab1-kbetr.
iout-kwert = itab1-kwert.
append iout.
clear iout.
endif.
endloop.
sort itab1 by kposn.
loop at iout.
sort iout by kschl.
if ( iout-kschl eq 'GSDC' OR
iout-kschl eq 'GSFR' OR
iout-kschl eq 'GSIR' ).
at end of kschl.
read table iout index sy-tabix.
sum.
write:/ iout-kschl,iout-vtext,iout-kwert.
out_par-name = 'A1'.
out_par-value = iout-vtext.
append out_par.
out_par-name = 'A2'.
out_par-value = iout-kwert.
append out_par.
endat.
endif.
endloop.
endif.
endif.
endform.
IN THE FORM I AM WRITING THIS CODE.
/:DEFINE &A1& = ' '
/:DEFINE &A2& = ' '
/:PERFORM GET_FREIGHT IN PROGRAM ZMFORM_PO1
/:USING &EKKO-EBELN&
/:CHANGING &A1&
/:CHANGING &A2&
/:ENDPERFORM
&A1&
&A2&
This Code is to be written in the PO form under ADDRESS window.
/:DEFINE &A1& = ' '
/:DEFINE &A2& = ' '
/:DEFINE &A3& = ' '
/:DEFINE &A4& = ' '
/:DEFINE &A5& = ' '
/:DEFINE &A6& = ' '
/:PERFORM GET_VENDOR IN PROGRAM ZMFORM_PO
/:USING &EKKO-EBELN&
/:CHANGING &A1&
/:CHANGING &A2&
/:CHANGING &A3&
/:CHANGING &A4&
/:CHANGING &A5&
/:CHANGING &A6&
/:ENDPERFORM
&A1&
&A2&
&A3&
&A4&
&A5&
&A6&
Regards
Anji
Maybe you are looking for
-
Clicking on a link in an email no longer connects to the website
It was working fine until this evening. Now the hyperlinks don't connect. Also, the "Help Contents" does not open.
-
Post BLOB image in an html content
I have a HTML content which will go as a body of the email to be sent to various users. Now in the email, somewhere there is a tag <img src="[IMG]"/> We need to replace the [IMG] with the image link store in the database column, so that the email rec
-
TS3276 how to delete emails stuck in the sent folder which continues to try and send them?
I tried sending a big file on Mail with attachment. It got stuck and now the sent file on my macbook is constantly trying to act on the message and my entire Mail folder is now stuck, doesn't react on anything. I want to delete the message to free my
-
Sync bookmarks with shared computer at work
I'd like to share my bookmarks, not passwords, across devices. Seems straightforward for my own PC, laptop, phone. We hot-desk at work, each with our own Windows login. When I use FF there, I have my own set of bookmarks so assume it's specific to my
-
Messages Beta won't connect to my iPhone number
My iphone message app seems to be connected to my iphone mobile number. Messages in beta for my Mac is connected to my icloud (.mac) account. They don't talk to each other - ie, they are two separate accounts, so I can't see threads initiated on my