2007 Dec 11 7:49 AM
Hi all
On What Basis Invoice will split in SD...
what are the basic considerations to take for the split. in header( vbrk) level and also item level (vbrp).
Here Invoice is Spliting for what basis we don't Know .....
the fields and values are every thing is correct here and also we checked ..
here we saw only the billing date is different but in some invoices are not spliting even though the billing date is different...
thanks for all
2007 Dec 11 7:57 AM
Hi,
It splits the file name with extension AND the Path.
If Filename is C:\documents and settings\folder\filename.txt
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
FULL_NAME = "Your Entire Filename of Type FULL_NAME"
IMPORTING
STRIPPED_NAME = "Your FileName" "i.e.Filename.txt
FILE_PATH = "Your File Path" "C:\documents and settings\folder
EXCEPTIONS
X_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
For simpler understanding.
go to SE37, Enter SO_SPLIT_FILE_AND_PATH and execute.
In next screen, give any file name and path in your system eg \Documents and Settings\USR\Desktop\test.txt ...
and execute.
you can see results for yourself.
you can also test other simple funtional modules for yourself like simlar way.
Award me. If helpful.
Cheers,
Chandra Sekhar.
2007 Dec 11 7:57 AM
Hi,
It splits the file name with extension AND the Path.
If Filename is C:\documents and settings\folder\filename.txt
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
FULL_NAME = "Your Entire Filename of Type FULL_NAME"
IMPORTING
STRIPPED_NAME = "Your FileName" "i.e.Filename.txt
FILE_PATH = "Your File Path" "C:\documents and settings\folder
EXCEPTIONS
X_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
For simpler understanding.
go to SE37, Enter SO_SPLIT_FILE_AND_PATH and execute.
In next screen, give any file name and path in your system eg \Documents and Settings\USR\Desktop\test.txt ...
and execute.
you can see results for yourself.
you can also test other simple funtional modules for yourself like simlar way.
Award me. If helpful.
Cheers,
Chandra Sekhar.