‎2013 May 08 10:41 AM
I am creating quotation with above BAPI from java code. Everything is working fine except RELEASE status, i don't know how to set quotation status as released so that sales order can be created in this quotation. Please see attached image for more details.
‎2013 May 08 11:10 AM
Hi,
Try with this function module STATUS_CHANGE_EXTERN.
Regards,
Swarna
‎2013 May 08 11:10 AM
Hi,
Try with this function module STATUS_CHANGE_EXTERN.
Regards,
Swarna
‎2013 May 08 12:32 PM
Thanks Swarna,
it is not remote enabled and I need to call code from external java class(using JCO).
regards
Brijesh Singh
‎2013 May 08 1:23 PM
Hi,
You can create a new RFC and call this FM inside your new Z-RFC
Regards,
Swarna
‎2013 May 08 3:35 PM
Thanks a lot. That is exactly what I was thinking.
Regards
Brijesh Singh
‎2013 May 13 7:03 AM
Dear Swarna,
Need one more help. There is a Text tab in Item Details, how to specify text which displayed under Text tab. Thanks in advance.
Regards
Brijesh Singh
‎2013 May 08 12:17 PM
Hi Brijesh,
Check below Sample Code .
DATA: OBJNR LIKE JSTO-OBJNR.
OBJNR = 'VB'.
OBJNR+2 = VBAK-VBELN.
OBJNR+12 = '000000'.
**************************************************************************
* for USER_STATUS use this SAP T-Table " TJ30" . **
***************************************************************************
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
EXPORTING
CHECK_ONLY = ' '
CLIENT = SY-MANDT
OBJNR = OBJNR
USER_STATUS = USER_STATUS
SET_INACT = ' '
EXCEPTIONS
OBJECT_NOT_FOUND = 1
STATUS_INCONSISTENT = 2
STATUS_NOT_ALLOWED = 3
OTHERS = 4.
CASE SY-SUBRC.
WHEN 0.
COMMIT WORK.
WHEN 1.
ROLLBACK WORK.
WHEN 2.
ROLLBACK WORK.
WHEN 3.
ROLLBACK WORK.
ENDCASE.
Regard's
Smruti