Hi,
I have a requirement where I have to upload a file from C drive, the fields in this file are VBELN, description & date of creation.
I am able to get this file into the internal table. After this i need to cross check the VBELN against VBRK-VBELN, if present then update a Z-table.... How do I do the cross check part ?...
if not tw_zvatcn[] is initial,
select * from vbrk
into table tw_vbrk
for all entries in tw_zvatcn
where vbeln = tw_zvztcn-vbeln
and vkorg = p_vkorg.
if sy-subrc = 0.
modify ztzb from lw_zvatcn.
endif.
endif.
Internal table tw_vbrk is coming blank, which is not correct because I see the data in db tbl VBRK
Is p_vkorg a parameter or select option.
If it is parameter and is blank you will not get data in the table.
In that case make a condition for that field also.
if not tw_zvatcn[] is initial. if p_vkorg is not initial. select * from vbrk into table tw_vbrk for all entries in tw_zvatcn where vbeln = tw_zvztcn-vbeln and vkorg = p_vkorg. if sy-subrc = 0. modify ztzb from lw_zvatcn. endif. else. select * from vbrk into table tw_vbrk for all entries in tw_zvatcn where vbeln = tw_zvztcn-vbeln. if sy-subrc = 0. modify ztzb from lw_zvatcn. endif. endif. endif.
Howdy,
Make sure the VBELN data in your internal table has leading zeros, eg instead of 90000123 you need 009000123.
To do the conversion use FM CONVERSION_EXIT_ALPHA_INPUT.
Cheers
Alex
Add a comment